@eslint-recommended/eslint-config 7.0.0 → 7.0.2

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 +7 -1
  2. package/index.js +12 -1
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -18,12 +18,18 @@ Recommended ESLint Shareable Config for JavaScript
18
18
 
19
19
  ## Installation
20
20
 
21
- Install `@eslint-recommended/eslint-config`.
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.
package/index.js CHANGED
@@ -1,4 +1,13 @@
1
- module.exports = {
1
+ // @ts-check
2
+
3
+ // eslint-disable-next-line jsdoc/valid-types -- https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
4
+ /** @typedef {import('eslint').ESLint.ConfigData} ConfigData */
5
+
6
+ /**
7
+ * @type {ConfigData}
8
+ * @see https://eslint.org/docs/latest/use/configure/configuration-files
9
+ */
10
+ const config = {
2
11
  extends: [
3
12
  'standard',
4
13
  'plugin:unicorn/recommended',
@@ -7,3 +16,5 @@ module.exports = {
7
16
  'plugin:jsdoc/recommended'
8
17
  ]
9
18
  }
19
+
20
+ module.exports = config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-recommended/eslint-config",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "Recommended ESLint Shareable Config for JavaScript",
5
5
  "scripts": {
6
6
  "lint": "eslint '**/*.js'",
@@ -17,15 +17,15 @@
17
17
  "eslint-config-standard": "^17.0.0",
18
18
  "eslint-plugin-eslint-comments": "^3.0.0",
19
19
  "eslint-plugin-jsdoc": "^40.0.0",
20
- "eslint-plugin-sonarjs": "^0.18.0",
20
+ "eslint-plugin-sonarjs": "^0.19.0",
21
21
  "eslint-plugin-unicorn": "^46.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "eslint": "8.36.0",
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.0.3",
28
- "eslint-plugin-sonarjs": "0.18.0",
27
+ "eslint-plugin-jsdoc": "40.1.1",
28
+ "eslint-plugin-sonarjs": "0.19.0",
29
29
  "eslint-plugin-unicorn": "46.0.0"
30
30
  },
31
31
  "repository": {