|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + browser: true, |
| 5 | + es2021: true, |
| 6 | + node: true, |
| 7 | + }, |
| 8 | + extends: [ |
| 9 | + "eslint:recommended", |
| 10 | + "plugin:react/recommended", |
| 11 | + "plugin:react/jsx-runtime", |
| 12 | + "plugin:@typescript-eslint/recommended", |
| 13 | + "prettier", |
| 14 | + ], |
| 15 | + parser: "@typescript-eslint/parser", |
| 16 | + parserOptions: { |
| 17 | + ecmaFeatures: { |
| 18 | + jsx: true, |
| 19 | + }, |
| 20 | + ecmaVersion: "latest", |
| 21 | + sourceType: "module", |
| 22 | + }, |
| 23 | + plugins: ["react", "@typescript-eslint", "prettier"], |
| 24 | + settings: { |
| 25 | + react: { |
| 26 | + version: "detect", |
| 27 | + }, |
| 28 | + }, |
| 29 | + rules: { |
| 30 | + "prettier/prettier": "error", |
| 31 | + "react/react-in-jsx-scope": "off", |
| 32 | + "react/prop-types": "off", |
| 33 | + "react/no-unknown-property": "off", |
| 34 | + "react/display-name": "off", |
| 35 | + "@typescript-eslint/no-unused-vars": "off", |
| 36 | + "@typescript-eslint/no-explicit-any": "off", |
| 37 | + "@typescript-eslint/no-var-requires": "off", |
| 38 | + "@typescript-eslint/no-require-imports": "off", |
| 39 | + "@typescript-eslint/ban-ts-comment": "off", |
| 40 | + "@typescript-eslint/no-empty-object-type": "off", |
| 41 | + "no-console": "off", |
| 42 | + "no-undef": "off", |
| 43 | + "no-useless-escape": "off", |
| 44 | + "no-prototype-builtins": "off", |
| 45 | + "no-constant-condition": "off", |
| 46 | + "no-misleading-character-class": "off", |
| 47 | + "react/no-unescaped-entities": "off", |
| 48 | + }, |
| 49 | + ignorePatterns: [ |
| 50 | + "node_modules/", |
| 51 | + "build/", |
| 52 | + ".docusaurus/", |
| 53 | + ".cache-loader/", |
| 54 | + "tmp/", |
| 55 | + "static/", |
| 56 | + "*.config.js", |
| 57 | + "babel.config.js", |
| 58 | + ], |
| 59 | +}; |
0 commit comments