@nfq/eslint-config 2.1.3 → 2.1.6

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 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.6](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.5...v2.1.6) (2022-07-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **JSX:** fix jsx file extension rule ([#18](https://github.com/nfqde/eslint-config-nfq/issues/18)) ([f225909](https://github.com/nfqde/eslint-config-nfq/commit/f225909dc9f245395c077821211a6caf54b5811a))
11
+
12
+ ### [2.1.5](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.4...v2.1.5) (2022-06-08)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **jsdoc:** fixe some rules ([#17](https://github.com/nfqde/eslint-config-nfq/issues/17)) ([e642d0d](https://github.com/nfqde/eslint-config-nfq/commit/e642d0dece2cfb69c07b80323d4885c8cff1ebfc))
18
+
19
+ ### [2.1.4](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.3...v2.1.4) (2022-05-30)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **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))
25
+
5
26
  ### [2.1.3](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.2...v2.1.3) (2022-05-27)
6
27
 
7
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nfq/eslint-config",
3
- "version": "2.1.3",
3
+ "version": "2.1.6",
4
4
  "engines": {
5
5
  "node": ">= 12.0.0"
6
6
  },
package/rules/jsdoc.js CHANGED
@@ -13,7 +13,8 @@ module.exports = {
13
13
  'jsdoc/check-param-names': [
14
14
  'error',
15
15
  {
16
- checkDestructured: true,
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
@@ -76,10 +74,11 @@ module.exports = {
76
74
  {
77
75
  checkDestructured: true,
78
76
  checkDestructuredRoots: true,
79
- checkRestProperty: true,
77
+ checkRestProperty: false,
80
78
  enableFixer: true,
81
79
  enableRestElementFixer: true,
82
80
  enableRootFixer: true,
81
+ unnamedRootBase: ['props', 'obj', 'root'],
83
82
  useDefaultObjectProperties: true
84
83
  }
85
84
  ], // Reports missing params in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-param
@@ -97,7 +96,7 @@ module.exports = {
97
96
  'jsdoc/require-throws': 'error', // Reports missing throws in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-throws
98
97
  'jsdoc/require-yields': 'error', // Reports missing yields in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-yields
99
98
  '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': 'error', // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#sort-tags
99
+ 'jsdoc/sort-tags': 'off', // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#sort-tags
101
100
  'jsdoc/tag-lines': 'off' // Reports unsorted JSDoc tags. https://github.com/gajus/eslint-plugin-jsdoc#tag-lines
102
101
  }
103
102
  };
package/rules/react.js CHANGED
@@ -98,7 +98,7 @@ module.exports = {
98
98
  ], // Enforce linebreaks in curly braces in JSX attributes and expressions. https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md
99
99
  'react/jsx-curly-spacing': ['error', 'never', {allowMultiline: true}], // Enforce or disallow spaces inside of curly braces in JSX attributes https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
100
100
  'react/jsx-equals-spacing': ['error', 'never'], // Enforce spacing around jsx equals signs https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-equals-spacing.md
101
- 'react/jsx-filename-extension': ['error', {extensions: ['.jsx']}], // only .jsx files may have JSX https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
101
+ 'react/jsx-filename-extension': ['error', {extensions: ['.jsx', '.tsx']}], // only .jsx files may have JSX https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
102
102
  'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'], // Require that the first prop in a JSX element be on a new line when the element is multiline https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md
103
103
  'react/jsx-fragments': ['error', 'syntax'], // Enforce shorthand or standard form for React fragments https://github.com/yannickcr/eslint-plugin-react/blob/bc976b837abeab1dffd90ac6168b746a83fc83cc/docs/rules/jsx-fragments.md
104
104
  'react/jsx-handler-names': [
@@ -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
- 'error',
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': 'error', // disallow comments inline after code https://eslint.org/docs/rules/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',