eslint-config-arklint 3.0.1 → 3.1.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/README.md +13 -9
- package/cjs/index.cjs +3 -1
- package/index.mjs +3 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -14,27 +14,31 @@ yarn add eslint eslint-config-arklint -D
|
|
|
14
14
|
> [!WARNING]
|
|
15
15
|
> Only **flat config** is supported, either CJS or ESM.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
The default configuration includes standards and stylistic rules for JS. Optional extensions can be added to add rules for `import`, `react` and `jsdoc`:
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
**ESM**
|
|
20
20
|
|
|
21
21
|
```js
|
|
22
22
|
import arklintConfig from "eslint-config-arklint";
|
|
23
|
+
import extensions from "eslint-config-arklint/extensions";
|
|
24
|
+
|
|
25
|
+
const { importConfig, reactConfig, jsdocConfig } = extensions;
|
|
23
26
|
|
|
24
27
|
export default [
|
|
25
|
-
...arklintConfig
|
|
28
|
+
...arklintConfig,
|
|
29
|
+
...reactConfig,
|
|
30
|
+
...importConfig,
|
|
31
|
+
...jsdocConfig
|
|
26
32
|
];
|
|
27
33
|
```
|
|
28
34
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Optional extensions can be added to add rules for `import`, `react` and `jsdoc`:
|
|
35
|
+
**CJS**
|
|
32
36
|
|
|
33
37
|
```js
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
const arklintConfig = require("eslint-config-arklint");
|
|
39
|
+
const { importConfig, reactConfig, jsdocConfig } = require("eslint-config-arklint/extensions");
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
module.exports = [
|
|
38
42
|
...arklintConfig,
|
|
39
43
|
...reactConfig,
|
|
40
44
|
...importConfig,
|
package/cjs/index.cjs
CHANGED
|
@@ -100,7 +100,9 @@ module.exports = [{
|
|
|
100
100
|
allowTaggedTemplates: true
|
|
101
101
|
}],
|
|
102
102
|
"no-unused-labels": "warn",
|
|
103
|
-
"no-unused-vars": "warn",
|
|
103
|
+
"no-unused-vars": ["warn", {
|
|
104
|
+
caughtErrorsIgnorePattern: "^_"
|
|
105
|
+
}],
|
|
104
106
|
"no-use-before-define": ["warn", {
|
|
105
107
|
functions: false,
|
|
106
108
|
classes: false,
|
package/index.mjs
CHANGED
|
@@ -160,7 +160,9 @@ export default [
|
|
|
160
160
|
allowTaggedTemplates: true
|
|
161
161
|
}],
|
|
162
162
|
"no-unused-labels": "warn",
|
|
163
|
-
"no-unused-vars": "warn",
|
|
163
|
+
"no-unused-vars": ["warn", {
|
|
164
|
+
caughtErrorsIgnorePattern: "^_"
|
|
165
|
+
}],
|
|
164
166
|
"no-use-before-define": ["warn", {
|
|
165
167
|
functions: false,
|
|
166
168
|
classes: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-arklint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"author": "Arkellys",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"prepare": "husky"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/core": "^7.
|
|
36
|
-
"@babel/eslint-parser": "^7.25.
|
|
37
|
-
"@babel/preset-env": "^7.
|
|
38
|
-
"@babel/preset-react": "^7.25.
|
|
39
|
-
"@eslint/js": "^9.
|
|
35
|
+
"@babel/core": "^7.26.0",
|
|
36
|
+
"@babel/eslint-parser": "^7.25.9",
|
|
37
|
+
"@babel/preset-env": "^7.26.0",
|
|
38
|
+
"@babel/preset-react": "^7.25.9",
|
|
39
|
+
"@eslint/js": "^9.13.0",
|
|
40
40
|
"@stylistic/eslint-plugin-js": "^2.9.0",
|
|
41
41
|
"eslint-plugin-import": "^2.31.0",
|
|
42
|
-
"eslint-plugin-jsdoc": "^50.3
|
|
43
|
-
"eslint-plugin-jsx-a11y": "^6.10.
|
|
44
|
-
"eslint-plugin-react": "^7.37.
|
|
42
|
+
"eslint-plugin-jsdoc": "^50.4.3",
|
|
43
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
44
|
+
"eslint-plugin-react": "^7.37.2",
|
|
45
45
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
46
|
-
"eslint-plugin-sort-imports-es6-autofix": "
|
|
46
|
+
"eslint-plugin-sort-imports-es6-autofix": "patch:eslint-plugin-sort-imports-es6-autofix@npm%3A0.6.0#~/.yarn/patches/eslint-plugin-sort-imports-es6-autofix-npm-0.6.0-26f56e83fb.patch",
|
|
47
47
|
"globals": "^15.11.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@babel/cli": "^7.25.
|
|
50
|
+
"@babel/cli": "^7.25.9",
|
|
51
51
|
"babel-plugin-transform-esm-to-cjs": "^0.0.0",
|
|
52
52
|
"babel-plugin-transform-import-extension": "^1.0.3",
|
|
53
|
-
"eslint": "^9.
|
|
53
|
+
"eslint": "^9.13.0",
|
|
54
54
|
"husky": "^9.1.6"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|