blob: f98e65bcd804e975aae32d1274818800cb6f7fe9 [file] [log] [blame]
sai-neetha15e2d3a2023-03-20 08:05:47 +01001{
2 "root": true,
3 "parser": "@typescript-eslint/parser",
4 "plugins": [
5 "import",
6 "@typescript-eslint",
7 "react",
8 "react-hooks"
9 ],
10 "extends": [
11 "airbnb-typescript"
12 ],
13 "parserOptions": {
14 "project": [
15 "./tsconfig.json"
16 ],
17 "sourceType": "module"
18 },
19 "settings": {
20 "react": {
21 "version": "detect"
22 }
23 },
24 "rules": {
25 "no-console": "off",
26 "no-debugger": "off",
27 "import/no-cycle": "off",
28 "quotes": [ "error", "single" ],
29 "import/prefer-default-export": "off",
30 "lines-between-class-members": "off",
31 "no-nested-ternary": "off",
32 "no-unused-vars": "off",
33 "object-curly-newline": "off", //["error", { "multiline": true, "minProperties": 8, "consistent": true }],
34 "max-len": [ 2, 280, 2, { "ignoreUrls": true } ],
35 "@typescript-eslint/lines-between-class-members": [ "error", "always", { "exceptAfterOverload": true } ],
36 "@typescript-eslint/quotes": [ "error", "single" , { "avoidEscape": true } ],
37 "@typescript-eslint/no-unused-vars": [ "error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", "caughtErrorsIgnorePattern": "^_" } ],
38 "@typescript-eslint/naming-convention": [ "error",
39 { "format": [ "camelCase", "PascalCase", "UPPER_CASE", "snake_case" ], "leadingUnderscore": "allow", "selector": "default", "filter": { "regex": "(^&)|(^\\w+(-\\w+)+)", "match": false } } ],
40 "no-underscore-dangle": [ "error", { "allowAfterThis": true } ],
41 "no-param-reassign": [ "error", { "props": false } ],
42 "react/prop-types": [ "error", { "skipUndeclared": true } ],
43 "@typescript-eslint/member-delimiter-style": ["error"]
44 },
45 "overrides": [
46 {
47 "files": "**/handlers/*Handler.ts",
48 "rules": {
49 "no-param-reassign": "off",
50 "@typescript-eslint/default-param-last": "off"
51 }
52 }
53 ]
54}