diff --git a/.eslintrc.json b/.eslintrc.json index 16b9b13..3055747 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" + ] + } + ] + } } \ No newline at end of file diff --git a/package.json b/package.json index fc0e2f4..1f4889a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index 7b10a91..8bec2ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"