-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlint-staged.config.js
More file actions
27 lines (27 loc) · 1.12 KB
/
lint-staged.config.js
File metadata and controls
27 lines (27 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export default {
'*.{ts,tsx,js,json}': filenames => [
'npm run build',
`npm run format:staged -- ${filenames.join(' ')}`,
`npm run lint:staged -- ${filenames.join(' ')}`,
],
'*.md': filenames => [`npm run format:staged -- ${filenames.join(' ')}`],
'src/components/Common/UI/**/*Types.ts': () => [
'npm run adapter:docs:generate',
'npm run format:staged -- docs/component-adapter/component-inventory.md',
'git add docs/component-adapter/component-inventory.md',
],
'src/contexts/ComponentAdapter/componentAdapterTypes.ts': () => [
'npm run adapter:docs:generate',
'npm run format:staged -- docs/component-adapter/component-inventory.md',
'git add docs/component-adapter/component-inventory.md',
],
'build/generateAdapterPropDocs.ts': () => [
'npm run adapter:docs:generate',
'npm run format:staged -- docs/component-adapter/component-inventory.md',
'git add docs/component-adapter/component-inventory.md',
],
'src/components/**/*.{ts,tsx}': () => [
'npm run endpoints:derive',
'git add docs/reference/endpoint-inventory.json docs/reference/endpoint-reference.md',
],
}