@nfq/eslint-config 2.2.11 → 2.3.1
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 +14 -0
- package/package.json +7 -7
- package/rules/best-practices.js +2 -2
- package/rules/typescript.js +1 -0
- package/pnpm-lock.yaml +0 -2538
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.3.1](https://github.com/nfqde/eslint-config-nfq/compare/v2.3.0...v2.3.1) (2023-05-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **no-undefined:** Remove rule because it makes no sense in typescript ([#39](https://github.com/nfqde/eslint-config-nfq/issues/39)) ([6c90eca](https://github.com/nfqde/eslint-config-nfq/commit/6c90ecabbfd25501b032f266d468cdd7d483e5ce))
|
|
11
|
+
|
|
12
|
+
## [2.3.0](https://github.com/nfqde/eslint-config-nfq/compare/v2.2.11...v2.3.0) (2023-04-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **Curly, NoMagic:** Update rules to be a bit more lax ([#37](https://github.com/nfqde/eslint-config-nfq/issues/37)) ([a211764](https://github.com/nfqde/eslint-config-nfq/commit/a21176478f62fe8fdae46566290a0a0eff6c593b))
|
|
18
|
+
|
|
5
19
|
### [2.2.11](https://github.com/nfqde/eslint-config-nfq/compare/v2.2.10...v2.2.11) (2023-03-04)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nfq/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">= 12.0.0"
|
|
6
6
|
},
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"confusing-browser-globals": "^1.0.11"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/core": "^7.21.
|
|
48
|
-
"@babel/eslint-parser": "^7.
|
|
47
|
+
"@babel/core": "^7.21.4",
|
|
48
|
+
"@babel/eslint-parser": "^7.21.3",
|
|
49
49
|
"@nfq/eslint-plugin": "^0.6.0",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
51
|
-
"@typescript-eslint/parser": "^5.
|
|
52
|
-
"eslint": "^8.
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
51
|
+
"@typescript-eslint/parser": "^5.59.0",
|
|
52
|
+
"eslint": "^8.38.0",
|
|
53
53
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
54
54
|
"eslint-plugin-array-func": "^3.1.8",
|
|
55
55
|
"eslint-plugin-better-styled-components": "^1.1.2",
|
|
56
56
|
"eslint-plugin-import": "^2.27.5",
|
|
57
|
-
"eslint-plugin-jsdoc": "^
|
|
57
|
+
"eslint-plugin-jsdoc": "^41.1.2",
|
|
58
58
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
59
59
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
60
60
|
"eslint-plugin-node": "^11.1.0",
|
package/rules/best-practices.js
CHANGED
|
@@ -10,7 +10,7 @@ module.exports = {
|
|
|
10
10
|
ignore: [0, 1],
|
|
11
11
|
ignoreArrayIndexes: true,
|
|
12
12
|
ignoreArrays: true,
|
|
13
|
-
ignoreFunctions: ['setTimeout', 'setInterval']
|
|
13
|
+
ignoreFunctions: ['setTimeout', 'setInterval', 'spacing']
|
|
14
14
|
}
|
|
15
15
|
], // disallow magic numbers http://eslint.org/docs/rules/no-magic-numbers
|
|
16
16
|
'accessor-pairs': [
|
|
@@ -25,7 +25,7 @@ module.exports = {
|
|
|
25
25
|
'class-methods-use-this': ['off', {exceptMethods: []}], // enforce that class methods use "this" http://eslint.org/docs/rules/class-methods-use-this
|
|
26
26
|
complexity: ['warn', {max: 20}], // specify the maximum cyclomatic complexity allowed in a program https://eslint.org/docs/rules/complexity
|
|
27
27
|
'consistent-return': 'error', // require return statements to either always or never specify values https://eslint.org/docs/rules/consistent-return
|
|
28
|
-
curly: 'error', // specify curly brace conventions for all control statements https://eslint.org/docs/rules/curly#top
|
|
28
|
+
curly: ['error', 'multi-line', 'consistent'], // specify curly brace conventions for all control statements https://eslint.org/docs/rules/curly#top
|
|
29
29
|
'default-case': ['warn', {commentPattern: '^no default$'}], // require default case in switch statements https://eslint.org/docs/rules/default-case
|
|
30
30
|
'default-param-last': 'error', // Checks if default params are last https://eslint.org/docs/rules/default-param-last
|
|
31
31
|
'dot-location': ['error', 'property'], // enforces consistent newlines before or after dots http://eslint.org/docs/rules/dot-location
|
package/rules/typescript.js
CHANGED