Lint config update

This commit is contained in:
2022-07-22 06:01:53 +01:00
parent e154bff4e4
commit befd8dc9cd
3 changed files with 46 additions and 33 deletions

View File

@@ -1,29 +1,42 @@
{
"globals": {},
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"@matt-fidd"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"max-len": "off",
"sort-imports": [
"error",
{
"allowSeparatedGroups": true
}
]
}
{
"globals": {},
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"@matt-fidd"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"max-len": "off",
"sort-imports": [
"error",
{
"allowSeparatedGroups": true
}
],
"camelcase": [
"error",
{
"allow": [
"not_equals",
"greater_than",
"greater_than_equal",
"less_than",
"less_than_equal",
"not_in"
]
}
]
}
}

View File

@@ -23,7 +23,7 @@
"payload": "^1.0.9"
},
"devDependencies": {
"@matt-fidd/eslint-config": "^1.3.2",
"@matt-fidd/eslint-config": "^1.3.4",
"@types/express": "^4.17.13",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",

View File

@@ -1576,10 +1576,10 @@
resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796"
integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==
"@matt-fidd/eslint-config@^1.3.2":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@matt-fidd/eslint-config/-/eslint-config-1.3.2.tgz#516da8e7f3756c5f87ff6527abe739c7a9d1207d"
integrity sha512-3X6r3XGkmbM77LK9g0Yp/3ISImcKrvUlskStf8091P01KYdpKK0MAC8h1NF3sS6Ou2cTY2yDTLM6cwqHoY5GAg==
"@matt-fidd/eslint-config@^1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@matt-fidd/eslint-config/-/eslint-config-1.3.4.tgz#ccc169c7bb625419dc276412c9b5762756e1c4c0"
integrity sha512-OfklRsm6Wy3VjTajBL0SDHsG7CttuAtwinfEVdinuIPfgwkKipDHDgFCzEQPkN+8FE5hJjEMQa3gGla3r5IxUg==
"@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3":
version "2.1.8-no-fsevents.3"