-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.48 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 = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
'@vue/typescript/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': 'off',
'import/no-duplicates': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/naming-convention': 'off',
'import/no-named-as-default-member': 'off',
// The following rules are disabled since Typescript compiler can be configured to check them instead
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-explicit-any': 'off',
// TODO: The following rules should be enabled in the future
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
settings: {
'import/resolver': {
node: {},
typescript: {
alwaysTryTypes: true,
},
},
},
};