Skip to content

Commit 472ad44

Browse files
committed
Update to ESLint 8.57.1
This mirrors TerriaJS/terriajs#7150 from the terriajs repository.
1 parent 263961d commit 472ad44

5 files changed

Lines changed: 124 additions & 221 deletions

File tree

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
3+
module.exports = {
4+
extends: "./node_modules/terriajs/.eslintrc.js"
5+
};

gulpfile.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,9 @@ gulp.task(
186186

187187
gulp.task("lint", function (done) {
188188
var runExternalModule = require("terriajs/buildprocess/runExternalModule");
189-
190-
runExternalModule("eslint/bin/eslint.js", [
191-
"-c",
192-
path.join(getPackageRoot("terriajs"), ".eslintrc.js"),
193-
"--ignore-pattern",
194-
"lib/ThirdParty",
189+
const eslintDir = path.dirname(require.resolve("eslint/package.json"));
190+
const eslintExecutable = path.join(eslintDir, "bin", "eslint.js");
191+
runExternalModule(eslintExecutable, [
195192
"--max-warnings",
196193
"0",
197194
"index.js",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
"devDependencies": {
4545
"@babel/core": "^7.23.5",
4646
"@babel/eslint-parser": "^7.23.3",
47+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
4748
"@babel/preset-env": "^7.23.5",
4849
"@babel/preset-react": "^7.23.3",
49-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
5050
"@typescript-eslint/eslint-plugin": "^6.12.0",
5151
"@typescript-eslint/parser": "^6.12.0",
5252
"babel-loader": "^8.2.3",
5353
"css-loader": "^2.1.0",
5454
"ejs": "^3.1.10",
55-
"eslint": "^7.20.0",
55+
"eslint": "^8.57.1",
5656
"eslint-config-prettier": "^9.1.0",
5757
"eslint-plugin-react": "^7.19.0",
5858
"eslint-plugin-react-hooks": "^4.6.0",

0 commit comments

Comments
 (0)