|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "extends": [ |
| 4 | + "eslint:recommended", |
| 5 | + "plugin:@typescript-eslint/eslint-recommended", |
| 6 | + "plugin:@typescript-eslint/recommended" // uses the recommended rules from the @typescript-eslint/eslint-plugin |
| 7 | + ], |
| 8 | + "parserOptions": { |
| 9 | + "ecmaVersion": 2018, |
| 10 | + "sourceType": "module" |
| 11 | + }, |
| 12 | + "ignorePatterns": [ |
| 13 | + "dist" |
| 14 | + ], |
| 15 | + "rules": { |
| 16 | + "quotes": ["warn", "single"], |
| 17 | + "indent": ["warn", 2, { "SwitchCase": 1 }], |
| 18 | + "semi": ["off"], |
| 19 | + "comma-dangle": ["warn", "always-multiline"], |
| 20 | + "dot-notation": "off", |
| 21 | + "eqeqeq": "warn", |
| 22 | + "curly": ["warn", "all"], |
| 23 | + "brace-style": ["warn"], |
| 24 | + "prefer-arrow-callback": ["warn"], |
| 25 | + "max-len": ["warn", 140], |
| 26 | + "no-console": ["warn"], // use the provided Homebridge log method instead |
| 27 | + "no-non-null-assertion": ["off"], |
| 28 | + "comma-spacing": ["error"], |
| 29 | + "no-multi-spaces": ["warn", { "ignoreEOLComments": true }], |
| 30 | + "no-trailing-spaces": ["warn"], |
| 31 | + "lines-between-class-members": ["warn", "always", {"exceptAfterSingleLine": true}], |
| 32 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 33 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 34 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 35 | + "@typescript-eslint/semi": ["warn"], |
| 36 | + "@typescript-eslint/member-delimiter-style": ["warn"] |
| 37 | + } |
| 38 | +} |
0 commit comments