@r2d2bzh/eslint-config 2.0.1 → 2.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.
Files changed (3) hide show
  1. package/README.adoc +1 -1
  2. package/index.js +7 -2
  3. package/package.json +1 -1
package/README.adoc CHANGED
@@ -24,7 +24,7 @@ NOTE: Replace `<VERSION>` with a git tag of the https://github.com/r2d2bzh/eslin
24
24
 
25
25
  This will add the package `eslint-config` in your repo.
26
26
 
27
- In order to instruct eslint to apply these rules, you need to create an `eslintrc.js` file close to the `package.json` file:
27
+ In order to instruct eslint to apply these rules, you need to create an `eslint.config.js` file close to the `package.json` file:
28
28
 
29
29
  .eslintrc.js
30
30
  [source,js]
package/index.js CHANGED
@@ -13,6 +13,11 @@ export default defineConfig([
13
13
  files: ['**/*.js'],
14
14
  // tag::rules[]
15
15
  rules: {
16
+ ...eslintPluginAva.configs.recommended.rules,
17
+ ...eslintPluginImport.configs.recommended.rules,
18
+ ...eslintPluginPromise.configs.recommended.rules,
19
+ ...eslintPluginSecurity.configs.recommended.rules,
20
+ ...eslintPluginUnicorn.configs.recommended.rules,
16
21
  // https://prettier.io/docs/en/integrating-with-linters.html#use-eslint-to-run-prettier
17
22
  // https://github.com/prettier/eslint-plugin-prettier#options
18
23
  'prettier/prettier': [
@@ -42,7 +47,7 @@ export default defineConfig([
42
47
  // https://eslint.org/docs/rules/linebreak-style
43
48
  'linebreak-style': ['error', 'unix'],
44
49
  // https://eslint.org/docs/rules/complexity
45
- complexity: ['error', { max: 5 }],
50
+ complexity: ['error', { max: 20 }],
46
51
  // https://eslint.org/docs/rules/max-statements
47
52
  'max-statements': ['error', { max: 15 }],
48
53
  // https://eslint.org/docs/rules/max-statements-per-line
@@ -50,7 +55,7 @@ export default defineConfig([
50
55
  // https://eslint.org/docs/rules/max-nested-callbacks
51
56
  'max-nested-callbacks': ['error', { max: 3 }],
52
57
  // https://eslint.org/docs/rules/max-depth
53
- 'max-depth': ['error', { max: 2 }],
58
+ 'max-depth': ['error', { max: 4 }],
54
59
  // https://eslint.org/docs/rules/max-params
55
60
  'max-params': ['error', { max: 3 }],
56
61
  // https://eslint.org/docs/rules/no-nested-ternary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2d2bzh/eslint-config",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "r2d2bzh eslint configuration",
5
5
  "main": "index.js",
6
6
  "type": "module",