Skip to content

Commit

Permalink
chore(project): update lint-staged (#5112)
Browse files Browse the repository at this point in the history
* chore(project): update lint-staged

* chore: add autofix to stylelint

---------

Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
joshblack and joshblack authored Oct 14, 2024
1 parent 9f37707 commit fe26bc3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build:components.json": "npm run build:components.json -w @primer/react",
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0",
"lint:css": "stylelint '**/*.css' --max-warnings=0",
"lint:css:fix": "stylelint --fix '**/*.css'",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:fix": "npm run lint -- --fix",
"lint:md": "markdownlint-cli2 \"**/*.{md,mdx}\" \"!.github\" \"!.changeset\" \"!**/node_modules/**\" \"!**/CHANGELOG.md\"",
"test": "jest",
Expand Down Expand Up @@ -98,7 +98,13 @@
}
],
"lint-staged": {
"**/*.{js,ts,tsx,md,mdx}": "npm run lint"
},
"packageManager": "[email protected]+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c"
"**/*.{js,ts,tsx,md,mdx}": [
"prettier --cache --write",
"eslint --cache --max-warnings=0 --fix"
],
"**/*.css": [
"prettier --cache --write",
"stylelint --report-needless-disables --report-invalid-scope-disables --allow-empty-input --fix"
]
}
}

0 comments on commit fe26bc3

Please sign in to comment.