-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.js
45 lines (45 loc) · 1.04 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
module.exports = {
extends: ['plugin:@empathyco/x/all'],
ignorePatterns: ['cypress.config.ts'],
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json'
},
rules: {
'no-dupe-class-members': 'off',
'@typescript-eslint/no-unused-vars-experimental': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'vue/require-default-prop': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-for-template-key': 'off'
},
overrides: [
{
files: 'src/**/*.vue',
rules: {
'max-len': [
'error',
{
code: 100,
ignoreComments: false,
ignorePattern: '|class=".*"$ |https://github'
}
]
}
},
{
files: 'src/components/icons/*.vue',
rules: {
'max-len': 'off'
}
},
{
files: ['*.spec.ts'],
rules: {
'max-len': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'vue/one-component-per-file': 'off'
}
}
]
};