Skip to content

default

const default: object

Defined in: index.ts:53

*.{js,jsx}: string[]

Formats staged JavaScript files with Prettier, then lints them with ESLint.

*.{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: string = "stylelint --syntax=scss --fix"

Fixes staged SCSS files with stylelint --syntax=scss --fix.

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