forked from ucan-wg/ucan-community-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
49 lines (49 loc) · 1.48 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
47
48
49
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
extraFileExtensions: ['.svelte']
},
env: {
es6: true,
browser: true
},
settings: {
'svelte3/typescript': () => require('typescript'),
},
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['node_modules'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
overrides: [
{
files: ['*.svelte'],
processor: 'svelte3/svelte3'
}
],
rules: {
"@typescript-eslint/ban-ts-comment": ['error', { 'ts-ignore': 'allow-with-description'}],
'@typescript-eslint/member-delimiter-style': ['error', {
'multiline': {
'delimiter': 'none',
'requireLast': false
}
}],
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
'@typescript-eslint/no-use-before-define': ['off'],
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/quotes': ['error', 'single', {
allowTemplateLiterals: true
}],
// If you want to *intentionally* run a promise without awaiting, prepend it with "void " instead of "await "
'@typescript-eslint/no-floating-promises': ['error'],
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-empty-function': ['warn']
}
}