forked from shipshapecode/shepherd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
58 lines (58 loc) · 1.18 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
57
58
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
extends: ['eslint:recommended', 'plugin:svelte/recommended'],
env: {
browser: true
},
rules: {
'max-lines': [
'warn',
{ max: 500, skipBlankLines: true, skipComments: true }
],
'no-console': 'off',
'prefer-const': 'off'
},
overrides: [
// svelte files
{
files: ['**/*.svelte'],
processor: 'svelte/svelte'
},
// Typescript files
{
parser: '@typescript-eslint/parser',
files: ['**/*.ts'],
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' }
],
'prefer-rest-params': 'off'
}
},
// node files
{
files: [
'.eslintrc.js',
'.prettierrc.js',
'babel.config.js',
'jest.config.js',
'svelte.config.js',
'tailwind.config.js'
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
node: true
}
}
]
};