-
Notifications
You must be signed in to change notification settings - Fork 45
/
.eslintrc.js
35 lines (35 loc) · 996 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
extends: ['@nuxtjs', 'plugin:nuxt/recommended'],
plugins: ['@typescript-eslint'],
// add your custom rules here
rules: {
'nuxt/no-cjs-in-config': 'off',
'no-useless-catch': 'off',
'no-console': 'off',
'no-throw-literal': 'off',
'require-await': 'off',
'no-case-declarations': 'off',
'default-param-last': 'off',
'prefer-regex-literals': 'off',
'no-new': 'off',
'import/no-mutable-exports': 'off',
'comma-dangle': [2, 'always-multiline'],
indent: ['error', 2, { SwitchCase: 1 }],
'vue/this-in-template': 'off',
'vue/no-mutating-props': 'off',
'vue/require-prop-types': 'off',
'vue/custom-event-name-casing': 'off',
'vue/no-parsing-error': ['error', {
'control-character-in-input-stream': false,
}],
/* 更多配置请戳 http://eslint.cn/docs/rules/ */
},
}