Skip to content

Commit 150db93

Browse files
authored
Upgrades ESLint to Version 9 (#2958)
1 parent 59afa92 commit 150db93

File tree

164 files changed

+1121
-1411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1121
-1411
lines changed

.eslintignore

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

.eslintrc.js

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

config/.eslintrc

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

config/webpack/demo/webpack.config.dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const glob = require("glob");
55
const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
66
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
77

8-
const ROOT = path.resolve(__dirname, "../../.."); // eslint-disable-line no-undef
8+
const ROOT = path.resolve(__dirname, "../../..");
99
const PKGS = path.join(ROOT, "packages");
1010
const VICTORY_GLOB = path
1111
.join(PKGS, "victory*/package.json")
@@ -50,7 +50,7 @@ module.exports = {
5050
include: [DEMO],
5151
use: {
5252
loader: "babel-loader",
53-
// eslint-disable-next-line global-require
53+
5454
options: require("../../../.babelrc.js"),
5555
},
5656
},

config/webpack/demo/webpack.config.hot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const base = require("./webpack.config.dev");
55

66
// Clone our own module object.
77
const mod = _.cloneDeep(base.module);
8-
const firstLoader = mod.rules[0]; // eslint-disable-line no-magic-numbers
8+
const firstLoader = mod.rules[0];
99

1010
// Update rules array. First loader needs react-hot-loader.
1111
firstLoader.rules = [require.resolve("react-hot-loader")]

config/webpack/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = {
5656
include: [SRC],
5757
use: {
5858
loader: "babel-loader",
59-
// eslint-disable-next-line global-require
59+
6060
options: require("../../.babelrc.js"),
6161
},
6262
},

demo/ts/.eslintrc

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

demo/ts/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,5 @@ class App extends React.Component<any, AppState> {
289289
}
290290
}
291291

292+
// eslint-disable-next-line react/no-deprecated
292293
ReactDOM.render(<App />, document.getElementById("content"));

demo/ts/components/accessibility-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable no-magic-numbers */
1+
22
import React from "react";
33
import { isNumber } from "lodash";
44
import { VictoryGroup } from "victory-group";

demo/ts/components/animation-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable no-magic-numbers */
1+
22
import React from "react";
33
import { random, range } from "lodash";
44
import { VictoryBar } from "victory-bar";

0 commit comments

Comments
 (0)