-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
39 lines (39 loc) · 1.01 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
env: {
es6: true,
node: true, // for config files
},
extends: ['eslint:recommended', 'prettier'],
overrides: [
{
files: ['**/*.svelte'],
plugins: ['svelte3'], // no plugin:prettier/recommended, it enables eslint-plugin-prettier
processor: 'svelte3/svelte3',
env: { browser: true, node: false },
settings: {
'svelte3/ignore-styles': () => true,
},
// no prettier/prettier rule, it makes eslint run prettier
},
{
files: ['*.ts', '*.spec.ts'],
extends: ['prettier/@typescript-eslint', 'plugin:prettier/recommended'],
env: { browser: true, node: false },
rules: {
'prettier/prettier': 'error',
},
},
{
files: ['*.spec.ts'],
env: {
browser: false,
jest: true,
},
},
],
};