-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy patheslint.config.mjs
More file actions
52 lines (47 loc) · 1.44 KB
/
eslint.config.mjs
File metadata and controls
52 lines (47 loc) · 1.44 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
import { default as config } from "@dfinity/eslint-config-oisy-wallet";
import { default as vitestConfig } from "@dfinity/eslint-config-oisy-wallet/vitest";
export default [
...config,
...vitestConfig,
{
rules: {
// This rule is disabled because the candid declarations folder is referenced by the canisters and indexes
// using relative parent paths. Resolving this would require either restructuring the folder
// (which impacts the build pipeline) or setting up path aliases (which requires configuration).
// Since neither is a current priority, the rule remains off.
"import/no-relative-parent-imports": "off",
// We use no-restricted-imports in apps to prevent imports from the legacy @dfinity/... libraries
// which are developed in this repo.
"no-restricted-imports": "off",
},
},
{
ignores: [
"**/dist/",
"**/candid/",
"*.did.js",
"*_pb.d.ts",
"scripts",
"**/vitest.config.ts",
"**/esbuild.mjs",
"packages/nns-proto/proto",
"eslint-local-rules.cjs",
],
},
{
ignores: [
"packages/**/*.js",
"packages/**/*.mjs",
"packages/**/*.d.ts",
"packages/index.js",
"packages/index.mjs",
"packages/index.d.ts",
"!packages/*.js",
"!packages/*.mjs",
"!packages/*.d.ts",
"!packages/**/src/**/*.js",
"!packages/**/src/**/*.mjs",
"!packages/**/src/**/*.d.ts",
],
},
];