@nfq/eslint-config 2.1.1 → 2.1.4
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/CHANGELOG.md +21 -0
- package/package.json +1 -1
- package/rules/jsdoc.js +20 -4
- package/rules/react.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.1.4](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.3...v2.1.4) (2022-05-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **jsdoc:** don't check destructuring ([#16](https://github.com/nfqde/eslint-config-nfq/issues/16)) ([e49653f](https://github.com/nfqde/eslint-config-nfq/commit/e49653fc802894655d76d7e28f3061d9d27d651c))
|
|
11
|
+
|
|
12
|
+
### [2.1.3](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.2...v2.1.3) (2022-05-27)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **require-jsdoc:** Fix declaration for require ([#15](https://github.com/nfqde/eslint-config-nfq/issues/15)) ([144267b](https://github.com/nfqde/eslint-config-nfq/commit/144267b8a8cc40a561d5c0d239a7b9f0d0c83268))
|
|
18
|
+
|
|
19
|
+
### [2.1.2](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.1...v2.1.2) (2022-05-27)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **require-jsdoc:** changes in the require-jsdoc rule ([#14](https://github.com/nfqde/eslint-config-nfq/issues/14)) ([6c1b035](https://github.com/nfqde/eslint-config-nfq/commit/6c1b035c6b8380e680112c0935175919caacd4ff))
|
|
25
|
+
|
|
5
26
|
### [2.1.1](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.0...v2.1.1) (2022-05-24)
|
|
6
27
|
|
|
7
28
|
|
package/package.json
CHANGED
package/rules/jsdoc.js
CHANGED
|
@@ -13,7 +13,8 @@ module.exports = {
|
|
|
13
13
|
'jsdoc/check-param-names': [
|
|
14
14
|
'error',
|
|
15
15
|
{
|
|
16
|
-
checkDestructured:
|
|
16
|
+
checkDestructured: false,
|
|
17
|
+
checkRestProperty: false,
|
|
17
18
|
enableFixer: true
|
|
18
19
|
}
|
|
19
20
|
], // Reports invalid parameter names in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#check-param-names
|
|
@@ -56,16 +57,31 @@ module.exports = {
|
|
|
56
57
|
'jsdoc/require-example': 'off', // Reports missing example in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-example
|
|
57
58
|
'jsdoc/require-file-overview': 'off', // Reports missing file overview in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-file-overview
|
|
58
59
|
'jsdoc/require-hyphen-before-param-description': ['error', 'never'], // Reports missing hyphen before param description in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-hyphen-before-param-description
|
|
59
|
-
'jsdoc/require-jsdoc':
|
|
60
|
+
'jsdoc/require-jsdoc': [
|
|
61
|
+
'error',
|
|
62
|
+
{
|
|
63
|
+
contexts: ['VariableDeclaration > VariableDeclarator > ArrowFunctionExpression'],
|
|
64
|
+
publicOnly: false,
|
|
65
|
+
require: {
|
|
66
|
+
ArrowFunctionExpression: false,
|
|
67
|
+
ClassDeclaration: true,
|
|
68
|
+
ClassExpression: true,
|
|
69
|
+
FunctionDeclaration: true,
|
|
70
|
+
FunctionExpression: true,
|
|
71
|
+
MethodDefinition: true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
], // Reports missing JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-jsdoc
|
|
60
75
|
'jsdoc/require-param': [
|
|
61
76
|
'error',
|
|
62
77
|
{
|
|
63
78
|
checkDestructured: true,
|
|
64
79
|
checkDestructuredRoots: true,
|
|
65
|
-
checkRestProperty:
|
|
80
|
+
checkRestProperty: false,
|
|
66
81
|
enableFixer: true,
|
|
67
82
|
enableRestElementFixer: true,
|
|
68
83
|
enableRootFixer: true,
|
|
84
|
+
unnamedRootBase: ['props', 'obj', 'root'],
|
|
69
85
|
useDefaultObjectProperties: true
|
|
70
86
|
}
|
|
71
87
|
], // Reports missing params in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-param
|
|
@@ -83,7 +99,7 @@ module.exports = {
|
|
|
83
99
|
'jsdoc/require-throws': 'error', // Reports missing throws in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-throws
|
|
84
100
|
'jsdoc/require-yields': 'error', // Reports missing yields in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-yields
|
|
85
101
|
'jsdoc/require-yields-check': 'error', // Reports missing yields in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-yields-check
|
|
86
|
-
'jsdoc/sort-tags': '
|
|
102
|
+
'jsdoc/sort-tags': 'off', // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#sort-tags
|
|
87
103
|
'jsdoc/tag-lines': 'off' // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#tag-lines
|
|
88
104
|
}
|
|
89
105
|
};
|
package/rules/react.js
CHANGED
|
@@ -239,7 +239,7 @@ module.exports = {
|
|
|
239
239
|
'react/prefer-read-only-props': 'off', // Enforce that props are read-only https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-read-only-props.md
|
|
240
240
|
'react/prefer-stateless-function': ['off', {ignorePureComponents: true}], // Require stateless functions when not using lifecycle methods, setState or ref https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md
|
|
241
241
|
'react/prop-types': [
|
|
242
|
-
'
|
|
242
|
+
'off',
|
|
243
243
|
{
|
|
244
244
|
customValidators: [],
|
|
245
245
|
ignore: [],
|