-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.yaml
35 lines (35 loc) · 863 Bytes
/
.eslintrc.yaml
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
root: true
env:
'browser': true
'node': true
'vue/setup-compiler-macros': true
extends:
- '@nuxtjs/eslint-config-typescript'
- 'plugin:nuxt/recommended'
- 'airbnb-base'
plugins: []
rules:
'import/extensions': [
'error',
'ignorePackages',
{ js: 'never', ts: 'never' },
]
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
]
'object-curly-newline': [
'error',
{
'ObjectExpression': { multiline: true, consistent: true },
'ObjectPattern': { multiline: true, consistent: true },
'ImportDeclaration': { multiline: true, consistent: true },
'ExportDeclaration': { multiline: true, consistent: true },
},
]
'no-shadow': 'off'
'no-unused-vars': 'off'
'@typescript-eslint/no-shadow': 'error'
'@typescript-eslint/no-unused-vars': 'error'