chore: upgrade eslint babel parser (#689)

This commit is contained in:
Simone Busoli 2022-01-03 15:24:03 +01:00 committed by GitHub
parent 927ef69585
commit 0b3b32e143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 24 additions and 17045 deletions

View File

@ -1,6 +1,6 @@
{
"root": true,
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"extends": [
"eslint:recommended",
"plugin:import/recommended",

View File

@ -12,17 +12,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
node-version-file: '.nvmrc'
- run: npm i
- run: npm run lint
- run: npm test -- --coverage
- run: bash <(curl -s https://codecov.io/bash)
automerge:
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ coverage
npm-debug.log*
*.test.ts*
*.test.ssr.ts*
package-lock.json

4
.husky/commit-msg Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit $1

4
.husky/post-merge Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm i

4
.husky/pre-commit Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install lint-staged

1
.npmrc
View File

@ -1 +0,0 @@
save-exact=true

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
16

17027
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@
"clean": "rimraf cjs es",
"format": "prettier --write \"{src,test}/**/*.{js?(x),md,ts?(x)}\"",
"lint": "eslint src test",
"prepare": "npm run clean && npm run build",
"prepare": "npm run clean && npm run build && husky install",
"release": "standard-version",
"pretest": "cp ./test/index.test.jsx ./test/index.test.tsx && cp ./test/index.test.ssr.jsx ./test/index.test.ssr.tsx",
"test": "jest --no-cache"
@ -38,12 +38,13 @@
"lru-cache": "6.0.0"
},
"peerDependencies": {
"react": "^16.8.0-0 || ^17.0.0",
"axios": "^0.24.0"
"axios": "^0.24.0",
"react": "^16.8.0-0 || ^17.0.0"
},
"devDependencies": {
"@babel/cli": "7.16.7",
"@babel/core": "7.16.7",
"@babel/eslint-parser": "7.16.5",
"@babel/plugin-transform-runtime": "7.16.7",
"@babel/preset-env": "7.16.7",
"@babel/preset-react": "7.16.7",
@ -57,7 +58,6 @@
"@types/react": "17.0.38",
"@types/react-dom": "17.0.11",
"axios": "0.24.0",
"babel-eslint": "10.1.0",
"cross-env": "7.0.3",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
@ -65,7 +65,7 @@
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.28.0",
"eslint-plugin-react-hooks": "4.3.0",
"husky": "7.0.4",
"husky": "^7.0.0",
"jest": "26.6.3",
"lint-staged": "12.1.5",
"npm-run-all": "4.1.5",
@ -78,13 +78,6 @@
"ts-jest": "26.5.6",
"typescript": "4.5.4"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged",
"post-merge": "npm i"
}
},
"lint-staged": {
"{src,test}/**/*.{js?(x),md}": [
"eslint --fix"

View File

@ -1,5 +1,4 @@
{
"parser": "babel-eslint",
"extends": ["plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {