Skip to content

Commit

Permalink
chore: only run checks in lint-staged config
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Aug 25, 2022
1 parent 9210257 commit 172d10c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ module.exports = {
/**
* Check code style.
*/
[`**/*.{${exts.join(',')}}`]: ['yarn fix:lint'],
[`**/*.{${exts.join(',')}}`]: ['yarn check:lint'],

/**
* Check code formatting and spelling.
*/
'*': ['yarn fix:format', 'yarn check:spelling'],
'*': ['yarn check:format', 'yarn check:spelling'],

/**
* Check types.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "unbuild",
"check:ci": "yarn fix:cg && yarn check:spelling && yarn check:types && yarn test && NODE_ENV=production yarn pack -o %s-%v.tgz && yarn clean:pack",
"check:ci": "yarn dedupe --check && yarn check:format && yarn check:lint && yarn check:spelling && yarn check:types && NODE_ENV=production yarn pack -o %s-%v.tgz && yarn clean:pack && yarn test",
"check:format": "prettier --check .",
"check:lint": "eslint --cache --exit-on-fatal-error --ext cjs,cts,gql,json,md,mjs,ts,yml --max-warnings 0 .",
"check:spelling": "cspell lint --color --no-progress --relative $@ \"**\"",
Expand Down

0 comments on commit 172d10c

Please sign in to comment.