This repository has been archived by the owner on May 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
58 lines (57 loc) · 1.42 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 = {
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
project: './tsconfig.json',
extraFileExtensions: ['.svelte'],
ecmaVersion: 2019,
sourceType: 'module',
},
env: {
es6: true,
browser: true,
jest: true,
},
extends: [
'plugin:vue/essential',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'plugin:@typescript-eslint/recommended',
'plugin:jest/all'
],
plugins: [
'@typescript-eslint',
'prettier',
'svelte3',
'jest'
],
overrides: [
{
files: ['**/*.svelte'],
processor: 'svelte3/svelte3',
rules: {
'import/first': 'off',
'import/no-duplicates': 'off',
'import/no-mutable-exports': 'off',
'import/no-unresolved': 'off',
},
},
],
rules: {
'import/no-extraneous-dependencies': 'off',
'no-shadow': 'warn',
'linebreak-style': ['warn', 'unix'],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
semi: [1, 'never'],
quotes: [2, 'single', { avoidEscape: true }],
'jest/prefer-expect-assertions': 'warn',
},
settings: {
'import/core-modules': 'svelte',
},
}