mirror of
https://github.com/simoneb/axios-hooks.git
synced 2025-12-08 21:25:56 +00:00
chore: upgrade eslint babel parser (#689)
This commit is contained in:
parent
927ef69585
commit
0b3b32e143
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"parser": "babel-eslint",
|
"parser": "@babel/eslint-parser",
|
||||||
"extends": [
|
"extends": [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:import/recommended",
|
"plugin:import/recommended",
|
||||||
|
|||||||
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -12,17 +12,18 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version-file: '.nvmrc'
|
||||||
- run: npm ci
|
- run: npm i
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npm test -- --coverage
|
- run: npm test -- --coverage
|
||||||
- run: bash <(curl -s https://codecov.io/bash)
|
- run: bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
automerge:
|
automerge:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: fastify/github-action-merge-dependabot@v3
|
- uses: fastify/github-action-merge-dependabot@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ coverage
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
*.test.ts*
|
*.test.ts*
|
||||||
*.test.ssr.ts*
|
*.test.ssr.ts*
|
||||||
|
package-lock.json
|
||||||
|
|||||||
4
.husky/commit-msg
Normal file
4
.husky/commit-msg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx --no-install commitlint --edit $1
|
||||||
4
.husky/post-merge
Normal file
4
.husky/post-merge
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npm i
|
||||||
4
.husky/pre-commit
Normal file
4
.husky/pre-commit
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx --no-install lint-staged
|
||||||
17027
package-lock.json
generated
17027
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -27,7 +27,7 @@
|
|||||||
"clean": "rimraf cjs es",
|
"clean": "rimraf cjs es",
|
||||||
"format": "prettier --write \"{src,test}/**/*.{js?(x),md,ts?(x)}\"",
|
"format": "prettier --write \"{src,test}/**/*.{js?(x),md,ts?(x)}\"",
|
||||||
"lint": "eslint src test",
|
"lint": "eslint src test",
|
||||||
"prepare": "npm run clean && npm run build",
|
"prepare": "npm run clean && npm run build && husky install",
|
||||||
"release": "standard-version",
|
"release": "standard-version",
|
||||||
"pretest": "cp ./test/index.test.jsx ./test/index.test.tsx && cp ./test/index.test.ssr.jsx ./test/index.test.ssr.tsx",
|
"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"
|
"test": "jest --no-cache"
|
||||||
@ -38,12 +38,13 @@
|
|||||||
"lru-cache": "6.0.0"
|
"lru-cache": "6.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"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": {
|
"devDependencies": {
|
||||||
"@babel/cli": "7.16.7",
|
"@babel/cli": "7.16.7",
|
||||||
"@babel/core": "7.16.7",
|
"@babel/core": "7.16.7",
|
||||||
|
"@babel/eslint-parser": "7.16.5",
|
||||||
"@babel/plugin-transform-runtime": "7.16.7",
|
"@babel/plugin-transform-runtime": "7.16.7",
|
||||||
"@babel/preset-env": "7.16.7",
|
"@babel/preset-env": "7.16.7",
|
||||||
"@babel/preset-react": "7.16.7",
|
"@babel/preset-react": "7.16.7",
|
||||||
@ -57,7 +58,6 @@
|
|||||||
"@types/react": "17.0.38",
|
"@types/react": "17.0.38",
|
||||||
"@types/react-dom": "17.0.11",
|
"@types/react-dom": "17.0.11",
|
||||||
"axios": "0.24.0",
|
"axios": "0.24.0",
|
||||||
"babel-eslint": "10.1.0",
|
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"eslint": "7.32.0",
|
"eslint": "7.32.0",
|
||||||
"eslint-config-prettier": "8.3.0",
|
"eslint-config-prettier": "8.3.0",
|
||||||
@ -65,7 +65,7 @@
|
|||||||
"eslint-plugin-prettier": "4.0.0",
|
"eslint-plugin-prettier": "4.0.0",
|
||||||
"eslint-plugin-react": "7.28.0",
|
"eslint-plugin-react": "7.28.0",
|
||||||
"eslint-plugin-react-hooks": "4.3.0",
|
"eslint-plugin-react-hooks": "4.3.0",
|
||||||
"husky": "7.0.4",
|
"husky": "^7.0.0",
|
||||||
"jest": "26.6.3",
|
"jest": "26.6.3",
|
||||||
"lint-staged": "12.1.5",
|
"lint-staged": "12.1.5",
|
||||||
"npm-run-all": "4.1.5",
|
"npm-run-all": "4.1.5",
|
||||||
@ -78,13 +78,6 @@
|
|||||||
"ts-jest": "26.5.6",
|
"ts-jest": "26.5.6",
|
||||||
"typescript": "4.5.4"
|
"typescript": "4.5.4"
|
||||||
},
|
},
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
||||||
"pre-commit": "lint-staged",
|
|
||||||
"post-merge": "npm i"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"{src,test}/**/*.{js?(x),md}": [
|
"{src,test}/**/*.{js?(x),md}": [
|
||||||
"eslint --fix"
|
"eslint --fix"
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"parser": "babel-eslint",
|
|
||||||
"extends": ["plugin:react/recommended"],
|
"extends": ["plugin:react/recommended"],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user