forked from B2Bitcoin/beBOP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
46 lines (46 loc) · 1.08 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
42
43
44
45
46
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'plugin:svelte/recommended',
'plugin:svelte/prettier',
'plugin:@typescript-eslint/recommended',
'prettier'
],
plugins: ['svelte', '@typescript-eslint'],
// All because of `parserOptions.project`
ignorePatterns: ['*.cjs', '*.js', 'playwright.config.ts', 'scripts'],
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
],
settings: {
'svelte3/typescript': () => require('typescript')
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
project: 'tsconfig.json',
extraFileExtensions: ['.svelte']
},
rules: {
'no-empty': 'off',
eqeqeq: 'error',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/switch-exhaustiveness-check': 'error',
curly: 'error'
},
env: {
browser: true,
es2017: true,
node: true
}
};