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 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
- ### Default config
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
- The default configuration includes standards and stylistic rules for JS.
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
- ### Extensions
30
-
31
- Optional extensions can be added to add rules for `import`, `react` and `jsdoc`:
35
+ **CJS**
32
36
 
33
37
  ```js
34
- import arklintConfig from "eslint-config-arklint";
35
- import { importConfig, reactConfig, jsdocConfig } from "eslint-config-arklint/extensions";
38
+ const arklintConfig = require("eslint-config-arklint");
39
+ const { importConfig, reactConfig, jsdocConfig } = require("eslint-config-arklint/extensions");
36
40
 
37
- export default [
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.0.1",
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.25.8",
36
- "@babel/eslint-parser": "^7.25.8",
37
- "@babel/preset-env": "^7.25.8",
38
- "@babel/preset-react": "^7.25.7",
39
- "@eslint/js": "^9.12.0",
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.2",
43
- "eslint-plugin-jsx-a11y": "^6.10.0",
44
- "eslint-plugin-react": "^7.37.1",
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": "^0.6.0",
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.7",
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.12.0",
53
+ "eslint": "^9.13.0",
54
54
  "husky": "^9.1.6"
55
55
  },
56
56
  "peerDependencies": {