Skip to content

Commit

Permalink
Merge pull request #45 from hemilabs/fix-lint-staged
Browse files Browse the repository at this point in the history
Fix lint-staged config
  • Loading branch information
gabmontes authored Oct 18, 2024
2 parents 53878d8 + 14f3d2a commit 7fdb1a0
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"build": "npm run lerna:run build",
"deps:check": "npm run lerna:run deps:check",
"format:check": "prettier --check .",
"postinstall": "lerna bootstrap",
"lerna:run": "lerna run --stream --concurrency 1",
"lint": "eslint --cache --quiet .",
"postinstall": "lerna bootstrap",
"test": "npm run lerna:run test",
"test:e2e": "npm run lerna:run test:e2e"
},
Expand Down Expand Up @@ -41,31 +41,31 @@
],
"overrides": [
{
"files": [
"packages/**/*.js"
],
"extends": [
"bloq/node",
"prettier"
],
"files": [
"packages/**/*.js"
]
},
{
"files": [
"*.spec.js"
],
"extends": [
"bloq/mocha",
"prettier"
],
"files": [
"*.spec.js"
]
},
{
"files": [
"site/**/*.js"
],
"extends": [
"bloq/next",
"prettier"
],
"files": [
"site/**/*.js"
],
"rules": {
"@next/next/no-html-link-for-pages": [
"warn",
Expand All @@ -89,8 +89,13 @@
}
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{css,js,json,md}": "prettier --write"
"!(*.js)": [
"prettier --ignore-unknown --write"
],
"*.js": [
"eslint --cache --fix --quiet",
"prettier --write"
]
},
"prettier": {
"arrowParens": "avoid",
Expand Down

0 comments on commit 7fdb1a0

Please sign in to comment.