Skip to content

Commit e79e337

Browse files
committed
chore(): adopt eslint v9
1 parent b267494 commit e79e337

File tree

7 files changed

+834
-647
lines changed

7 files changed

+834
-647
lines changed

.eslintignore

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

.eslintrc

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

bricks/inject/src/data-providers/visual-builder-preview/connect.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jest.spyOn(runtime.__secret_internals, "setRealTimeDataInspectRoot");
8282
const mockCapture = capture as jest.Mock;
8383

8484
delete (window as any).location;
85-
window.location = {
85+
(window as any).location = {
8686
origin: "http://localhost",
8787
reload: jest.fn(),
8888
} as unknown as Location;

cypress/plugins/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference types="cypress" />
1+
/// <reference types="Cypress" />
22
// ***********************************************************
33
// This example plugins/index.js can be used to load plugins
44
//
@@ -18,7 +18,7 @@ const browserify = require("@cypress/browserify-preprocessor");
1818
/**
1919
* @type {Cypress.PluginConfig}
2020
*/
21-
module.exports = (on, config) => {
21+
module.exports = (on, _config) => {
2222
// `on` is used to hook into various events Cypress emits
2323
// `config` is the resolved Cypress config
2424

eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import eslintConfigNext from "@next-core/eslint-config-next";
2+
import nodeConfig from "@next-core/eslint-config-next/node.js";
3+
import globals from "globals";
4+
5+
export default [
6+
{
7+
ignores: ["**/node_modules", "**/dist"],
8+
},
9+
...eslintConfigNext,
10+
{
11+
files: ["cypress/**/*.js"],
12+
...nodeConfig,
13+
languageOptions: {
14+
globals: {
15+
...Object.fromEntries(
16+
Object.entries(globals.jest).map(([key]) => [key, "off"])
17+
),
18+
...globals.mocha,
19+
...globals.node,
20+
cy: false,
21+
Cypress: false,
22+
},
23+
},
24+
},
25+
];

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@next-core/brick-container": "^3.20.8",
5555
"@next-core/brick-playground": "^1.15.53",
5656
"@next-core/browserslist-config-next": "^1.1.2",
57-
"@next-core/eslint-config-next": "^2.0.26",
57+
"@next-core/eslint-config-next": "^3.0.0",
5858
"@next-core/preview": "^0.7.51",
5959
"@next-core/test-next": "^1.1.9",
6060
"@next-core/yo": "^1.5.92",
@@ -81,19 +81,16 @@
8181
"@types/react-grid-layout": "^1.3.5",
8282
"@types/react-transition-group": "^4.4.6",
8383
"@types/three": "^0.150.1",
84-
"@typescript-eslint/eslint-plugin": "^7.18.0",
8584
"concurrently": "^9.1.0",
8685
"cross-env": "^7.0.3",
8786
"cypress": "^13.7.3",
88-
"eslint": "^8.57.1",
89-
"eslint-plugin-react": "^7.37.2",
90-
"eslint-plugin-react-hooks": "^4.6.2",
87+
"eslint": "^9.22.0",
9188
"husky": "^9.1.6",
9289
"jest-canvas-mock": "^2.5.2",
9390
"lerna": "^8.1.7",
9491
"lint-staged": "^15.2.10",
95-
"prettier": "^3.3.3",
96-
"typescript": "^5.6.3"
92+
"prettier": "^3.5.3",
93+
"typescript": "^5.8.2"
9794
},
9895
"workspaces": [
9996
"bricks/*",

0 commit comments

Comments
 (0)