|
| 1 | +module.exports = { |
| 2 | + "root": true, |
| 3 | + "env": { |
| 4 | + "node": true, |
| 5 | + "jest": true, |
| 6 | + "jest/globals": true, |
| 7 | + }, |
| 8 | + "parser": "@typescript-eslint/parser", |
| 9 | + "parserOptions": { |
| 10 | + "ecmaVersion": 2019, |
| 11 | + "sourceType": "module", |
| 12 | + "ecmaFeatures": { |
| 13 | + "jsx": false, |
| 14 | + }, |
| 15 | + "project": "tsconfig.json", |
| 16 | + }, |
| 17 | + "plugins": [ |
| 18 | + "wix-editor", |
| 19 | + "unicorn", |
| 20 | + "import", |
| 21 | + "jest", |
| 22 | + "@typescript-eslint/tslint", |
| 23 | + "only-warn", |
| 24 | + ], |
| 25 | + "extends": [ |
| 26 | + "eslint:recommended", |
| 27 | + "plugin:unicorn/recommended", |
| 28 | + "plugin:import/errors", |
| 29 | + "plugin:import/warnings", |
| 30 | + "plugin:import/typescript", |
| 31 | + "plugin:jest/recommended", |
| 32 | + ], |
| 33 | + "rules": { |
| 34 | + "quotes": [1, "single", { "allowTemplateLiterals": true }], |
| 35 | + "semi": [1, "always"], |
| 36 | + // wix-editor |
| 37 | + "wix-editor/augmented-assignment": 1, |
| 38 | + "wix-editor/no-instanceof-array": 1, |
| 39 | + "wix-editor/no-not-not": 1, |
| 40 | + "wix-editor/no-unneeded-match": 1, |
| 41 | + "wix-editor/prefer-filter": 1, |
| 42 | + "wix-editor/prefer-ternary": 1, |
| 43 | + "wix-editor/return-boolean": 1, |
| 44 | + "wix-editor/simplify-boolean-expression": 1, |
| 45 | + // unicorn |
| 46 | + "unicorn/import-index": 0, |
| 47 | + "unicorn/catch-error-name": 0, |
| 48 | + // import |
| 49 | + "import/newline-after-import": 0, |
| 50 | + "import/no-duplicates": 1, |
| 51 | + "import/max-dependencies": [1, { "max": 10 }], |
| 52 | + // tslint |
| 53 | + "@typescript-eslint/tslint/config": [1, { |
| 54 | + lintFile: "./tslint.json", |
| 55 | + }], |
| 56 | + } |
| 57 | +}; |
0 commit comments