@eslint-recommended/eslint-config 6.0.1 → 7.0.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 +16 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -18,21 +18,31 @@ Recommended ESLint Shareable Config for JavaScript
|
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
npm:
|
|
22
22
|
|
|
23
23
|
```sh
|
|
24
24
|
npm i -D @eslint-recommended/eslint-config
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
Yarn:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
yarn add -D @eslint-recommended/eslint-config
|
|
31
|
+
```
|
|
32
|
+
|
|
27
33
|
## Usage
|
|
28
34
|
|
|
29
35
|
Add `@eslint-recommended` to `extends` of your ESLint config.
|
|
30
36
|
|
|
31
|
-
```
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
```js
|
|
38
|
+
module.exports = {
|
|
39
|
+
extends: [
|
|
40
|
+
'@eslint-recommended'
|
|
41
|
+
// add other rulesets here if needed
|
|
42
|
+
],
|
|
43
|
+
rules: {
|
|
44
|
+
// override/add rules settings here if needed
|
|
45
|
+
}
|
|
36
46
|
}
|
|
37
47
|
```
|
|
38
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-recommended/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Recommended ESLint Shareable Config for JavaScript",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint '**/*.js'",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"eslint-plugin-eslint-comments": "^3.0.0",
|
|
19
19
|
"eslint-plugin-jsdoc": "^40.0.0",
|
|
20
20
|
"eslint-plugin-sonarjs": "^0.18.0",
|
|
21
|
-
"eslint-plugin-unicorn": "^
|
|
21
|
+
"eslint-plugin-unicorn": "^46.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"eslint": "8.
|
|
24
|
+
"eslint": "8.37.0",
|
|
25
25
|
"eslint-config-standard": "17.0.0",
|
|
26
26
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
27
|
-
"eslint-plugin-jsdoc": "40.
|
|
27
|
+
"eslint-plugin-jsdoc": "40.1.1",
|
|
28
28
|
"eslint-plugin-sonarjs": "0.18.0",
|
|
29
|
-
"eslint-plugin-unicorn": "
|
|
29
|
+
"eslint-plugin-unicorn": "46.0.0"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|