|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "node": true, |
| 4 | + "es2021": true |
| 5 | + }, |
| 6 | + "settings": { |
| 7 | + "import/resolver": { |
| 8 | + "node": { |
| 9 | + "extensions": [".js", ".jsx", ".ts", ".tsx"], |
| 10 | + "moduleDirectory": ["node_modules", "./"] |
| 11 | + }, |
| 12 | + "typescript": {} |
| 13 | + } |
| 14 | + }, |
| 15 | + "parserOptions": { |
| 16 | + "ecmaVersion": 8, |
| 17 | + "sourceType": "module", |
| 18 | + "allowImportExportEverywhere": true |
| 19 | + }, |
| 20 | + "ignorePatterns": ["node_modules/*", ".next/*", ".out/*", "!.prettierrc.js"], |
| 21 | + "extends": [ |
| 22 | + "eslint:recommended", |
| 23 | + "plugin:react/recommended", |
| 24 | + "plugin:react-hooks/recommended", |
| 25 | + "plugin:jsx-a11y/recommended", |
| 26 | + "next/core-web-vitals" |
| 27 | + ], |
| 28 | + "rules": { |
| 29 | + "no-unused-vars": [ |
| 30 | + "error", |
| 31 | + { |
| 32 | + "varsIgnorePattern": "^_", |
| 33 | + "ignoreRestSiblings": true |
| 34 | + } |
| 35 | + ], |
| 36 | + "import/no-unresolved": [ |
| 37 | + 2, |
| 38 | + { |
| 39 | + "ignore": ["^(all|part):"] |
| 40 | + } |
| 41 | + ], |
| 42 | + "max-lines": "off", |
| 43 | + "import/no-anonymous-default-export": "off", |
| 44 | + "react/prop-types": "off" |
| 45 | + }, |
| 46 | + "overrides": [ |
| 47 | + { |
| 48 | + "files": ["**/*.ts", "**/*.tsx"], |
| 49 | + "parser": "@typescript-eslint/parser", |
| 50 | + "settings": { "react": { "version": "detect" } }, |
| 51 | + "env": { |
| 52 | + "browser": true, |
| 53 | + "node": true, |
| 54 | + "es2021": true |
| 55 | + }, |
| 56 | + "extends": [ |
| 57 | + "eslint:recommended", |
| 58 | + "plugin:@typescript-eslint/recommended", |
| 59 | + "plugin:react/recommended", |
| 60 | + "plugin:react-hooks/recommended", |
| 61 | + "plugin:jsx-a11y/recommended" |
| 62 | + ], |
| 63 | + "plugins": ["prettier"], |
| 64 | + "rules": { |
| 65 | + "react/no-unescaped-entities": "off", |
| 66 | + "react/prop-types": "off", |
| 67 | + "react/react-in-jsx-scope": "off", |
| 68 | + "react/display-name": "off", |
| 69 | + "jsx-a11y/anchor-is-valid": "off", |
| 70 | + "@typescript-eslint/ban-types": "off", |
| 71 | + "@typescript-eslint/no-unused-vars": [ |
| 72 | + "error", |
| 73 | + { |
| 74 | + "varsIgnorePattern": "^_", |
| 75 | + "ignoreRestSiblings": true |
| 76 | + } |
| 77 | + ], |
| 78 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 79 | + "@typescript-eslint/explicit-module-boundary-types": "off" |
| 80 | + } |
| 81 | + }, |
| 82 | + { |
| 83 | + "parser": "babel-parser", |
| 84 | + "files": ["bin/**/*.js", "lib/**/*.js"], |
| 85 | + "rules": { |
| 86 | + "no-console": 0, |
| 87 | + "no-process-exit": 0 |
| 88 | + } |
| 89 | + } |
| 90 | + ] |
| 91 | +} |
0 commit comments