-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
39 lines (39 loc) · 969 Bytes
/
.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 = {
extends: [
'eslint:recommended',
'plugin:testing-library/dom',
'plugin:jest-dom/recommended'
],
env: {
browser: true,
es2020: true,
node: true,
jest: true
},
plugins: ['svelte3'],
overrides: [
{
files: ['*.svelte'],
processor: 'svelte3/svelte3'
},
{
files: ['*.js'],
extends: ['prettier']
}
],
parserOptions: {
sourceType: 'module'
},
settings: {
// unfortunately, eslint-plugin-svelte can not work with preprocessors, like postcss
'svelte3/ignore-styles': () => true
},
rules: {
// some false-positives:
// /home/damien/dev/perso/melodie/common/core/lib/models/abstract-model.test.js
// 314:38 error `getById` query is sync so it does not need to be awaited
'testing-library/no-await-sync-query': 'off',
'testing-library/prefer-presence-queries': 'off',
'testing-library/no-wait-for-multiple-assertions': 'off'
}
}