-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
36 lines (36 loc) · 1.11 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: 'standard-with-typescript',
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs', 'package/**/*', '*.config.js'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
rules: {
'import/first': 'off',
'no-multiple-empty-lines': 'off',
'no-undef-init': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off', // typescript does this better
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/return-await': ['error', 'always'],
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/prefer-readonly': ['off']
},
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
extraFileExtensions: ['.svelte'],
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
}
};