eslint-config-seek 11.0.0 → 11.1.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/base.js CHANGED
@@ -76,8 +76,7 @@ const baseRules = {
76
76
  'no-return-await': OFF,
77
77
  };
78
78
 
79
- const jsExtensions = ['js', 'cjs', 'mjs', 'jsx'];
80
- const tsExtensions = ['ts', 'cts', 'mts', 'tsx'];
79
+ const { js: jsExtensions, ts: tsExtensions } = require('./extensions');
81
80
  const allExtensions = [...jsExtensions, ...tsExtensions];
82
81
 
83
82
  /** @type {import('eslint').Linter.Config} */
@@ -87,7 +86,7 @@ const baseConfig = {
87
86
  requireConfigFile: false,
88
87
  sourceType: 'module',
89
88
  babelOptions: {
90
- presets: ['@babel/preset-react'],
89
+ presets: [require.resolve('@babel/preset-react')],
91
90
  },
92
91
  },
93
92
  root: true,
@@ -113,7 +112,7 @@ const baseConfig = {
113
112
  parserOptions: {
114
113
  ecmaVersion: 2018,
115
114
  sourceType: 'module',
116
- project: 'tsconfig.json',
115
+ project: true,
117
116
  },
118
117
  extends: [
119
118
  'plugin:@typescript-eslint/eslint-recommended',
package/extensions.js ADDED
@@ -0,0 +1,2 @@
1
+ module.exports.js = ['js', 'cjs', 'mjs', 'jsx'];
2
+ module.exports.ts = ['ts', 'cts', 'mts', 'tsx'];
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "11.0.0",
3
+ "version": "11.1.0",
4
4
  "description": "ESLint configuration used by SEEK",
5
5
  "main": "index.js",
6
6
  "files": [
7
7
  "index.js",
8
- "base.js"
8
+ "base.js",
9
+ "extensions.js"
9
10
  ],
10
11
  "repository": {
11
12
  "type": "git",