-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Expand file tree
/
Copy pathrstack.config.ts
More file actions
34 lines (31 loc) · 818 Bytes
/
Copy pathrstack.config.ts
File metadata and controls
34 lines (31 loc) · 818 Bytes
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
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';
define.lint(({ js, ts }) => [
js.configs.recommended,
ts.configs.recommended,
{
languageOptions: {
parserOptions: {
project: ['./packages/*/tsconfig.json'],
},
},
rules: {
'no-undef': 'off',
'no-useless-assignment': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
]);
define.fmt({
singleQuote: true,
proseWrap: 'never',
});
define.staged({
'*.md': 'rs fmt',
'*.{ts,tsx,js,vue,less}': 'rs fmt',
'*.{ts,tsx,js,mjs,cjs}': 'rs lint --fix',
});