Skip to content

Commit 0b3b32e

Browse files
authored
chore: upgrade eslint babel parser (#689)
1 parent 927ef69 commit 0b3b32e

File tree

11 files changed

+24
-17045
lines changed

11 files changed

+24
-17045
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": true,
3-
"parser": "babel-eslint",
3+
"parser": "@babel/eslint-parser",
44
"extends": [
55
"eslint:recommended",
66
"plugin:import/recommended",

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-node@v2
1414
with:
15-
node-version: 16
16-
- run: npm ci
15+
node-version-file: '.nvmrc'
16+
- run: npm i
1717
- run: npm run lint
1818
- run: npm test -- --coverage
1919
- run: bash <(curl -s https://codecov.io/bash)
20+
2021
automerge:
2122
needs: build
2223
runs-on: ubuntu-latest
2324
permissions:
2425
pull-requests: write
25-
contents: write
26+
contents: write
2627
steps:
2728
- uses: fastify/github-action-merge-dependabot@v3
2829
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ coverage
55
npm-debug.log*
66
*.test.ts*
77
*.test.ssr.ts*
8+
package-lock.json

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/post-merge

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm i

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16

0 commit comments

Comments
 (0)