@tpluscode/eslint-config 0.4.0 → 0.4.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ee3af50: Apply overrides to `.mjs` too
8
+
9
+ ## 0.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - eb4771f: disable `no-undef` in TS files as suggested by `typescript-eslint`
14
+
3
15
  ## 0.4.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -22,6 +22,7 @@ If you write code in TypeScript, add:
22
22
 
23
23
  ```
24
24
  npm i --save-dev \
25
+ typescript \
25
26
  @typescript-eslint/eslint-plugin \
26
27
  @typescript-eslint/parser \
27
28
  eslint-import-resolver-typescript
package/index.js CHANGED
@@ -47,10 +47,11 @@ module.exports = {
47
47
  }
48
48
  },
49
49
  {
50
- files: '*.ts',
50
+ files: ['*.ts', '*.mts', '*.cts', '*.tsx'],
51
51
  rules: {
52
52
  'no-useless-constructor': 'off',
53
- '@typescript-eslint/no-useless-constructor': 'error'
53
+ '@typescript-eslint/no-useless-constructor': 'error',
54
+ 'no-undef': 'off'
54
55
  }
55
56
  }
56
57
  ]
package/js.js CHANGED
@@ -34,7 +34,10 @@ module.exports = {
34
34
  '*.spec.ts',
35
35
  '**/test/**/*.js',
36
36
  '*.test.js',
37
- '*.spec.js'
37
+ '*.spec.js',
38
+ '**/test/**/*.mjs',
39
+ '*.test.mjs',
40
+ '*.spec.mjs'
38
41
  ],
39
42
  optionalDependencies: false
40
43
  }
@@ -48,6 +51,8 @@ module.exports = {
48
51
  files: [
49
52
  '*.test.js',
50
53
  '*.spec.js',
54
+ '*.test.mjs',
55
+ '*.spec.mjs',
51
56
  '*.test.ts',
52
57
  '*.spec.ts'
53
58
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpluscode/eslint-config",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {