@nfq/eslint-config 2.2.6 → 2.2.8

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,20 @@
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.2.8](https://github.com/nfqde/eslint-config-nfq/compare/v2.2.7...v2.2.8) (2022-11-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **imports:** Account for types ([#27](https://github.com/nfqde/eslint-config-nfq/issues/27)) ([4c6cfdb](https://github.com/nfqde/eslint-config-nfq/commit/4c6cfdb727db2c67f636c9223c91c931b28202a1))
11
+
12
+ ### [2.2.7](https://github.com/nfqde/eslint-config-nfq/compare/v2.2.6...v2.2.7) (2022-10-20)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **Typescript:** Fix some typescript rules ([#26](https://github.com/nfqde/eslint-config-nfq/issues/26)) ([a21eae5](https://github.com/nfqde/eslint-config-nfq/commit/a21eae5dff2efc9e768797ee253023057b8381a2))
18
+
5
19
  ### [2.2.6](https://github.com/nfqde/eslint-config-nfq/compare/v2.2.5...v2.2.6) (2022-07-24)
6
20
 
7
21
 
package/config/globals.js CHANGED
@@ -10,5 +10,7 @@ module.exports = {
10
10
  Cypress: false,
11
11
  describe: false,
12
12
  expect: false,
13
- it: false
13
+ it: false,
14
+ JSX: false,
15
+ NodeJs: false
14
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nfq/eslint-config",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "engines": {
5
5
  "node": ">= 12.0.0"
6
6
  },
package/rules/imports.js CHANGED
@@ -76,7 +76,13 @@ module.exports = {
76
76
  ], // Ensure consistent use of file extension within the import path https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
77
77
  'import/first': 2, // disallow non-import statements appearing before import statements https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md
78
78
  'import/group-exports': 0, // Reports when named exports are not grouped together in a single export declaration or when multiple assignments to CommonJS module.exports or exports object are present in a single file. https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
79
- 'import/max-dependencies': [1, {max: 20}], // Forbid modules to have too many dependencies https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
79
+ 'import/max-dependencies': [
80
+ 1,
81
+ {
82
+ max: 20,
83
+ ignoreTypeImports: false
84
+ }
85
+ ], // Forbid modules to have too many dependencies https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
80
86
  'import/newline-after-import': 2, // Require a newline after the last import/require in a group https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
81
87
  'import/no-absolute-path': 2, // Forbid import of modules using absolute paths https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
82
88
  'import/no-anonymous-default-export': [
@@ -28,17 +28,7 @@ module.exports = {
28
28
  ],
29
29
  '@typescript-eslint/default-param-last': 'error',
30
30
  '@typescript-eslint/dot-notation': ['error', {allowKeywords: true}],
31
- '@typescript-eslint/explicit-function-return-type': [
32
- 'error',
33
- {
34
- allowConciseArrowFunctionExpressionsStartingWithVoid: false,
35
- allowDirectConstAssertionInArrowFunctions: true,
36
- allowedNames: [],
37
- allowExpressions: true,
38
- allowHigherOrderFunctions: true,
39
- allowTypedFunctionExpressions: true
40
- }
41
- ],
31
+ '@typescript-eslint/explicit-function-return-type': 'off',
42
32
  '@typescript-eslint/explicit-member-accessibility': ['error', {accessibility: 'no-public'}],
43
33
  '@typescript-eslint/explicit-module-boundary-types': 'off',
44
34
  '@typescript-eslint/func-call-spacing': ['error', 'never'],
@@ -105,7 +95,7 @@ module.exports = {
105
95
  '@typescript-eslint/no-namespace': 'error',
106
96
  '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
107
97
  '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
108
- '@typescript-eslint/no-non-null-assertion': 'warn',
98
+ '@typescript-eslint/no-non-null-assertion': 'off',
109
99
  '@typescript-eslint/no-redeclare': 'error',
110
100
  '@typescript-eslint/no-redundant-type-constituents': 'warn',
111
101
  '@typescript-eslint/no-require-imports': 'warn',
@@ -230,6 +220,8 @@ module.exports = {
230
220
  'object-curly-spacing': 'off',
231
221
  'padding-line-between-statements': 'off',
232
222
  quotes: 'off',
223
+ 'react/default-props-match-prop-types': 'off',
224
+ 'react/require-default-props': 'off',
233
225
  semi: 'off',
234
226
  'space-before-blocks': 'off',
235
227
  'space-before-function-paren': 'off',