-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
53 lines (52 loc) · 1.23 KB
/
eslint.config.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import finsitPlugin from "@foretagsplatsen/eslint-plugin";
export default [
...finsitPlugin.configs.main,
{ ignores: ["coverage/"] },
{
rules: {
"import/no-unused-modules": [
"error",
{
unusedExports: true,
missingExports: true,
ignoreExports: [
"eslint.config.js",
"vitest.config.js",
".eslintrc.cjs",
"index.js",
],
},
],
"import/no-anonymous-default-export": "off",
"jsdoc/check-alignment": "off",
"jsdoc/check-param-names": "off",
"jsdoc/check-tag-names": "off",
"jsdoc/check-types": "off",
"jsdoc/match-description": "off",
"jsdoc/no-undefined-types": "off",
"jsdoc/require-hyphen-before-param-description": "off",
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param": "off",
"jsdoc/require-param-description": "off",
"jsdoc/require-param-type": "off",
"jsdoc/require-returns": "off",
"jsdoc/tag-lines": "off",
"no-magic-numbers": "off",
},
},
{
files: ["test/**/*.js"],
rules: {
"import/no-unused-modules": [
"error",
{
unusedExports: true,
missingExports: true,
// List of files not exporting anything:
ignoreExports: ["**/*.test.js"],
},
],
"sonarjs/no-duplicate-string": "off",
},
},
];