|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "parserOptions": { "project": "./tsconfig.lint.json" }, |
| 4 | + "plugins": ["react-hooks", "prettier"], |
| 5 | + "extends": [ |
| 6 | + "plugin:jsx-a11y/recommended", |
| 7 | + "plugin:jest/recommended", |
| 8 | + "plugin:jest/style", |
| 9 | + "eslint:recommended", |
| 10 | + "plugin:react/recommended", |
| 11 | + "plugin:@typescript-eslint/eslint-recommended", |
| 12 | + "plugin:@typescript-eslint/recommended", |
| 13 | + |
| 14 | + // Prettier overrides |
| 15 | + "prettier", |
| 16 | + "prettier/react", |
| 17 | + "prettier/@typescript-eslint" |
| 18 | + ], |
| 19 | + "settings": { |
| 20 | + "react": { |
| 21 | + "version": "detect" |
| 22 | + } |
| 23 | + }, |
| 24 | + "env": { |
| 25 | + "browser": true, |
| 26 | + "es6": true, |
| 27 | + "commonjs": true, |
| 28 | + "node": true, |
| 29 | + "jest": true |
| 30 | + }, |
| 31 | + "rules": { |
| 32 | + // Off |
| 33 | + "react/prop-types": "off", |
| 34 | + "react/display-name": "off", |
| 35 | + "@typescript-eslint/no-explicit-any": "off", |
| 36 | + "@typescript-eslint/no-empty-function": "off", |
| 37 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 38 | + "@typescript-eslint/no-var-requires": "off", |
| 39 | + "@typescript-eslint/no-empty-interface": "off", |
| 40 | + "@typescript-eslint/camelcase": "off", |
| 41 | + "@typescript-eslint/no-triple-slash-reference": "off", |
| 42 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 43 | + "@typescript-eslint/ban-ts-comment": "off", |
| 44 | + "@typescript-eslint/no-use-before-define": "off", |
| 45 | + // Consider turning on eventually... lots of warnings though. |
| 46 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 47 | + |
| 48 | + // On. |
| 49 | + "prettier/prettier": "error", |
| 50 | + "no-empty": ["error", { "allowEmptyCatch": true }], |
| 51 | + "prefer-const": "error", |
| 52 | + "react-hooks/rules-of-hooks": "error", |
| 53 | + "react-hooks/exhaustive-deps": "error", |
| 54 | + "@typescript-eslint/no-unused-vars": [ |
| 55 | + "error", |
| 56 | + { "argsIgnorePattern": "^_" } |
| 57 | + ], |
| 58 | + "@typescript-eslint/unbound-method": "error" |
| 59 | + } |
| 60 | +} |
0 commit comments