@nfq/eslint-config 2.1.3 → 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 +7 -0
- package/package.json +1 -1
- package/rules/jsdoc.js +5 -3
- package/rules/react.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
|
|
5
12
|
### [2.1.3](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.2...v2.1.3) (2022-05-27)
|
|
6
13
|
|
|
7
14
|
|
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
|
|
@@ -76,10 +77,11 @@ module.exports = {
|
|
|
76
77
|
{
|
|
77
78
|
checkDestructured: true,
|
|
78
79
|
checkDestructuredRoots: true,
|
|
79
|
-
checkRestProperty:
|
|
80
|
+
checkRestProperty: false,
|
|
80
81
|
enableFixer: true,
|
|
81
82
|
enableRestElementFixer: true,
|
|
82
83
|
enableRootFixer: true,
|
|
84
|
+
unnamedRootBase: ['props', 'obj', 'root'],
|
|
83
85
|
useDefaultObjectProperties: true
|
|
84
86
|
}
|
|
85
87
|
], // Reports missing params in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-param
|
|
@@ -97,7 +99,7 @@ module.exports = {
|
|
|
97
99
|
'jsdoc/require-throws': 'error', // Reports missing throws in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-throws
|
|
98
100
|
'jsdoc/require-yields': 'error', // Reports missing yields in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-yields
|
|
99
101
|
'jsdoc/require-yields-check': 'error', // Reports missing yields in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-yields-check
|
|
100
|
-
'jsdoc/sort-tags': '
|
|
102
|
+
'jsdoc/sort-tags': 'off', // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#sort-tags
|
|
101
103
|
'jsdoc/tag-lines': 'off' // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#tag-lines
|
|
102
104
|
}
|
|
103
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: [],
|