eslint-staged: ignore /graphql
This commit is contained in:
parent
3e7d350248
commit
5e2fd20520
@ -16,7 +16,6 @@
|
|||||||
"test": "dotenv -e .env.local turbo run test",
|
"test": "dotenv -e .env.local turbo run test",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"precommit": "yarn format && yarn lint:fix && yarn test",
|
"precommit": "yarn format && yarn lint:fix && yarn test",
|
||||||
"check-types": "tsc --noEmit --pretty && tsc --project cypress --noEmit --pretty",
|
|
||||||
"graphql:update": "dotenv -e .env.local node ./scripts/graphql-update.js",
|
"graphql:update": "dotenv -e .env.local node ./scripts/graphql-update.js",
|
||||||
"graphql:codegen": "dotenv -e .env.local node ./scripts/graphql-codegen.js"
|
"graphql:codegen": "dotenv -e .env.local node ./scripts/graphql-codegen.js"
|
||||||
},
|
},
|
||||||
@ -37,8 +36,7 @@
|
|||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,jsx,ts,tsx}": [
|
"*.{js,jsx,ts,tsx}": [
|
||||||
"eslint --ext js,jsx,ts,tsx --quiet --fix --",
|
"eslint --ignore-pattern **/graphql/* --ext js,jsx,ts,tsx --quiet --fix --"
|
||||||
"prettier --write"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user