-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy patheslint.config.mjs
More file actions
59 lines (58 loc) · 1.74 KB
/
eslint.config.mjs
File metadata and controls
59 lines (58 loc) · 1.74 KB
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
59
import { default as svelteConfig } from '@dfinity/eslint-config-oisy-wallet/svelte';
import { default as vitestConfig } from '@dfinity/eslint-config-oisy-wallet/vitest';
export default [
...vitestConfig,
...svelteConfig,
{
rules: {
// TODO: re-enable this rule when it includes `expect` statements nested in callable functions.
'vitest/expect-expect': ['off'],
// Following rule is annoying for my workflow as it is conflicting when I'm implementing iteratively
// features that share similar logic across modules.
'vitest/no-commented-out-tests': ['off'],
// The test suite was already using those before the rule was inherited.
'vitest/no-conditional-expect': ['off'],
// It does not always make sense. For example, sometimes it reports function passed as property as being
// required to be prefixed with "on".
// The linter throws error for goto('/') but, also href="/" which is really annoying.
'svelte/require-event-prefix': ['off'],
'svelte/no-navigation-without-resolve': ['off']
}
},
{
files: ['src/frontend/src/lib/stores/**/*'],
rules: {
'prefer-arrow/prefer-arrow-functions': 'off'
}
},
{
ignores: [
'**/.DS_Store',
'**/node_modules',
'build',
'.svelte-kit',
'package',
'**/.env',
'**/.env.*',
'!**/.env.example',
'**/pnpm-lock.yaml',
'**/package-lock.json',
'**/yarn.lock',
'src/declarations/**/*',
'src/frontend/src/env/tokens/tokens.sns.json',
'**/playwright-report',
'**/coverage',
'src/declarations/**/*',
'src/tests/declarations/**/*',
'target/**/*',
'tmp/**/*',
'src/frontend/src/custom-events.d.ts'
]
},
{
ignores: [
'src/sputnik/resources/index.mjs',
'src/sputnik/src/js/apis/node/javy/text_encoding/text-encoding.js'
]
}
];