-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.cjs
48 lines (48 loc) · 1.14 KB
/
.eslintrc.cjs
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
47
48
module.exports = {
root: true,
env: {
es2021: true,
jest: true,
'vue/setup-compiler-macros': true,
},
extends: [
'airbnb-base',
'plugin:vue/vue3-recommended',
'@vue/eslint-config-typescript',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// See https://stackoverflow.com/a/63767419
'no-unused-vars': ['off'],
// See https://youtrack.jetbrains.com/issue/WEB-21182
'import/order': ['off'],
'object-curly-newline': ['off'],
'import/extensions': [
'error',
'ignorePackages',
{
'js': 'never',
'jsx': 'never',
'ts': 'never',
'tsx': 'never',
},
],
'import/no-extraneous-dependencies': [
'error',
{
'devDependencies': ['dev/**', 'tests/**', '*.config.ts'],
'optionalDependencies': ['dev/**', 'src/**', 'tests/**'],
},
],
},
settings: {
'import/resolver': {
typescript: {},
},
},
};