-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy path.eslintrc.js
56 lines (48 loc) · 1.34 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
47
48
49
50
51
52
53
54
55
56
// Configuration for EsLint
// See: https://eslint.org/docs/user-guide/configuring
module.exports = {
'root': true,
'extends': [
'@wemake-services/javascript',
'@wemake-services/typescript/recommended',
'@wemake-services/vue',
'@wemake-services/jsdoc',
'plugin:nuxt/recommended',
'@vue/typescript',
'plugin:compat/recommended',
'plugin:vue-a11y/recommended',
],
'plugins': [
'compat',
'json',
'eslint-plugin-import-helpers',
],
'rules': {
// Sets the import order linting,
// see: https://github.com/Tibfib/eslint-plugin-import-helpers
'import-helpers/order-imports': ['error', {
'newlinesBetween': 'always',
'groups': ['module', '/^~//', '/^@//'],
'alphabetize': { 'order': 'asc', 'ignoreCase': false },
}],
},
'overrides': [{
// Pages and layouts should have kebab case due to Nuxt's API:
'files': ['client/pages/**/*.vue', 'client/layouts/**/*.vue'],
'rules': {
'unicorn/filename-case': ['error', { 'case': 'kebabCase' }],
},
}],
'parserOptions': {
'parser': '@typescript-eslint/parser',
},
'settings': {
// providing polyfills for `eslint-plugin-compat` plugin, see:
// https://github.com/amilajack/eslint-plugin-compat/wiki/Adding-polyfills
'polyfills': [],
},
'env': {
'node': true,
'browser': true,
},
}