-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.08 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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parser: 'vue-eslint-parser',
extends: [
'@nuxtjs/eslint-config-typescript',
'plugin:vue/base',
'plugin:nuxt/recommended',
'airbnb-typescript/base',
],
parserOptions: {
project: './tsconfig.json',
extraFileExtensions: ['.vue', '.html'],
},
rules: {
'@typescript-eslint/camelcase': 'off',
'no-multiple-empty-lines': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'no-shadow': ['error', { 'allow': ['state'] }],
'no-param-reassign': ['error', { 'props': true, 'ignorePropertyModificationsFor': ['state'] }],
'no-restricted-syntax': [
'warn',
{
'selector': ':not(BinaryExpression:matches([operator="!=="], [operator="==="])) > Literal[value=null]',
'message': 'Usage of "null" is deprecated except when received from legacy APIs; use "undefined" instead'
},
],
'max-len': ['error', 110, 2, {
'ignorePattern': '(^import\\s.+\\sfrom\\s.+;)|(^\\s+@apply\\s.*;)$',
'ignoreUrls': true
}],
}
}