-
Notifications
You must be signed in to change notification settings - Fork 1
/
.lintstagedrc.js
27 lines (24 loc) · 967 Bytes
/
.lintstagedrc.js
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
module.exports = {
// Prettier
// FIXME: This shouldn't be formatting package.json, ugh
'./*.{ts,js,json,md}': ['prettier --ignore-path .gitignore --write'],
'packages/bs-excmd/**/*.{js,json,md}': [
'prettier --ignore-path packages/bs-excmd/.gitignore --write',
],
'packages/excmd/**/*.{ts,js,json,css,md}': [
'prettier --ignore-path packages/excmd/.gitignore --write',
],
// Jest
'**/*.{ml,mli,mly,ts,js}': './scripts/invokeJestWithBucklescriptPaths.js',
// Dune, ocamlformat, and odoc
'packages/bs-excmd/**/*.{ml,mli,mld}': [
'cd packages/bs-excmd/ && npm run format:ml ; :',
'cd packages/bs-excmd/ && npm run test:ml ; :',
'cd packages/bs-excmd/ && npm run build:doc ; :',
],
// Typedoc
'packages/excmd/**/*.{ts,js,md}': [
'cd packages/excmd/ && npm run build:docs ; :',
'git add docs/{{index,modules,globals}.html,classes,interfaces,modules,assets/js/search.js} ; :',
],
}