-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
39 lines (36 loc) · 903 Bytes
/
Copy path.eslintrc.js
File metadata and controls
39 lines (36 loc) · 903 Bytes
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
module.exports = {
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/strongly-recommended',
'@vue/typescript/recommended',
'prettier',
],
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 2015,
},
plugins: ['prettier', '@typescript-eslint'],
rules: {
'prettier/prettier': [
'warn',
{
singleQuote: true,
trailingComma: 'all',
semi: false,
maxWidth: 120,
},
],
// Generics
semi: ['warn', 'never'],
'max-len': ['warn', { code: 120 }],
'no-undef': ['off'],
// Typescript
'@typescript-eslint/no-non-null-assertion': ['off'],
'@typescript-eslint/no-inferrable-types': ['off'],
// Vue
'vue/multi-word-component-names': 'off',
},
ignorePatterns: ['public/**/*'],
}