@nfq/eslint-config 2.1.6 → 2.2.2
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/config/settings.js +6 -0
- package/index.js +10 -0
- package/package.json +20 -15
- package/pnpm-lock.yaml +854 -554
- package/rules/es6.js +0 -1
- package/rules/imports.js +2 -2
- package/rules/style.js +0 -10
- package/rules/typescript.js +236 -0
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.2.2](https://github.com/nfqde/eslint-config-nfq/compare/v2.2.1...v2.2.2) (2022-07-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **Config:** fix tslint config ([#21](https://github.com/nfqde/eslint-config-nfq/issues/21)) ([f826152](https://github.com/nfqde/eslint-config-nfq/commit/f8261527c4e1a2b3e16034b4c88b4e4bd206060c))
|
|
11
|
+
|
|
12
|
+
### [2.2.1](https://github.com/nfqde/eslint-config-nfq/compare/v2.2.0...v2.2.1) (2022-07-20)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **Rules:** @typescript-eslint/keyword-spacing ([#20](https://github.com/nfqde/eslint-config-nfq/issues/20)) ([f190b7a](https://github.com/nfqde/eslint-config-nfq/commit/f190b7aea19a22e61cfc40df78494128313eb7cc))
|
|
18
|
+
|
|
19
|
+
## [2.2.0](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.6...v2.2.0) (2022-07-20)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **Rules:** Add typescript support ([#19](https://github.com/nfqde/eslint-config-nfq/issues/19)) ([30c2f0c](https://github.com/nfqde/eslint-config-nfq/commit/30c2f0cb374ee8d75367a8cadbc4207b939a24e1))
|
|
25
|
+
|
|
5
26
|
### [2.1.6](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.5...v2.1.6) (2022-07-19)
|
|
6
27
|
|
|
7
28
|
|
package/config/settings.js
CHANGED
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@ const global = require('./config/globals');
|
|
|
2
2
|
const plugins = require('./config/plugins');
|
|
3
3
|
const settings = require('./config/settings');
|
|
4
4
|
const rules = require('./rules');
|
|
5
|
+
const typescript = require('./rules/typescript');
|
|
5
6
|
|
|
6
7
|
module.exports = {
|
|
7
8
|
env: {
|
|
@@ -11,6 +12,15 @@ module.exports = {
|
|
|
11
12
|
},
|
|
12
13
|
extends: rules,
|
|
13
14
|
globals: global,
|
|
15
|
+
overrides: [
|
|
16
|
+
{
|
|
17
|
+
files: ['**/*.{ts,cts,mts,tsx}'],
|
|
18
|
+
parser: '@typescript-eslint/parser',
|
|
19
|
+
parserOptions: {project: './tsconfig.json'},
|
|
20
|
+
plugins: ['@typescript-eslint'],
|
|
21
|
+
rules: typescript.rules
|
|
22
|
+
}
|
|
23
|
+
],
|
|
14
24
|
parser: '@babel/eslint-parser',
|
|
15
25
|
parserOptions: {
|
|
16
26
|
ecmaFeatures: {jsx: true},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nfq/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">= 12.0.0"
|
|
6
6
|
},
|
|
@@ -19,11 +19,14 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@babel/eslint-parser": ">= 7",
|
|
21
21
|
"@nfq/eslint-plugin": ">= 0.6.0",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": ">= 5",
|
|
23
|
+
"@typescript-eslint/parser": ">= 5",
|
|
22
24
|
"eslint": ">= 8",
|
|
23
25
|
"eslint-import-resolver-alias": ">= 1",
|
|
24
26
|
"eslint-plugin-array-func": ">= 3",
|
|
25
27
|
"eslint-plugin-better-styled-components": ">= 1",
|
|
26
28
|
"eslint-plugin-import": ">= 2",
|
|
29
|
+
"eslint-plugin-jsdoc": ">= 39",
|
|
27
30
|
"eslint-plugin-jsx-a11y": ">= 6",
|
|
28
31
|
"eslint-plugin-no-unsanitized": ">= 3",
|
|
29
32
|
"eslint-plugin-node": ">= 11",
|
|
@@ -37,29 +40,31 @@
|
|
|
37
40
|
"eslint-plugin-sort-destructure-keys": ">= 1"
|
|
38
41
|
},
|
|
39
42
|
"dependencies": {
|
|
40
|
-
"confusing-browser-globals": "^1.0.
|
|
43
|
+
"confusing-browser-globals": "^1.0.11"
|
|
41
44
|
},
|
|
42
45
|
"devDependencies": {
|
|
43
|
-
"@babel/core": "^7.
|
|
44
|
-
"@babel/eslint-parser": "^7.
|
|
46
|
+
"@babel/core": "^7.18.9",
|
|
47
|
+
"@babel/eslint-parser": "^7.18.9",
|
|
45
48
|
"@nfq/eslint-plugin": "^0.6.0",
|
|
46
|
-
"eslint": "^
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
|
50
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
51
|
+
"eslint": "^8.20.0",
|
|
47
52
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
48
53
|
"eslint-plugin-array-func": "^3.1.7",
|
|
49
54
|
"eslint-plugin-better-styled-components": "^1.1.2",
|
|
50
|
-
"eslint-plugin-import": "^2.
|
|
51
|
-
"eslint-plugin-jsdoc": "^39.3.
|
|
52
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
53
|
-
"eslint-plugin-no-unsanitized": "^
|
|
55
|
+
"eslint-plugin-import": "^2.26.0",
|
|
56
|
+
"eslint-plugin-jsdoc": "^39.3.3",
|
|
57
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
58
|
+
"eslint-plugin-no-unsanitized": "^4.0.1",
|
|
54
59
|
"eslint-plugin-node": "^11.1.0",
|
|
55
60
|
"eslint-plugin-perf-standard": "^1.0.3",
|
|
56
|
-
"eslint-plugin-promise": "^
|
|
57
|
-
"eslint-plugin-react": "^7.
|
|
58
|
-
"eslint-plugin-react-hooks": "^4.
|
|
61
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
62
|
+
"eslint-plugin-react": "^7.30.1",
|
|
63
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
59
64
|
"eslint-plugin-react-hooks-ssr": "^0.1.5",
|
|
60
|
-
"eslint-plugin-redos": "^4.
|
|
61
|
-
"eslint-plugin-security": "^1.
|
|
62
|
-
"eslint-plugin-sort-destructure-keys": "^1.
|
|
65
|
+
"eslint-plugin-redos": "^4.4.1",
|
|
66
|
+
"eslint-plugin-security": "^1.5.0",
|
|
67
|
+
"eslint-plugin-sort-destructure-keys": "^1.4.0"
|
|
63
68
|
},
|
|
64
69
|
"author": ".NFQ | Christoph Kruppe",
|
|
65
70
|
"license": "ISC"
|