default
constdefault:object
Defined in: index.ts:53
Type Declaration
Section titled “Type Declaration”*.{js,jsx}
Section titled “*.{js,jsx}”*.{js,jsx}:
string[]
Formats staged JavaScript files with Prettier, then lints them with ESLint.
*.{ts,tsx}
Section titled “*.{ts,tsx}”*.{ts,tsx}:
string[]
Formats staged TypeScript files with Prettier, then lints them with ESLint.
*.css:
string="stylelint --fix"
Fixes staged CSS files with stylelint --fix.
*.md:
string[]
Formats staged Markdown files with Prettier.
*.mdx:
string[]
Formats staged MDX files with Prettier.
*.scss
Section titled “*.scss”*.scss:
string="stylelint --syntax=scss --fix"
Fixes staged SCSS files with stylelint --syntax=scss --fix.
package.json
Section titled “package.json”package.json:
string="sort-package-json"
Sorts the keys of a staged package.json with sort-package-json.
https://github.com/lint-staged/lint-staged?tab=readme-ov-file#configuration