@nfq/eslint-config 2.1.2 → 2.1.5
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 +8 -8
- package/rules/react.js +1 -1
- package/rules/style.js +4 -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.5](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.4...v2.1.5) (2022-06-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **jsdoc:** fixe some rules ([#17](https://github.com/nfqde/eslint-config-nfq/issues/17)) ([e642d0d](https://github.com/nfqde/eslint-config-nfq/commit/e642d0dece2cfb69c07b80323d4885c8cff1ebfc))
|
|
11
|
+
|
|
12
|
+
### [2.1.4](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.3...v2.1.4) (2022-05-30)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **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))
|
|
18
|
+
|
|
19
|
+
### [2.1.3](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.2...v2.1.3) (2022-05-27)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **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))
|
|
25
|
+
|
|
5
26
|
### [2.1.2](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.1...v2.1.2) (2022-05-27)
|
|
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
|
|
@@ -46,10 +47,7 @@ module.exports = {
|
|
|
46
47
|
'jsdoc/no-multi-asterisks': 'error', // Prevents use of multiple asterisks at the beginning of lines. https://github.com/gajus/eslint-plugin-jsdoc#no-multi-asterisks
|
|
47
48
|
'jsdoc/no-restricted-syntax': 'off', // Reports invalid JSDoc syntax. https://github.com/gajus/eslint-plugin-jsdoc#no-restricted-syntax
|
|
48
49
|
'jsdoc/no-types': 'off', // Reports redundant types in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#no-types
|
|
49
|
-
'jsdoc/no-undefined-types':
|
|
50
|
-
'error',
|
|
51
|
-
{definedTypes: ['JSX']}
|
|
52
|
-
], // Reports undefined types in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#no-undefined-types
|
|
50
|
+
'jsdoc/no-undefined-types': 'off', // Reports undefined types in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#no-undefined-types
|
|
53
51
|
'jsdoc/require-asterisk-prefix': ['error', 'always'], // Requires that each JSDoc line starts with an *. https://github.com/gajus/eslint-plugin-jsdoc#require-asterisk-prefix
|
|
54
52
|
'jsdoc/require-description': ['error', {exemptedBy: ['type', 'inheritdoc']}], // Reports missing description in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-description
|
|
55
53
|
'jsdoc/require-description-complete-sentence': 'error', // Reports missing complete sentence in JSDoc description. https://github.com/gajus/eslint-plugin-jsdoc#require-description-complete-sentence
|
|
@@ -59,9 +57,10 @@ module.exports = {
|
|
|
59
57
|
'jsdoc/require-jsdoc': [
|
|
60
58
|
'error',
|
|
61
59
|
{
|
|
60
|
+
contexts: ['VariableDeclaration > VariableDeclarator > ArrowFunctionExpression'],
|
|
62
61
|
publicOnly: false,
|
|
63
62
|
require: {
|
|
64
|
-
ArrowFunctionExpression:
|
|
63
|
+
ArrowFunctionExpression: false,
|
|
65
64
|
ClassDeclaration: true,
|
|
66
65
|
ClassExpression: true,
|
|
67
66
|
FunctionDeclaration: true,
|
|
@@ -75,10 +74,11 @@ module.exports = {
|
|
|
75
74
|
{
|
|
76
75
|
checkDestructured: true,
|
|
77
76
|
checkDestructuredRoots: true,
|
|
78
|
-
checkRestProperty:
|
|
77
|
+
checkRestProperty: false,
|
|
79
78
|
enableFixer: true,
|
|
80
79
|
enableRestElementFixer: true,
|
|
81
80
|
enableRootFixer: true,
|
|
81
|
+
unnamedRootBase: ['props', 'obj', 'root'],
|
|
82
82
|
useDefaultObjectProperties: true
|
|
83
83
|
}
|
|
84
84
|
], // Reports missing params in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-param
|
|
@@ -96,7 +96,7 @@ module.exports = {
|
|
|
96
96
|
'jsdoc/require-throws': 'error', // Reports missing throws in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-throws
|
|
97
97
|
'jsdoc/require-yields': 'error', // Reports missing yields in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-yields
|
|
98
98
|
'jsdoc/require-yields-check': 'error', // Reports missing yields in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-yields-check
|
|
99
|
-
'jsdoc/sort-tags': '
|
|
99
|
+
'jsdoc/sort-tags': 'off', // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#sort-tags
|
|
100
100
|
'jsdoc/tag-lines': 'off' // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#tag-lines
|
|
101
101
|
}
|
|
102
102
|
};
|
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: [],
|
package/rules/style.js
CHANGED
|
@@ -217,7 +217,10 @@ module.exports = {
|
|
|
217
217
|
'no-array-constructor': 'error', // disallow use of the Array constructor https://eslint.org/docs/rules/no-array-constructor
|
|
218
218
|
'no-bitwise': 'error', // disallow use of bitwise operators https://eslint.org/docs/rules/no-bitwise
|
|
219
219
|
'no-continue': 'error', // disallow use of the continue statement https://eslint.org/docs/rules/no-continue
|
|
220
|
-
'no-inline-comments':
|
|
220
|
+
'no-inline-comments': [
|
|
221
|
+
'error',
|
|
222
|
+
{ignorePattern: '(@type|css) .+'}
|
|
223
|
+
], // disallow comments inline after code https://eslint.org/docs/rules/no-inline-comments
|
|
221
224
|
'no-lonely-if': 'error', // disallow if as the only statement in an else block https://eslint.org/docs/rules/no-lonely-if
|
|
222
225
|
'no-mixed-operators': [
|
|
223
226
|
'error',
|