Skip to content

Commit

Permalink
chore(project): fix lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed Apr 1, 2022
1 parent 1809bde commit 2babadb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "husky install",
"lint": "lint-staged",
"lint": "lint-staged --cwd .",
"check-spelling": "cspell --no-progress \"**/*.{md,ts,tsx,js,css,less,json,yml,yaml,html,sh}\"",
"storybook": "pnpm --filter flat-components start",
"start": "node scripts/launch/index.js",
Expand Down
5 changes: 0 additions & 5 deletions packages/flat-i18n/.lintstagedrc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/flat-i18n/.lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require("path");

module.exports = {
"*.json": `node ${JSON.stringify(path.resolve(__dirname, "./scripts/check.js"))}`,
};

0 comments on commit 2babadb

Please sign in to comment.