forked from crishellco/vue-call-store
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
executable file
·43 lines (43 loc) · 1.16 KB
/
Copy path.eslintrc.js
File metadata and controls
executable file
·43 lines (43 loc) · 1.16 KB
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
module.exports = {
root: true,
env: { node: true },
extends: [
'plugin:jest/recommended',
'plugin:jest-formatting/recommended',
'plugin:vue/recommended',
'prettier'
],
plugins: ['jest-formatting', 'import'],
parserOptions: { parser: 'babel-eslint' },
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'object-curly-newline': ['error', { multiline: true }],
'import/newline-after-import': ['error', { count: 1 }],
'import/order': [
'error',
{
alphabetize: {
order: 'asc'
},
groups: [['builtin', 'external', 'unknown'], ['internal'], ['parent', 'sibling', 'index']],
'newlines-between': 'always',
pathGroups: [
{
group: 'internal',
pattern: '{@,~}/*/**',
position: 'after'
}
],
pathGroupsExcludedImportTypes: ['builtin']
}
]
},
overrides: [
{
files: ['**/*.spec.{j,t}s?(x)'],
env: { jest: true }
}
]
};