This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
lint-staged.config.js
51 lines (45 loc) · 1.79 KB
/
lint-staged.config.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
'packages/ui/**/*.{js,jsx,ts,tsx}': [
(fileNames) => `npm run spellcheck ${fileNames.join(' ')}`,
(fileNames) => `npm run lint --workspace=@astral/ui -- ${fileNames}`,
() => 'npm run lint:types --workspace=@astral/ui',
],
'packages/components/**/*.{js,jsx,ts,tsx}': [
(fileNames) => `npm run spellcheck ${fileNames.join(' ')}`,
(fileNames) =>
`npm run lint --workspace=@astral/components -- ${fileNames.join(' ')}`,
() => 'npm run lint:types --workspace=@astral/components',
],
'packages/components/**/styles.{ts,tsx}': [
(fileNames) =>
`npm run lint:styles --workspace=@astral/components -- ${fileNames.join(
' ',
)}`,
],
'packages/icons/**/*.{js,jsx,ts,tsx}': [
(fileNames) => `npm run spellcheck ${fileNames.join(' ')}`,
(fileNames) =>
`npm run lint --workspace=@astral/icons -- ${fileNames.join(' ')}`,
() => 'npm run lint:types --workspace=@astral/icons',
],
'packages/form/**/*.{js,jsx,ts,tsx}': [
(fileNames) => `npm run spellcheck ${fileNames.join(' ')}`,
(fileNames) =>
`npm run lint --workspace=@astral/form -- ${fileNames.join(' ')}`,
() => 'npm run lint:types --workspace=@astral/form',
],
'packages/features/**/*.{js,jsx,ts,tsx}': [
(fileNames) => `npm run spellcheck ${fileNames.join(' ')}`,
(fileNames) =>
`npm run lint --workspace=@astral/features -- ${fileNames.join(' ')}`,
() => 'npm run lint:types --workspace=@astral/features',
],
'packages/features/**/styles.{ts,tsx}': [
(fileNames) =>
`npm run lint:styles --workspace=@astral/features -- ${fileNames.join(
' ',
)}`,
],
'commander/**/*.js': ['npm run lint --workspace=@astral/commander'],
'PRTitleLinter/**/*.js': ['npm run lint --workspace=@astral/PRTitleLinter'],
};