|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint:recommended", |
| 4 | + "plugin:react/recommended", |
| 5 | + "plugin:prettier/recommended" |
| 6 | + ], |
| 7 | + "plugins": [ |
| 8 | + "react", |
| 9 | + "import-helpers", |
| 10 | + "prettier" |
| 11 | + ], |
| 12 | + "parser": "@typescript-eslint/parser", |
| 13 | + "parserOptions": { |
| 14 | + "project": [ |
| 15 | + "./tsconfig.node.json", |
| 16 | + "./tsconfig.json" |
| 17 | + ], |
| 18 | + "extraFileExtensions:": [ |
| 19 | + ".mdx" |
| 20 | + ], |
| 21 | + "extensions:": [ |
| 22 | + ".mdx" |
| 23 | + ] |
| 24 | + }, |
| 25 | + "env": { |
| 26 | + "browser": true, |
| 27 | + "es2021": true |
| 28 | + }, |
| 29 | + "settings": { |
| 30 | + "react": { |
| 31 | + "version": "detect" |
| 32 | + } |
| 33 | + }, |
| 34 | + "rules": { |
| 35 | + "no-console": "warn", |
| 36 | + "no-self-assign": "warn", |
| 37 | + "no-self-compare": "warn", |
| 38 | + "complexity": [ |
| 39 | + "error", |
| 40 | + { |
| 41 | + "max": 15 |
| 42 | + } |
| 43 | + ], |
| 44 | + "indent": [ |
| 45 | + "error", |
| 46 | + 2, |
| 47 | + { |
| 48 | + "SwitchCase": 1 |
| 49 | + } |
| 50 | + ], |
| 51 | + "no-dupe-keys": "error", |
| 52 | + "no-invalid-regexp": "error", |
| 53 | + "no-undef": "error", |
| 54 | + "no-return-assign": "error", |
| 55 | + "no-redeclare": "error", |
| 56 | + "no-empty": "error", |
| 57 | + "no-await-in-loop": "error", |
| 58 | + "react/react-in-jsx-scope": 0, |
| 59 | + "node/exports-style": [ |
| 60 | + "error", |
| 61 | + "module.exports" |
| 62 | + ], |
| 63 | + "node/file-extension-in-import": [ |
| 64 | + "error", |
| 65 | + "always" |
| 66 | + ], |
| 67 | + "node/prefer-global/buffer": [ |
| 68 | + "error", |
| 69 | + "always" |
| 70 | + ], |
| 71 | + "node/prefer-global/console": [ |
| 72 | + "error", |
| 73 | + "always" |
| 74 | + ], |
| 75 | + "node/prefer-global/process": [ |
| 76 | + "error", |
| 77 | + "always" |
| 78 | + ], |
| 79 | + "node/prefer-global/url-search-params": [ |
| 80 | + "error", |
| 81 | + "always" |
| 82 | + ], |
| 83 | + "node/prefer-global/url": [ |
| 84 | + "error", |
| 85 | + "always" |
| 86 | + ], |
| 87 | + "node/prefer-promises/dns": "error", |
| 88 | + "node/prefer-promises/fs": "error" |
| 89 | + } |
| 90 | +} |
0 commit comments