Skip to content

Commit ed8b92a

Browse files
committed
Remove Babel, set language options to defaults
1 parent 137719c commit ed8b92a

7 files changed

+9
-528
lines changed

.changeset/friendly-geckos-bathe.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
2-
'eslint-config-seek': minor
2+
'eslint-config-seek': major
33
---
44

5-
Babel now treats all Javascript files to have a [`sourceType`](https://babeljs.io/docs/options#sourcetype) of `module` (previously `script`).
5+
Some [language options](https://eslint.org/docs/latest/use/configure/language-options) have been restored to defaults:
6+
7+
- `sourceType` is now set to the default of `module` (previously `script` in some scenarios).
8+
- `ecmaVersion` is now set to the default of `latest` (previously `2022` and `6`)
9+
- Babel has been removed

.changeset/giant-eagles-fetch.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
Upgrade a number of dependencies. These should have no/minimal impact.
66

7-
- `@babel/core`, `@babel/eslint-parser`, `@babel/preset-react`
87
- `eslint-plugin-cypress`
98
- `eslint-config-prettier`
109
- `eslint-plugin-jest`

.changeset/small-jeans-wave.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ These changes may affect your project setup if you are customising your ESLint c
99
- https://eslint.org/docs/latest/use/migrate-to-9.0.0
1010
- https://typescript-eslint.io/blog/announcing-typescript-eslint-v8
1111

12+
In addition, through these major upgrades, some lint rules have changed or have been renamed. You will likely need to autofix and/or adjust your code after running ESLint.
1213

13-
In addition, through these major upgrades, some lint rules have changed or have been renamed. You will likely need to autofix and/or adjust your code after running ESLint.
14-
15-
As part of this migration, this project has migrated to Flat ESLint configuration. Read the migration guide: https://eslint.org/docs/latest/use/configure/migration-guide.
14+
As part of this migration, this project has migrated to Flat ESLint configuration. Read the migration guide: https://eslint.org/docs/latest/use/configure/migration-guide.

base.js

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const importX = require('eslint-plugin-import-x');
22
const globals = require('globals');
3-
const babelParser = require('@babel/eslint-parser');
43
const tsParser = require('@typescript-eslint/parser');
54
const jestPlugin = require('eslint-plugin-jest');
65
const cypress = require('eslint-plugin-cypress');
@@ -112,9 +111,7 @@ module.exports = [
112111
...globals.node,
113112
},
114113

115-
parser: babelParser,
116114
ecmaVersion: 6,
117-
sourceType: 'module',
118115

119116
parserOptions: {
120117
requireConfigFile: false,
@@ -138,8 +135,6 @@ module.exports = [
138135

139136
languageOptions: {
140137
parser: tsParser,
141-
ecmaVersion: 2022,
142-
sourceType: 'module',
143138

144139
parserOptions: {
145140
projectService: true,

index.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,7 @@ module.exports = [
4242
},
4343

4444
languageOptions: {
45-
globals: {
46-
...globals.browser,
47-
},
48-
49-
ecmaVersion: 6,
50-
sourceType: 'module',
51-
52-
parserOptions: {
53-
babelOptions: {
54-
presets: [require.resolve('@babel/preset-react')],
55-
},
56-
},
45+
globals: globals.browser,
5746
},
5847

5948
settings: {

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
},
2525
"homepage": "https://github.com/seek-oss/eslint-config-seek#readme",
2626
"dependencies": {
27-
"@babel/core": "^7.25.2",
28-
"@babel/eslint-parser": "^7.25.1",
29-
"@babel/preset-react": "^7.24.7",
3027
"@eslint/compat": "^1.1.1",
3128
"@eslint/eslintrc": "^3.1.0",
3229
"@eslint/js": "^9.9.1",

0 commit comments

Comments
 (0)