|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint:recommended", |
| 4 | + "plugin:react/recommended", |
| 5 | + "plugin:@typescript-eslint/recommended", |
| 6 | + "prettier/@typescript-eslint", |
| 7 | + "react-app", |
| 8 | + "plugin:sonarjs/recommended" |
| 9 | + ], |
| 10 | + "parserOptions": { |
| 11 | + "project": "./tsconfig.json", |
| 12 | + "createDefaultProgram": true |
| 13 | + }, |
| 14 | + "plugins": ["@typescript-eslint", "prettier", "spellcheck", "sonarjs"], |
| 15 | + "env": { |
| 16 | + "browser": true, |
| 17 | + "jasmine": true, |
| 18 | + "jest": true |
| 19 | + }, |
| 20 | + "rules": { |
| 21 | + "quotes": ["error", "single"], |
| 22 | + "max-len": ["error", { "code": 145, "ignoreUrls": true }], |
| 23 | + "react/display-name": "off", |
| 24 | + "react/prop-types": "off", |
| 25 | + "require-atomic-updates": "off", |
| 26 | + "sonarjs/cognitive-complexity": "off", |
| 27 | + "no-console": ["error", { "allow": ["warn", "error"] }], |
| 28 | + "comma-dangle": 0, |
| 29 | + "no-plusplus": 0, |
| 30 | + "no-continue": 0, |
| 31 | + "arrow-parens": 0, |
| 32 | + "@typescript-eslint/no-use-before-define": 0, |
| 33 | + "implicit-arrow-linebreak": 0, |
| 34 | + "object-curly-newline": 0, |
| 35 | + "operator-linebreak": 0, |
| 36 | + "function-paren-newline": 0, |
| 37 | + "no-nested-ternary": 0, |
| 38 | + "spellcheck/spell-checker": [ |
| 39 | + "error", |
| 40 | + { |
| 41 | + "comments": true, |
| 42 | + "strings": false, |
| 43 | + "identifiers": true, |
| 44 | + "lang": "en_GB", |
| 45 | + "skipWords": [ |
| 46 | + "webpack", |
| 47 | + "plugins", |
| 48 | + "antialias", |
| 49 | + "pixi", |
| 50 | + "coords", |
| 51 | + "bezier", |
| 52 | + "utils", |
| 53 | + "ctrl", |
| 54 | + "attn", |
| 55 | + "impactable", |
| 56 | + "rect", |
| 57 | + "sizer", |
| 58 | + "args", |
| 59 | + "color", |
| 60 | + "goto", |
| 61 | + "center", |
| 62 | + "miter", |
| 63 | + "browni", |
| 64 | + "technicolor", |
| 65 | + "params", |
| 66 | + "kodachrome", |
| 67 | + "polaroid", |
| 68 | + "truthy" |
| 69 | + ], |
| 70 | + "skipIfMatch": ["http[s]?://[^s]*", "eslint.*", ".*px", ".*vh", ".*vw", "[\\s]*#.*", "ws[s]?://[^s]*"], |
| 71 | + "minLength": 4 |
| 72 | + } |
| 73 | + ] |
| 74 | + }, |
| 75 | + "overrides": [ |
| 76 | + { |
| 77 | + // enable the rule specifically for TypeScript files |
| 78 | + "files": ["*.ts", "*.tsx"], |
| 79 | + "rules": { |
| 80 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 81 | + "@typescript-eslint/prefer-interface": "off", |
| 82 | + "@typescript-eslint/consistent-type-assertions": ["off"], |
| 83 | + "@typescript-eslint/no-unused-vars": ["error"] |
| 84 | + } |
| 85 | + } |
| 86 | + ], |
| 87 | + "settings": { |
| 88 | + "react": { |
| 89 | + "pragma": "React", |
| 90 | + "version": "detect" |
| 91 | + } |
| 92 | + }, |
| 93 | + "parser": "@typescript-eslint/parser" |
| 94 | +} |
0 commit comments