-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.cjs
41 lines (41 loc) · 1.16 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
extraFileExtensions: ['*.svelte']
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte', '@typescript-eslint', 'prettier'],
ignorePatterns: ['*.cjs', '*.js'],
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
],
settings: {
typescript: () => require('typescript')
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-tabs': 'error',
'no-undef': 'off', // Covered by TS, and eslint false flags some globals
'no-inner-declarations': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-self-assign': 'off'
}
};