|
| 1 | +module.exports = { |
| 2 | + extends: ["plugin:react-hooks/recommended", "plugin:@typescript-eslint/base"], |
| 3 | + parser: "@typescript-eslint/parser", |
| 4 | + env: { |
| 5 | + browser: true, |
| 6 | + es6: true, |
| 7 | + node: true, |
| 8 | + }, |
| 9 | + plugins: ["react", "@typescript-eslint"], |
| 10 | + rules: { |
| 11 | + "@typescript-eslint/no-unused-vars": [ |
| 12 | + "error", |
| 13 | + { |
| 14 | + args: "after-used", |
| 15 | + argsIgnorePattern: "^event$", |
| 16 | + ignoreRestSiblings: true, |
| 17 | + vars: "all", |
| 18 | + varsIgnorePattern: "jsx|emotionJSX", |
| 19 | + }, |
| 20 | + ], |
| 21 | + curly: [2, "multi-line"], |
| 22 | + "jsx-quotes": 2, |
| 23 | + "no-shadow": 0, |
| 24 | + "@typescript-eslint/no-shadow": 2, |
| 25 | + "no-trailing-spaces": 1, |
| 26 | + "no-underscore-dangle": 1, |
| 27 | + "@typescript-eslint/no-unused-expressions": 1, |
| 28 | + "object-curly-spacing": [1, "always"], |
| 29 | + // quotes: "off", |
| 30 | + // "@typescript-eslint/quotes": "error", |
| 31 | + "@typescript-eslint/quotes": [2, "double", "avoid-escape"], |
| 32 | + "react/jsx-boolean-value": 1, |
| 33 | + "react/jsx-no-undef": 1, |
| 34 | + "react/jsx-uses-react": 1, |
| 35 | + "react/jsx-uses-vars": 1, |
| 36 | + "react/jsx-wrap-multilines": 1, |
| 37 | + "react/no-did-mount-set-state": 1, |
| 38 | + "react/no-did-update-set-state": 1, |
| 39 | + "react/no-unknown-property": 1, |
| 40 | + "react/react-in-jsx-scope": 1, |
| 41 | + "react/self-closing-comp": 1, |
| 42 | + "react/sort-prop-types": 1, |
| 43 | + "@typescript-eslint/semi": 2, |
| 44 | + "@typescript-eslint/no-inferrable-types": 2, |
| 45 | + strict: 0, |
| 46 | + }, |
| 47 | + settings: { |
| 48 | + react: { |
| 49 | + version: "detect", |
| 50 | + }, |
| 51 | + }, |
| 52 | +}; |
0 commit comments