@voiceflow/eslint-config 7.19.2-d21af1c.9 → 7.20.0
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/package.json +10 -10
- package/src/presets/nest.js +3 -4
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/eslint-config",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.20.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"src"
|
|
6
|
+
],
|
|
4
7
|
"type": "module",
|
|
8
|
+
"main": "src/index.js",
|
|
5
9
|
"exports": {
|
|
6
10
|
".": "./src/index.js",
|
|
7
11
|
"./node": "./src/node.js"
|
|
8
12
|
},
|
|
9
|
-
"main": "src/index.js",
|
|
10
|
-
"files": [
|
|
11
|
-
"src"
|
|
12
|
-
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"lint": "yarn g:run-p -c lint:
|
|
15
|
-
"lint:
|
|
16
|
-
"lint:fix": "yarn g:run-p -c \"lint:
|
|
17
|
-
"lint:
|
|
14
|
+
"lint": "yarn g:run-p -c lint:oxlint lint:oxfmt",
|
|
15
|
+
"lint:oxlint": "yarn g:oxlint",
|
|
16
|
+
"lint:fix": "yarn g:run-p -c \"lint:oxlint --fix\" \"lint:oxfmt --write\"",
|
|
17
|
+
"lint:oxfmt": "yarn g:oxfmt --check",
|
|
18
18
|
"test": "yarn g:run-p -c test:cycles test:unused",
|
|
19
19
|
"test:cycles": "yarn g:dpdm src/index.js",
|
|
20
20
|
"test:unused": "yarn g:knip --workspace @voiceflow/eslint-config"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"volta": {
|
|
55
55
|
"extends": "../../package.json"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "f9c533ccba57b82ce9c44f6420746aa4ab9c5bec"
|
|
58
58
|
}
|
package/src/presets/nest.js
CHANGED
|
@@ -4,10 +4,9 @@ export default [
|
|
|
4
4
|
files: ['**/*.controller.ts', '**/*.decorator.ts', '**/*.factory.ts', '**/*.module.ts', '**/*.service.ts'],
|
|
5
5
|
|
|
6
6
|
rules: {
|
|
7
|
-
// NestJS
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
'@typescript-eslint/consistent-type-imports': ['off'],
|
|
7
|
+
// NestJS decorators used to be considered unused, but this is now fixed
|
|
8
|
+
// show warnings for now until full migration
|
|
9
|
+
'@typescript-eslint/consistent-type-imports': ['warn', { prefer: 'type-imports' }],
|
|
11
10
|
},
|
|
12
11
|
},
|
|
13
12
|
{
|