forked from Droccal/homebridge-lay-z-spa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.59 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'standard'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 13,
sourceType: 'module'
},
plugins: [
'@typescript-eslint'
],
rules: {
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-console': 'warn',
'no-debugger': 'warn',
'import/prefer-default-export': 0,
indent: ['error', 4],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['warn', 'never'],
'import/no-extraneous-dependencies': 'off',
'no-param-reassign': [2, {props: false}],
'object-curly-spacing': 'off',
'comma-dangle': 'off',
'max-len': ['warn', {code: 200, ignoreComments: true}],
'arrow-body-style': ['error', 'as-needed', { requireReturnForObjectLiteral: false }],
'class-methods-use-this': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/max-attributes-per-line': 'off',
'no-underscore-dangle': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/no-v-html': 'off',
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'max-classes-per-file': 'off'
},
}