generated from boneskull/boneskull-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.lintstagedrc.js
17 lines (17 loc) · 703 Bytes
/
.lintstagedrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = {
'*.{js,ts}': ['eslint --fix', 'prettier --write'],
'!(_*).md': ['markdownlint-cli2-fix', 'prettier --write'],
'*.ya?ml': ['prettier --write'],
/**
* This _should_ match if the options change, the rules change, the
* schema-generating script changes, or we've had dependency changes.
*
* @returns Command to update schema
*/
'(./packages/plugin-default/src/**/*.ts|packages/midnight-smoker/src/options.ts|./packages/midnight-smoker/scripts/generate-schema.ts|package.json|package-lock.json)':
() => [
'npm run update-schema',
'git add -A packages/midnight-smoker/schema/midnight-smoker.schema.json',
],
'*.json': ['prettier --write'],
};