@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.
Files changed (2) hide show
  1. package/package.json +10 -10
  2. 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.19.2-d21af1c.9+d21af1c",
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:eslint lint:prettier",
15
- "lint:eslint": "yarn g:eslint",
16
- "lint:fix": "yarn g:run-p -c \"lint:eslint --fix\" \"lint:prettier --write\"",
17
- "lint:prettier": "yarn g:prettier --check",
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": "d21af1c3739e9a845aa8d33da9692ee825ce2e1e"
57
+ "gitHead": "f9c533ccba57b82ce9c44f6420746aa4ab9c5bec"
58
58
  }
@@ -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 imports can be considered "unused" by this rule, but NestJS uses them for dependency injection.
8
- // We can enforce no type imports to ensure that NestJS can inject correctly.
9
- // See: https://github.com/typescript-eslint/typescript-eslint/issues/2559#issuecomment-692780580
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
  {