@dfinity/eslint-config-oisy-wallet 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configs/eslint.rules.mjs +1 -11
- package/package.json +1 -1
- package/vitest.mjs +11 -1
package/configs/eslint.rules.mjs
CHANGED
|
@@ -29,17 +29,7 @@ export const eslintRules = [
|
|
|
29
29
|
},
|
|
30
30
|
|
|
31
31
|
rules: {
|
|
32
|
-
"@typescript-eslint/consistent-type-imports":
|
|
33
|
-
"error",
|
|
34
|
-
{
|
|
35
|
-
fixStyle: "separate-type-imports",
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
|
|
39
|
-
// TODO: Disabled for now to allow the migration of ESLint v9 in OISY, as the rule is not yet enforced.
|
|
40
|
-
// It should also be introduced as an optional rule.
|
|
41
|
-
// "@typescript-eslint/consistent-type-imports": "error",
|
|
42
|
-
|
|
32
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
43
33
|
"@typescript-eslint/no-inferrable-types": "error",
|
|
44
34
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
45
35
|
|
package/package.json
CHANGED
package/vitest.mjs
CHANGED
|
@@ -4,6 +4,16 @@ import { eslintCoreConfig } from "./configs/eslint.core.mjs";
|
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...eslintCoreConfig,
|
|
7
|
-
|
|
7
|
+
{
|
|
8
|
+
plugins: { vitest },
|
|
9
|
+
rules: {
|
|
10
|
+
...vitest.configs.recommended.rules,
|
|
11
|
+
|
|
12
|
+
"vitest/no-duplicate-hooks": ["error"],
|
|
13
|
+
"vitest/padding-around-all": ["error"],
|
|
14
|
+
"vitest/prefer-hooks-in-order": ["error"],
|
|
15
|
+
"vitest/prefer-hooks-on-top": ["error"],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
8
18
|
languageOptions(),
|
|
9
19
|
];
|