|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint:recommended", |
| 4 | + "prettier", |
| 5 | + "plugin:@typescript-eslint/recommended", |
| 6 | + "plugin:prettier/recommended", |
| 7 | + "plugin:cypress/recommended", |
| 8 | + "plugin:react/recommended", |
| 9 | + "plugin:react/jsx-runtime" |
| 10 | + ], |
| 11 | + "env": { |
| 12 | + "node": true, |
| 13 | + "browser": true, |
| 14 | + "jest": true |
| 15 | + }, |
| 16 | + "settings": { |
| 17 | + "react": { |
| 18 | + "version": "detect" |
| 19 | + } |
| 20 | + }, |
| 21 | + "globals": { |
| 22 | + "page": true |
| 23 | + }, |
| 24 | + "ignorePatterns": ["prism-langs.ts", "**/dist/**/*", "**/build/**/*", "**/node_modules/**/*", "**/public/**/*", "**/.docusaurus/**/*"], |
| 25 | + "parser": "@typescript-eslint/parser", |
| 26 | + "parserOptions": { |
| 27 | + "ecmaVersion": 12, |
| 28 | + "ecmaFeatures": { |
| 29 | + "jsx": true |
| 30 | + } |
| 31 | + }, |
| 32 | + "plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"], |
| 33 | + "rules": { |
| 34 | + "max-params": 0, |
| 35 | + "max-statements": 0, |
| 36 | + "react/react-in-jsx-scope": "off", |
| 37 | + "react/jsx-uses-react": "off", |
| 38 | + "no-invalid-this": 0, |
| 39 | + "no-magic-numbers": 0, |
| 40 | + "no-unused-expressions": 0, |
| 41 | + "prettier/prettier": "error", |
| 42 | + "react/no-multi-comp": 0, |
| 43 | + "react/prefer-es6-class": 0, |
| 44 | + "react/prop-types": 0, |
| 45 | + "react/sort-prop-types": 0, |
| 46 | + "react/no-string-refs": 0, |
| 47 | + "@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }], |
| 48 | + "react/no-did-update-set-state": 0, |
| 49 | + "react-hooks/rules-of-hooks": "error", |
| 50 | + "react-hooks/exhaustive-deps": "error", |
| 51 | + "@typescript-eslint/no-var-requires": 0 |
| 52 | + }, |
| 53 | +} |
0 commit comments