|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "plugins": [ |
| 4 | + "eslint-plugin", |
| 5 | + "import", |
| 6 | + ], |
| 7 | + "extends": [ |
| 8 | + "eslint:recommended", |
| 9 | + "plugin:eslint-plugin/recommended", |
| 10 | + "plugin:import/recommended", |
| 11 | + ], |
| 12 | + "env": { |
| 13 | + "node": true, |
| 14 | + "es6": true, |
| 15 | + }, |
| 16 | + "parserOptions": { |
| 17 | + "sourceType": "module", |
| 18 | + "ecmaVersion": 6, |
| 19 | + }, |
| 20 | + "rules": { |
| 21 | + "max-len": [1, 99, 2], |
| 22 | + "semi": [2, "never"], |
| 23 | + "curly": [2, "multi-line"], |
| 24 | + "comma-dangle": [2, "always-multiline"], |
| 25 | + "eol-last": [2, "always"], |
| 26 | + "eqeqeq": [2, "allow-null"], |
| 27 | + "no-shadow": 1, |
| 28 | + "quotes": [2, "single", { |
| 29 | + "allowTemplateLiterals": true, |
| 30 | + "avoidEscape": true, |
| 31 | + }], |
| 32 | + "eslint-plugin/consistent-output": [ |
| 33 | + "error", |
| 34 | + "always", |
| 35 | + ], |
| 36 | + "eslint-plugin/meta-property-ordering": "error", |
| 37 | + "eslint-plugin/no-deprecated-context-methods": "error", |
| 38 | + "eslint-plugin/no-deprecated-report-api": "off", |
| 39 | + "eslint-plugin/prefer-replace-text": "error", |
| 40 | + "eslint-plugin/report-message-format": "error", |
| 41 | + "eslint-plugin/require-meta-schema": "error", |
| 42 | + "eslint-plugin/require-meta-type": "error", |
| 43 | + |
| 44 | + // dog fooding |
| 45 | + "import/no-extraneous-dependencies": "error", |
| 46 | + "import/unambiguous": "off", |
| 47 | + }, |
| 48 | + |
| 49 | + "settings": { |
| 50 | + "import/resolver": { |
| 51 | + "node": { |
| 52 | + "paths": [ |
| 53 | + "src", |
| 54 | + ], |
| 55 | + }, |
| 56 | + }, |
| 57 | + }, |
| 58 | +} |
0 commit comments