forked from Disfactory/frontend
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.45 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
},
plugins: ['testing-library', 'jest-dom'],
'extends': [
'plugin:vue/essential',
'@vue/standard',
'@vue/typescript/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:testing-library/recommended',
'plugin:testing-library/vue',
'plugin:jest-dom/recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
quotes: 'off',
'@typescript-eslint/quotes': ['error', 'single'],
'@typescript-eslint/explicit-function-return-type': 'off',
'semi': 'off',
'@typescript-eslint/semi': ['error', 'never'],
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'comma', requireLast: false }, singleline: { delimiter: 'comma', requireLast: false }, overrides: { interface: { multiline: { delimiter: 'none' } } } }],
'@typescript-eslint/require-await': 'off', // TODO: can remove on 11/25
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
project: 'tsconfig.json',
sourceType: 'module',
extraFileExtensions: ['.vue']
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}