@studio/eslint-config 2.1.0 β†’ 3.0.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.
package/CHANGES.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changes
2
2
 
3
+ ## 3.0.0
4
+
5
+ - πŸ’₯ [`6e2362c`](https://github.com/javascript-studio/eslint-config/commit/6e2362c41507b6b1c46f8af026db72d6845f9d87)
6
+ Configure JSDoc
7
+ - πŸ›‘ [`c62cbcf`](https://github.com/javascript-studio/eslint-config/commit/c62cbcf20738962ca3b1ba98333988fcfae12cb3)
8
+ Bump minimist from 1.2.5 to 1.2.6 (dependabot[bot])
9
+
10
+ _Released by [Maximilian Antoni](https://github.com/mantoni) on 2022-07-21._
11
+
12
+ ## 2.3.0
13
+
14
+ - 🍏 [`bed55ec`](https://github.com/javascript-studio/eslint-config/commit/bed55ec462bab33db91990721e69201b00c598b6)
15
+ Allow eslint-plugin-mocha ^10
16
+ - 🍏 [`361aeee`](https://github.com/javascript-studio/eslint-config/commit/361aeee06d6f2bb3e86fad0c5477a30d21ddb21c)
17
+ Support eslint 8
18
+ - πŸ›‘ [`28d99ca`](https://github.com/javascript-studio/eslint-config/commit/28d99ca887617c33f82e19370a5904a24f086608)
19
+ npm audit
20
+ - ✨ [`41e0198`](https://github.com/javascript-studio/eslint-config/commit/41e01980b22034569bac376808a20ba604f4f90b)
21
+ Add test script to lint the linter config
22
+
23
+ _Released by [Maximilian Antoni](https://github.com/mantoni) on 2022-01-05._
24
+
25
+ ## 2.2.0
26
+
27
+ - 🍏 [`c4a37e7`](https://github.com/javascript-studio/eslint-config/commit/c4a37e7ed4743d91de1f0fb7386917fa66351b82)
28
+ Declare `**/*.integration.js` pattern as mocha env
29
+
30
+ _Released by [Maximilian Antoni](https://github.com/mantoni) on 2021-07-27._
31
+
3
32
  ## 2.1.0
4
33
 
5
34
  - 🍏 [`9b034bf`](https://github.com/javascript-studio/eslint-config/commit/9b034bf159367e054c4b44e9987e9fd88b961deb)
package/README.md CHANGED
@@ -5,7 +5,7 @@ The [sharable eslint config][docs] for all JavaScript Studio projects.
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- $ npm install @studio/eslint-config eslint eslint-plugin-mocha eslint-plugin-node --save-dev
8
+ $ npm install @studio/eslint-config eslint eslint-plugin-mocha eslint-plugin-jsdoc eslint-plugin-node --save-dev
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -20,6 +20,8 @@ Make sure this is in your `package.json`:
20
20
  }
21
21
  ```
22
22
 
23
+ This configuration works great with [`@studio/tsconfig`][tsconfig].
24
+
23
25
  __Pro tipβ„’:__ Check out [eslint_d][] for faster editor integration.
24
26
 
25
27
  ## License
@@ -29,4 +31,5 @@ MIT
29
31
  <div align="center">Made with ❀️ on 🌍</div>
30
32
 
31
33
  [docs]: http://eslint.org/docs/developer-guide/shareable-configs
34
+ [tsconfig]: https://github.com/javascript-studio/tsconfig
32
35
  [eslint_d]: https://www.npmjs.com/package/eslint_d
package/index.js CHANGED
@@ -15,18 +15,30 @@ module.exports = {
15
15
  },
16
16
 
17
17
  plugins: [
18
- 'mocha'
18
+ 'mocha',
19
+ 'jsdoc'
19
20
  ],
20
21
 
21
22
  extends: [
22
23
  'eslint:recommended',
23
- 'plugin:node/recommended'
24
+ 'plugin:node/recommended',
25
+ 'plugin:jsdoc/recommended'
24
26
  ],
25
27
 
28
+ settings: {
29
+ jsdoc: {
30
+ mode: 'typescript',
31
+ preferredTypes: {
32
+ object: 'Object'
33
+ }
34
+ }
35
+ },
36
+
26
37
  overrides: [{
27
38
  files: [
28
39
  '**/*.test.js',
29
- '**/*-test.js'
40
+ '**/*-test.js',
41
+ '**/*.integration.js'
30
42
  ],
31
43
  env: {
32
44
  mocha: true
@@ -42,6 +54,15 @@ module.exports = {
42
54
  'mocha/no-return-and-callback': 2,
43
55
  'mocha/prefer-arrow-callback': 2,
44
56
 
57
+ // https://github.com/gajus/eslint-plugin-jsdoc
58
+ 'jsdoc/require-jsdoc': 'off',
59
+ 'jsdoc/require-param-description': 'off',
60
+ 'jsdoc/require-returns-description': 'off',
61
+ 'jsdoc/require-property-description': 'off',
62
+ 'jsdoc/check-indentation': 'warn',
63
+ 'jsdoc/check-line-alignment': 'warn',
64
+ 'jsdoc/require-hyphen-before-param-description': 'warn',
65
+
45
66
  // https://github.com/mysticatea/eslint-plugin-node
46
67
  'node/handle-callback-err': 2,
47
68
  'node/no-callback-literal': 2,
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@studio/eslint-config",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "The JavaScript Studio sharable eslint config",
5
5
  "main": "index.js",
6
6
  "author": "Maximilian Antoni <max@javascript.studio>",
7
7
  "homepage": "https://github.com/javascript-studio/eslint-config",
8
8
  "scripts": {
9
+ "test": "eslint --config index.js index.js",
10
+ "preversion": "npm test",
9
11
  "version": "changes --commits --footer",
10
12
  "postversion": "git push --follow-tags && npm publish"
11
13
  },
@@ -13,9 +15,11 @@
13
15
  "@studio/changes": "^2.2.0"
14
16
  },
15
17
  "peerDependencies": {
16
- "eslint": "^7",
17
- "eslint-plugin-mocha": "^8 || ^9",
18
- "eslint-plugin-node": "^11"
18
+ "eslint": "^7 || ^8",
19
+ "eslint-plugin-jsdoc": "^39",
20
+ "eslint-plugin-mocha": "^8 || ^9 || ^10",
21
+ "eslint-plugin-node": "^11",
22
+ "jsdoc": "^3"
19
23
  },
20
24
  "repository": {
21
25
  "type": "git",