@studio/eslint-config 2.2.0 β 3.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/CHANGES.md +29 -0
- package/README.md +4 -1
- package/index.js +23 -2
- package/package.json +8 -4
package/CHANGES.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
- π [`93a45e2`](https://github.com/javascript-studio/eslint-config/commit/93a45e2eb5022e6259daf0cb62905250076fb662)
|
|
6
|
+
Add `jsdoc/no-undefined-types`
|
|
7
|
+
|
|
8
|
+
_Released by [Maximilian Antoni](https://github.com/mantoni) on 2022-07-26._
|
|
9
|
+
|
|
10
|
+
## 3.0.0
|
|
11
|
+
|
|
12
|
+
- π₯ [`6e2362c`](https://github.com/javascript-studio/eslint-config/commit/6e2362c41507b6b1c46f8af026db72d6845f9d87)
|
|
13
|
+
Configure JSDoc
|
|
14
|
+
- π‘ [`c62cbcf`](https://github.com/javascript-studio/eslint-config/commit/c62cbcf20738962ca3b1ba98333988fcfae12cb3)
|
|
15
|
+
Bump minimist from 1.2.5 to 1.2.6 (dependabot[bot])
|
|
16
|
+
|
|
17
|
+
_Released by [Maximilian Antoni](https://github.com/mantoni) on 2022-07-21._
|
|
18
|
+
|
|
19
|
+
## 2.3.0
|
|
20
|
+
|
|
21
|
+
- π [`bed55ec`](https://github.com/javascript-studio/eslint-config/commit/bed55ec462bab33db91990721e69201b00c598b6)
|
|
22
|
+
Allow eslint-plugin-mocha ^10
|
|
23
|
+
- π [`361aeee`](https://github.com/javascript-studio/eslint-config/commit/361aeee06d6f2bb3e86fad0c5477a30d21ddb21c)
|
|
24
|
+
Support eslint 8
|
|
25
|
+
- π‘ [`28d99ca`](https://github.com/javascript-studio/eslint-config/commit/28d99ca887617c33f82e19370a5904a24f086608)
|
|
26
|
+
npm audit
|
|
27
|
+
- β¨ [`41e0198`](https://github.com/javascript-studio/eslint-config/commit/41e01980b22034569bac376808a20ba604f4f90b)
|
|
28
|
+
Add test script to lint the linter config
|
|
29
|
+
|
|
30
|
+
_Released by [Maximilian Antoni](https://github.com/mantoni) on 2022-01-05._
|
|
31
|
+
|
|
3
32
|
## 2.2.0
|
|
4
33
|
|
|
5
34
|
- π [`c4a37e7`](https://github.com/javascript-studio/eslint-config/commit/c4a37e7ed4743d91de1f0fb7386917fa66351b82)
|
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,14 +15,25 @@ 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',
|
|
@@ -43,6 +54,16 @@ module.exports = {
|
|
|
43
54
|
'mocha/no-return-and-callback': 2,
|
|
44
55
|
'mocha/prefer-arrow-callback': 2,
|
|
45
56
|
|
|
57
|
+
// https://github.com/gajus/eslint-plugin-jsdoc
|
|
58
|
+
'jsdoc/no-undefined-types': 'error',
|
|
59
|
+
'jsdoc/require-jsdoc': 'off',
|
|
60
|
+
'jsdoc/require-param-description': 'off',
|
|
61
|
+
'jsdoc/require-returns-description': 'off',
|
|
62
|
+
'jsdoc/require-property-description': 'off',
|
|
63
|
+
'jsdoc/check-indentation': 'warn',
|
|
64
|
+
'jsdoc/check-line-alignment': 'warn',
|
|
65
|
+
'jsdoc/require-hyphen-before-param-description': 'warn',
|
|
66
|
+
|
|
46
67
|
// https://github.com/mysticatea/eslint-plugin-node
|
|
47
68
|
'node/handle-callback-err': 2,
|
|
48
69
|
'node/no-callback-literal': 2,
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studio/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
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-
|
|
18
|
-
"eslint-plugin-
|
|
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",
|