Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(linting): move stylelint
lint-staged
command to `calcite-comp…
…onents` to prevent config errors (#11613) **Related Issue:** N/A ## Summary This came up in #11608 where committing CSS would cause the following error: ``` ✔ Backed up original state in git stash (43c49791f) ⚠ Running tasks for staged files... ❯ .lintstagedrc.js — 12 files ✔ *.{json,html,yml} — 3 files ❯ *.css — 2 files ✖ stylelint --fix [FAILED] ◼ prettier --write ↓ *.md — no files ↓ Skipped because of errors from tasks. ✔ Reverting to original state because of errors... ✔ Cleaning up temporary files... ✖ stylelint --fix: Error: No configuration provided for /.../calcite-design-system/examples/components/preact/src/routes/home/style.module.css at configurationError (/.../calcite-design-system/node_modules/stylelint/lib/utils/configurationError.mjs:12:49) at getConfigForFile (/.../calcite-design-system/node_modules/stylelint/lib/getConfigForFile.mjs:67:4) at async isPathIgnored (/.../calcite-design-system/node_modules/stylelint/lib/isPathIgnored.mjs:23:17) at async lintSource (/.../calcite-design-system/node_modules/stylelint/lib/lintSource.mjs:43:20) at async /.../calcite-design-system/node_modules/stylelint/lib/standalone.mjs:241:27 at async Promise.all (index 0) at async standalone (/.../calcite-design-system/node_modules/stylelint/lib/standalone.mjs:286:22) husky - pre-commit script failed (code 1) ```
- Loading branch information