|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "env": { |
| 4 | + "node": true, |
| 5 | + "browser": true, |
| 6 | + "commonjs": true, |
| 7 | + "es2021": true, |
| 8 | + "mocha": true |
| 9 | + }, |
| 10 | + "extends": [ |
| 11 | + "eslint:recommended", |
| 12 | + "plugin:@typescript-eslint/recommended", |
| 13 | + "plugin:react/recommended", |
| 14 | + "google", |
| 15 | + "prettier", |
| 16 | + "plugin:json/recommended" |
| 17 | + ], |
| 18 | + "overrides": [ |
| 19 | + { |
| 20 | + "files": ["test/**/*.js", "**/*.json"], |
| 21 | + "parser": "espree", |
| 22 | + "rules": { |
| 23 | + "@typescript-eslint/no-unused-expressions": "off" |
| 24 | + } |
| 25 | + } |
| 26 | + ], |
| 27 | + "parserOptions": { |
| 28 | + "project": "./tsconfig.json", |
| 29 | + "requireConfigFile": false, |
| 30 | + "ecmaVersion": 12, |
| 31 | + "sourceType": "module", |
| 32 | + "ecmaFeatures": { |
| 33 | + "jsx": true, |
| 34 | + "modules": true |
| 35 | + }, |
| 36 | + "babelOptions": { |
| 37 | + "presets": ["@babel/preset-react"] |
| 38 | + } |
| 39 | + }, |
| 40 | + "plugins": ["@typescript-eslint", "react", "prettier", "license-header"], |
| 41 | + "rules": { |
| 42 | + "react/prop-types": "off", |
| 43 | + "require-jsdoc": "off", |
| 44 | + "no-async-promise-executor": "off", |
| 45 | + "@typescript-eslint/no-explicit-any": "off", // temporary until TS refactor is complete |
| 46 | + "@typescript-eslint/no-unused-vars": "off", // temporary until TS refactor is complete |
| 47 | + "@typescript-eslint/no-require-imports": "off", // prevents error on old "require" imports |
| 48 | + "@typescript-eslint/no-unused-expressions": "off", // prevents error on test "expect" expressions |
| 49 | + "license-header/header": [ |
| 50 | + "error", |
| 51 | + "./LICENSE_header.txt" |
| 52 | + ] |
| 53 | + }, |
| 54 | + "settings": { |
| 55 | + "react": { |
| 56 | + "version": "detect" |
| 57 | + } |
| 58 | + } |
| 59 | +} |
0 commit comments