-
Notifications
You must be signed in to change notification settings - Fork 588
/
.lintstagedrc.js
33 lines (33 loc) · 1.17 KB
/
.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
28
29
30
31
32
33
export default {
"*.{js,cjs,.mjs,jsx}": ["prettier --write", "eslint --cache --fix"],
"scripts/**/*.{ts,tsx}": [
"prettier --write",
"eslint --cache --fix",
() => "tsc -p scripts/tsconfig.json --noEmit",
],
"frontend/interface/**/*.{ts,tsx}": [
"prettier --write",
"eslint --cache --fix",
() => "tsc -p frontend/interface/tsconfig.json --noEmit",
],
"frontend/ui/**/*.{ts,tsx}": [
"prettier --write",
"eslint --cache --fix",
() => "tsc -p frontend/ui/tsconfig.json --noEmit",
],
"frontend/nyanpasu/**/*.{ts,tsx}": [
"prettier --write",
"eslint --cache --fix",
() => "tsc -p frontend/nyanpasu/tsconfig.json --noEmit",
],
"backend/**/*.{rs,toml}": [
() =>
"cargo clippy --manifest-path=./backend/Cargo.toml --all-targets --all-features",
() => "cargo fmt --manifest-path ./backend/Cargo.toml --all",
// () => 'cargo test --manifest-path=./backend/Cargo.toml',
// () => "cargo fmt --manifest-path=./backend/Cargo.toml --all",
],
"*.{html,sass,scss,less}": ["prettier --write", "stylelint --fix"],
"package.json": ["prettier --write"],
"*.{md,json,jsonc,json5,yaml,yml,toml}": ["prettier --write"],
};