mirror of
https://github.com/rstackjs/agent-skills.git
synced 2026-09-14 20:07:05 +08:00
35 lines
774 B
TypeScript
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',
|
|
},
|
|
},
|
|
]);
|