-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathrstack.config.ts
More file actions
40 lines (37 loc) · 1.01 KB
/
Copy pathrstack.config.ts
File metadata and controls
40 lines (37 loc) · 1.01 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
28
29
30
31
32
33
34
35
36
37
38
39
40
import { define } from 'rstack';
define.lint(({ ts }) => [
{
ignores: ['**/dist-*/**', '**/auto-imports.d.ts', '**/components.d.ts', '**/__snapshots__/**'],
},
ts.configs.recommended,
{
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-object-type': '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',
'prefer-const': 'off',
'prefer-spread': 'off',
},
},
]);
define.fmt({
printWidth: 100,
singleQuote: true,
sortPackageJson: true,
ignorePatterns: [
'dist-*',
'auto-imports.d.ts',
'components.d.ts',
'**/@mf-types',
'**/http-import.lock.data',
'**/__snapshots__',
'routeTree.gen.ts',
],
});
define.staged({
'*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx}': ['rs lint --fix', 'rs fmt'],
'*.{json,jsonc,md,mdx,yml,yaml,css,scss,less,html,vue}': 'rs fmt',
});