@keeex/eslint-config 2.5.6 → 2.6.1
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/package.json +1 -120
- package/src/bin/kxeslint-setup.js +1 -1
- package/src/config/mocha.js +1 -0
- package/src/config/typescript.js +1 -2
- package/src/dependencies.js +1 -1
package/package.json
CHANGED
|
@@ -1,120 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "KeeeX SAS",
|
|
3
|
-
"bin": {
|
|
4
|
-
"kxeslint-setup": "src/bin/kxeslint-setup.js",
|
|
5
|
-
"kxeslint-dump": "src/bin/kxeslint-dump.js"
|
|
6
|
-
},
|
|
7
|
-
"contributors": [
|
|
8
|
-
{
|
|
9
|
-
"email": "gabriel@keeex.net",
|
|
10
|
-
"name": "Gabriel Paul \"Cley Faye\" Risterucci"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"prompts": "^2.4.2",
|
|
15
|
-
"semver": "^7.7.2"
|
|
16
|
-
},
|
|
17
|
-
"description": "Common eslint configuration",
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@eslint/compat": "^1.2.9",
|
|
20
|
-
"@eslint/js": "^9.12.0",
|
|
21
|
-
"eslint": "^9.27.0",
|
|
22
|
-
"eslint-import-resolver-typescript": "^4.3.5",
|
|
23
|
-
"eslint-import-resolver-webpack": "^0.13.10",
|
|
24
|
-
"eslint-plugin-import-x": "^4.12.2",
|
|
25
|
-
"eslint-plugin-mocha": "^10.5.0",
|
|
26
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
27
|
-
"eslint-plugin-react": "^7.37.5",
|
|
28
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
29
|
-
"eslint-plugin-tsdoc": "^0.4.0",
|
|
30
|
-
"globals": "^16.1.0",
|
|
31
|
-
"prettier": "^3.5.3",
|
|
32
|
-
"typescript-eslint": "^8.32.1"
|
|
33
|
-
},
|
|
34
|
-
"exports": {
|
|
35
|
-
".": "./src/index.js",
|
|
36
|
-
"./prettier.config.js": "./prettier.config.js"
|
|
37
|
-
},
|
|
38
|
-
"files": [
|
|
39
|
-
"prettier.config.js",
|
|
40
|
-
"src"
|
|
41
|
-
],
|
|
42
|
-
"license": "MIT",
|
|
43
|
-
"name": "@keeex/eslint-config",
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"@eslint/compat": "^1.2.0",
|
|
46
|
-
"@eslint/js": "9.x",
|
|
47
|
-
"eslint": "9.x",
|
|
48
|
-
"eslint-import-resolver-typescript": "3.X || 4.x",
|
|
49
|
-
"eslint-import-resolver-webpack": "0.x",
|
|
50
|
-
"eslint-plugin-import-x": "4.x",
|
|
51
|
-
"eslint-plugin-mocha": "10.x || >11.0.0",
|
|
52
|
-
"eslint-plugin-promise": "7.x",
|
|
53
|
-
"eslint-plugin-react": "7.x",
|
|
54
|
-
"eslint-plugin-react-hooks": "5.x",
|
|
55
|
-
"eslint-plugin-tsdoc": "0.x",
|
|
56
|
-
"globals": "15.x || 16.x",
|
|
57
|
-
"prettier": "3.x",
|
|
58
|
-
"typescript-eslint": "8.x"
|
|
59
|
-
},
|
|
60
|
-
"peerDependenciesMeta": {
|
|
61
|
-
"@eslint/compat": {
|
|
62
|
-
"optional": true
|
|
63
|
-
},
|
|
64
|
-
"eslint": {
|
|
65
|
-
"optional": false
|
|
66
|
-
},
|
|
67
|
-
"eslint-plugin-deprecation": {
|
|
68
|
-
"optional": true
|
|
69
|
-
},
|
|
70
|
-
"eslint-import-resolver-typescript": {
|
|
71
|
-
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"eslint-import-resolver-webpack": {
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
|
-
"eslint-plugin-import-x": {
|
|
77
|
-
"optional": true
|
|
78
|
-
},
|
|
79
|
-
"eslint-plugin-mocha": {
|
|
80
|
-
"optional": true
|
|
81
|
-
},
|
|
82
|
-
"eslint-plugin-promise": {
|
|
83
|
-
"optional": true
|
|
84
|
-
},
|
|
85
|
-
"eslint-plugin-react": {
|
|
86
|
-
"optional": true
|
|
87
|
-
},
|
|
88
|
-
"eslint-plugin-react-hooks": {
|
|
89
|
-
"optional": true
|
|
90
|
-
},
|
|
91
|
-
"eslint-plugin-tsdoc": {
|
|
92
|
-
"optional": true
|
|
93
|
-
},
|
|
94
|
-
"globals": {
|
|
95
|
-
"optional": true
|
|
96
|
-
},
|
|
97
|
-
"prettier": {
|
|
98
|
-
"optional": true
|
|
99
|
-
},
|
|
100
|
-
"typescript-eslint": {
|
|
101
|
-
"optional": true
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"publishConfig": {
|
|
105
|
-
"access": "public"
|
|
106
|
-
},
|
|
107
|
-
"repository": {
|
|
108
|
-
"type": "git",
|
|
109
|
-
"url": "https://github.com/KeeeX/eslint-config.git"
|
|
110
|
-
},
|
|
111
|
-
"scripts": {
|
|
112
|
-
"bin:dump": "node src/bin/kxeslint-dump.js",
|
|
113
|
-
"bin:setup": "node src/bin/kxeslint-setup.js",
|
|
114
|
-
"check": "npx eslint --cache --cache-strategy content .",
|
|
115
|
-
"prepublishOnly": "publish_check.sh",
|
|
116
|
-
"test": "echo No test for this project"
|
|
117
|
-
},
|
|
118
|
-
"type": "module",
|
|
119
|
-
"version": "2.5.6"
|
|
120
|
-
}
|
|
1
|
+
{"author":"KeeeX SAS","bin":{"kxeslint-setup":"src/bin/kxeslint-setup.js","kxeslint-dump":"src/bin/kxeslint-dump.js"},"contributors":[{"email":"gabriel@keeex.net","name":"Gabriel Paul \"Cley Faye\" Risterucci"}],"dependencies":{"prompts":"^2.4.2","semver":"^7.7.3"},"description":"Common eslint configuration","exports":{".":"./src/index.js","./prettier.config.js":"./prettier.config.js"},"files":["prettier.config.js","src"],"license":"MIT","name":"@keeex/eslint-config","peerDependencies":{"@eslint/compat":"^1.2.0","@eslint/js":"9.x","@typescript-eslint/parser":"8.x","eslint":"9.x","eslint-import-resolver-typescript":"3.X || 4.x","eslint-import-resolver-webpack":"0.x","eslint-plugin-import-x":"4.x","eslint-plugin-mocha":"10.x || >11.0.0","eslint-plugin-promise":"7.x","eslint-plugin-react":"7.x","eslint-plugin-react-hooks":"^7.0.1","eslint-plugin-tsdoc":"0.x","globals":"15.x || 16.x","prettier":"3.x","typescript-eslint":"8.x"},"peerDependenciesMeta":{"@eslint/compat":{"optional":true},"eslint":{"optional":false},"eslint-plugin-deprecation":{"optional":true},"eslint-import-resolver-typescript":{"optional":true},"eslint-import-resolver-webpack":{"optional":true},"eslint-plugin-import-x":{"optional":true},"eslint-plugin-mocha":{"optional":true},"eslint-plugin-promise":{"optional":true},"eslint-plugin-react":{"optional":true},"eslint-plugin-react-hooks":{"optional":true},"eslint-plugin-tsdoc":{"optional":true},"globals":{"optional":true},"prettier":{"optional":true},"typescript-eslint":{"optional":true}},"publishConfig":{"access":"public"},"scripts":{},"type":"module","version":"2.6.1","homepage":"https://keeex.me/oss"}
|
package/src/config/mocha.js
CHANGED
|
@@ -24,6 +24,7 @@ export const apply = (configResult, eslintConfig) => {
|
|
|
24
24
|
"sort-keys": "off",
|
|
25
25
|
});
|
|
26
26
|
sections.configureRules(override, "mocha", {
|
|
27
|
+
"consistent-spacing-between-blocks": "off",
|
|
27
28
|
"no-exports": "off",
|
|
28
29
|
"no-setup-in-describe": "off",
|
|
29
30
|
"no-top-level-hooks": "off",
|
package/src/config/typescript.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import tsdocPlugin from "eslint-plugin-tsdoc";
|
|
2
|
-
// Uses exports
|
|
3
|
-
// eslint-disable-next-line import-x/no-unresolved
|
|
4
2
|
import tseslint from "typescript-eslint";
|
|
5
3
|
|
|
6
4
|
import * as sections from "../sections.js";
|
|
@@ -39,6 +37,7 @@ export const apply = (configResult, eslintConfig) => {
|
|
|
39
37
|
});
|
|
40
38
|
sections.configureRules(override, "@typescript-eslint", {
|
|
41
39
|
"array-type": ["error", {default: "generic", readonly: "generic"}],
|
|
40
|
+
"consistent-type-imports": ["error", {fixStyle: "inline-type-imports"}],
|
|
42
41
|
"explicit-function-return-type": "warn",
|
|
43
42
|
"explicit-member-accessibility": "error",
|
|
44
43
|
"explicit-module-boundary-types": "error",
|
package/src/dependencies.js
CHANGED
|
@@ -167,7 +167,7 @@ export const configToDependencies = (eslintConfig) => {
|
|
|
167
167
|
addDependency("eslint-plugin-import-x", "4.x");
|
|
168
168
|
if (eslintConfig.typescript) addDependency("eslint-import-resolver-typescript", "4.x");
|
|
169
169
|
}
|
|
170
|
-
if (eslintConfig.mocha) addDependency("eslint-plugin-mocha", "
|
|
170
|
+
if (eslintConfig.mocha) addDependency("eslint-plugin-mocha", "11.x");
|
|
171
171
|
if (!eslintConfig.noBase) {
|
|
172
172
|
addDependency("@eslint/js", "9.x");
|
|
173
173
|
addDependency("eslint-plugin-promise", "7.x");
|