eslint-config-skuba 2.0.3 → 2.0.4

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/index.js +8 -9
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,5 +1,7 @@
1
- const jsExtensions = ['js', 'cjs', 'mjs', 'jsx'];
2
- const tsExtensions = ['ts', 'cts', 'mts', 'tsx'];
1
+ /** @type {{ js: string[], ts: string[] }} */
2
+ const extensions = require('eslint-config-seek/extensions');
3
+
4
+ const { js, ts } = extensions;
3
5
 
4
6
  /** @type {import('eslint').Linter.Config} */
5
7
  module.exports = {
@@ -18,7 +20,7 @@ module.exports = {
18
20
  extends: [
19
21
  'plugin:@typescript-eslint/recommended-requiring-type-checking',
20
22
  ],
21
- files: [`*.{${tsExtensions.join(',')}}`],
23
+ files: [`*.{${ts.join(',')}}`],
22
24
  parserOptions: {
23
25
  project: true,
24
26
  },
@@ -28,7 +30,7 @@ module.exports = {
28
30
  },
29
31
  },
30
32
  {
31
- files: [`*.{${jsExtensions.join(',')}}`],
33
+ files: [`*.{${js.join(',')}}`],
32
34
  rules: {
33
35
  '@typescript-eslint/no-unsafe-argument': 'off',
34
36
  '@typescript-eslint/no-unsafe-assignment': 'off',
@@ -37,17 +39,14 @@ module.exports = {
37
39
  },
38
40
  },
39
41
  {
40
- files: [`*.{${tsExtensions.join(',')}}`],
42
+ files: [`*.{${ts.join(',')}}`],
41
43
  plugins: ['eslint-plugin-tsdoc'],
42
44
  rules: {
43
45
  'tsdoc/syntax': 'error',
44
46
  },
45
47
  },
46
48
  {
47
- files: [
48
- `*.test.{${tsExtensions.join(',')}}`,
49
- `**/testing/**/*.{${tsExtensions.join(',')}}`,
50
- ],
49
+ files: [`*.test.{${ts.join(',')}}`, `**/testing/**/*.{${ts.join(',')}}`],
51
50
  rules: {
52
51
  // Allow `any` in tests
53
52
  '@typescript-eslint/no-unsafe-argument': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-skuba",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "private": false,
5
5
  "description": "ESLint config for skuba",
6
6
  "homepage": "https://github.com/seek-oss/eslint-config-skuba#readme",
@@ -29,7 +29,7 @@
29
29
  "@types/eslint": "^8.4.1",
30
30
  "@typescript-eslint/eslint-plugin": "^5.61.0",
31
31
  "@typescript-eslint/parser": "^5.61.0",
32
- "eslint-config-seek": "^11.0.0",
32
+ "eslint-config-seek": "^11.3.1",
33
33
  "eslint-plugin-jest": "^27.0.0",
34
34
  "eslint-plugin-tsdoc": "^0.2.14",
35
35
  "eslint-plugin-yml": "^1.5.0"