@eslint-recommended/eslint-config 26.0.1 → 26.1.0

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.md +31 -6
  2. package/index.js +2 -1
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -15,6 +15,7 @@ Recommended ESLint Shareable Config for JavaScript
15
15
  - [eslint-plugin-sonarjs](https://www.npmjs.com/package/eslint-plugin-sonarjs)
16
16
  - [@eslint-community/eslint-plugin-eslint-comments](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments)
17
17
  - [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc)
18
+ - [eslint-plugin-regexp](https://www.npmjs.com/package/eslint-plugin-regexp)
18
19
 
19
20
  ## Requirements
20
21
 
@@ -35,19 +36,43 @@ Yarn:
35
36
  yarn add -D @eslint-recommended/eslint-config
36
37
  ```
37
38
 
39
+ pnpm:
40
+
41
+ ```sh
42
+ pnpm add -D @eslint-recommended/eslint-config
43
+ ```
44
+
38
45
  ## Usage
39
46
 
40
47
  Add `@eslint-recommended` to the `extends` section of your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated).
41
48
 
42
- ```js
49
+ JavaScript:
50
+
51
+ ```javascript
43
52
  module.exports = {
44
53
  extends: [
45
54
  '@eslint-recommended'
46
55
  // add other rulesets here if needed
47
- ],
48
- rules: {
49
- // override/add rules settings here if needed
50
- }
56
+ ]
57
+ }
58
+ ```
59
+
60
+ YAML:
61
+
62
+ ```yaml
63
+ extends:
64
+ - @eslint-recommended
65
+ # add other rulesets here if needed
66
+ ```
67
+
68
+ JSON:
69
+
70
+ ```jsonc
71
+ {
72
+ "extends": [
73
+ "@eslint-recommended"
74
+ // add other rulesets here if needed
75
+ ]
51
76
  }
52
77
  ```
53
78
 
@@ -69,6 +94,6 @@ HTML:
69
94
  <a href="https://github.com/eslint-recommended"><img src="https://img.shields.io/badge/eslint-recommended-%234B32C3" alt="ESLint Recommended"></a>
70
95
  ```
71
96
 
72
- ## Related packages
97
+ ## Related Packages
73
98
 
74
99
  - [@eslint-recommended/eslint-config-typescript](https://www.npmjs.com/package/@eslint-recommended/eslint-config-typescript)
package/index.js CHANGED
@@ -12,7 +12,8 @@ const config = {
12
12
  'plugin:unicorn/recommended',
13
13
  'plugin:sonarjs/recommended',
14
14
  'plugin:@eslint-community/eslint-comments/recommended',
15
- 'plugin:jsdoc/recommended'
15
+ 'plugin:jsdoc/recommended',
16
+ 'plugin:regexp/recommended'
16
17
  ]
17
18
  }
18
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-recommended/eslint-config",
3
- "version": "26.0.1",
3
+ "version": "26.1.0",
4
4
  "description": "Recommended ESLint Shareable Config for JavaScript",
5
5
  "scripts": {
6
6
  "lint": "eslint '**/*.{js,mjs,cjs}'",
@@ -17,6 +17,7 @@
17
17
  "eslint": "^8.23.1",
18
18
  "eslint-config-standard": "^17.0.0",
19
19
  "eslint-plugin-jsdoc": "^48.0.0",
20
+ "eslint-plugin-regexp": "^2.6.0",
20
21
  "eslint-plugin-sonarjs": "^0.25.0",
21
22
  "eslint-plugin-unicorn": "^53.0.0"
22
23
  },
@@ -24,7 +25,8 @@
24
25
  "@eslint-community/eslint-plugin-eslint-comments": "4.3.0",
25
26
  "eslint": "8.57.0",
26
27
  "eslint-config-standard": "17.1.0",
27
- "eslint-plugin-jsdoc": "48.2.5",
28
+ "eslint-plugin-jsdoc": "48.2.7",
29
+ "eslint-plugin-regexp": "2.6.0",
28
30
  "eslint-plugin-sonarjs": "0.25.1",
29
31
  "eslint-plugin-unicorn": "53.0.0"
30
32
  },