|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "plugins": [ |
| 4 | + "@typescript-eslint", |
| 5 | + "prettier" |
| 6 | + ], |
| 7 | + "extends": [ |
| 8 | + "plugin:@typescript-eslint/recommended", |
| 9 | + "airbnb", |
| 10 | + "plugin:prettier/recommended" |
| 11 | + ], |
| 12 | + "env": { |
| 13 | + "browser": true |
| 14 | + }, |
| 15 | + "globals": { |
| 16 | + "JSX": "readonly" |
| 17 | + }, |
| 18 | + "settings": { |
| 19 | + "import/resolver": { |
| 20 | + "node": { |
| 21 | + "extensions": [".js", ".ts", ".tsx"] |
| 22 | + } |
| 23 | + } |
| 24 | + }, |
| 25 | + "rules": { |
| 26 | + "react/jsx-uses-react": "off", |
| 27 | + "react/react-in-jsx-scope": "off", |
| 28 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 29 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 30 | + "@typescript-eslint/no-explicit-any": "off", |
| 31 | + "react/jsx-filename-extension": ["error", { "extensions": [".js", ".tsx"] }], |
| 32 | + "react/prop-types": "off", |
| 33 | + "react/jsx-one-expression-per-line": "off", |
| 34 | + "import/extensions": ["error", "never"], |
| 35 | + "import/prefer-default-export": "off", |
| 36 | + "import/no-unresolved": ["error", { "ignore": ["jotai-form"] }], |
| 37 | + "no-param-reassign": "off", |
| 38 | + "no-plusplus": "off", |
| 39 | + "no-bitwise": "off", |
| 40 | + "symbol-description": "off", |
| 41 | + "prefer-object-spread": "off", |
| 42 | + "no-use-before-define": "off", |
| 43 | + "no-unused-vars": "off", |
| 44 | + "no-redeclare": "off", |
| 45 | + "react/function-component-definition": ["error", { "namedComponents": "arrow-function" }] |
| 46 | + }, |
| 47 | + "overrides": [{ |
| 48 | + "files": ["__tests__/**/*"], |
| 49 | + "env": { |
| 50 | + "jest": true |
| 51 | + }, |
| 52 | + "rules": { |
| 53 | + "import/no-extraneous-dependencies": ["error", { "devDependencies": true }] |
| 54 | + } |
| 55 | + }, { |
| 56 | + "files": ["examples/**/*"], |
| 57 | + "rules": { |
| 58 | + "import/no-extraneous-dependencies": "off" |
| 59 | + } |
| 60 | + }] |
| 61 | +} |
0 commit comments