Files
2026-09-11 15:53:10 +08:00

35 lines
774 B
TypeScript

// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';
define.fmt({
plugins: ['heading-case'],
singleQuote: true,
sortPackageJson: true,
ignorePatterns: ['skills-lock.yaml'],
});
define.staged({
'*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}': ['rs lint --fix', 'rs fmt'],
'*.{json,jsonc,json5,md,mdx,css,scss,less,html,yml,yaml}': 'rs fmt',
});
define.lint(({ ts }) => [
{
ignores: ['skills/**/scripts/*'],
},
ts.configs.recommended,
{
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
},
},
{
files: ['**/*.cjs'],
rules: {
'@typescript-eslint/no-require-imports': 'off',
},
},
]);