diff --git a/.lintstagedrc.json b/.lintstagedrc.json deleted file mode 100644 index 4a4fd3e..0000000 --- a/.lintstagedrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "src/**/*.{js,ts,tsx}": ["yarn lint"], - "src/**/*.{json,mdx}": ["yarn prettier"] -} diff --git a/package.json b/package.json index 9b54aca..ab965ad 100644 --- a/package.json +++ b/package.json @@ -16,10 +16,16 @@ "test:coverage": "jest -i --coverage", "test:watch": "jest -i --watchAll", "prepare": "husky install", - "lint-staged": "lint-staged", "commit": "git-cz", "chromatic": "npx chromatic --project-token=CHROMATIC_PROJECT_TOKEN" }, + "lint-staged": { + "src/**/*.+(js|jsx|ts|tsx|md|mdx|yml|yaml)": [ + "eslint --fix", + "prettier --write", + "yarn test --findRelatedTests --bail --passWithNoTests" + ] + }, "repository": { "type": "git", "url": "git+https://github.com/iurynogueira/ion-react.git"