Skip to content

Commit 06c10c7

Browse files
committed
Simplify ESLint setup by using .mjs extension
- Use eslint.config.mjs instead of adding type:module to package.json - Keep webpack.config.js and validate-fixtures-json.js as regular .js files - No changes needed to project module system
1 parent 13a35e3 commit 06c10c7

File tree

5 files changed

+2
-3
lines changed

5 files changed

+2
-3
lines changed
File renamed without changes.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Install JS Deps
5858
run: yarn install --frozen-lockfile
5959
- name: Validate JSON in HTTP fixtures
60-
run: node .github/scripts/validate-fixtures-json.cjs
60+
run: node .github/scripts/validate-fixtures-json.js
6161

6262
test:
6363
name: Test

eslint.config.js renamed to eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default [
2828
},
2929
},
3030
{
31-
files: ['webpack.config.cjs', '.github/**/*.js'],
31+
files: ['webpack.config.js', '.github/**/*.js'],
3232
languageOptions: {
3333
sourceType: 'commonjs',
3434
globals: {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "dnsimple-developer",
33
"version": "0.0.1",
44
"private": true,
5-
"type": "module",
65
"devDependencies": {
76
"@eslint/js": "^9.18.0",
87
"@fortawesome/fontawesome-free": "^7.1.0",
File renamed without changes.

0 commit comments

Comments
 (0)