Skip to content

Commit c15e9a6

Browse files
committed
chore: update eslint & jest configs
1 parent 0fe1e08 commit c15e9a6

File tree

4 files changed

+111
-7
lines changed

4 files changed

+111
-7
lines changed

.eslintrc.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@
66
"es6": true,
77
"jest/globals": true
88
},
9-
"parser": "babel-eslint",
9+
"parser": "@babel/eslint-parser",
1010
"parserOptions": {
1111
"ecmaVersion": 2018,
1212
"sourceType": "module"
1313
},
1414
"plugins": ["jest"],
15-
"extends": [
16-
"eslint:recommended",
17-
"prettier",
18-
"plugin:jest/recommended"
19-
],
15+
"extends": ["eslint:recommended", "prettier", "plugin:jest/recommended"],
2016
"globals": {
2117
"Atomics": "readonly",
2218
"SharedArrayBuffer": "readonly"

jest.config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"clearMocks": true,
33
"restoreMocks": true,
44
"testMatch": ["<rootDir>/__tests__/*.spec.js"],
5-
"testURL": "http://localhost/",
5+
"testEnvironmentOptions": {
6+
"url": "http://localhost/"
7+
},
68
"verbose": true
79
}

package-lock.json

Lines changed: 105 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"@babel/core": "^7.20.5",
23+
"@babel/eslint-parser": "^7.19.1",
2324
"@babel/preset-env": "^7.20.2",
2425
"@release-it/conventional-changelog": "^5.1.1",
2526
"@rollup/plugin-babel": "^6.0.3",

0 commit comments

Comments
 (0)