Skip to content

Commit c2dde3a

Browse files
committed
Update hypothesis frontend build and eslint config packages
1 parent fc2569c commit c2dde3a

File tree

4 files changed

+137
-97
lines changed

4 files changed

+137
-97
lines changed

eslint.config.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import hypothesisBase from 'eslint-config-hypothesis/base';
22
import hypothesisJSX from 'eslint-config-hypothesis/jsx';
33
import hypothesisTS from 'eslint-config-hypothesis/ts';
4+
import { defineConfig, globalIgnores } from 'eslint/config';
45
import globals from 'globals';
56

6-
export default [
7-
{
8-
ignores: ['.yalc/**', 'lib/**', 'build/**'],
9-
},
7+
export default defineConfig(
8+
globalIgnores(['.yalc/**', 'lib/**', 'build/**']),
109

11-
...hypothesisBase,
12-
...hypothesisJSX,
13-
...hypothesisTS,
10+
hypothesisBase,
11+
hypothesisJSX,
12+
hypothesisTS,
1413

1514
// Icons
1615
{
@@ -32,4 +31,4 @@ export default [
3231
},
3332
},
3433
},
35-
];
34+
);

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@babel/preset-env": "^7.1.6",
1111
"@babel/preset-react": "^7.0.0",
1212
"@babel/preset-typescript": "^7.18.6",
13-
"@hypothesis/frontend-build": "^3.2.1",
13+
"@hypothesis/frontend-build": "^4.0.0",
1414
"@hypothesis/frontend-testing": "^1.6.0",
1515
"@rollup/plugin-babel": "^6.0.0",
1616
"@rollup/plugin-commonjs": "^28.0.0",
@@ -21,6 +21,7 @@
2121
"@trivago/prettier-plugin-sort-imports": "^5.2.0",
2222
"@vitest/browser": "^3.1.1",
2323
"@vitest/coverage-istanbul": "^3.1.1",
24+
"@vitest/eslint-plugin": "^1.1.44",
2425
"autoprefixer": "^10.3.7",
2526
"axe-core": "^4.0.0",
2627
"babel-plugin-istanbul": "^7.0.0",
@@ -30,10 +31,9 @@
3031
"classnames": "^2.2.6",
3132
"enzyme": "^3.8.0",
3233
"enzyme-adapter-preact-pure": "^4.0.1",
33-
"eslint": "^9.12.0",
34-
"eslint-config-hypothesis": "^3.1.0",
34+
"eslint": "^9.26.0",
35+
"eslint-config-hypothesis": "^3.3.1",
3536
"eslint-plugin-jsx-a11y": "^6.10.0",
36-
"eslint-plugin-mocha": "^10.5.0",
3737
"eslint-plugin-react": "^7.37.1",
3838
"eslint-plugin-react-hooks": "^5.0.0",
3939
"express": "^5.1.0",

src/components/test/common-tests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable mocha/no-exports */
21
import { checkAccessibility, mount } from '@hypothesis/frontend-testing';
32
import { createRef } from 'preact';
43

0 commit comments

Comments
 (0)