Skip to content

Commit aab80ba

Browse files
committed
chore: bump rslint to 0.3.1 & migrate rslint.json to rslint.config.ts
1 parent fda1ca2 commit aab80ba

4 files changed

Lines changed: 60 additions & 85 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"devDependencies": {
3434
"@rsbuild/config": "workspace:*",
35-
"@rslint/core": "0.2.3",
35+
"@rslint/core": "0.3.1",
3636
"@rstest/adapter-rslib": "^0.2.1",
3737
"@rstest/core": "^0.9.2",
3838
"@scripts/test-helper": "workspace:*",

pnpm-lock.yaml

Lines changed: 35 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rslint.config.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { defineConfig, ts } from '@rslint/core';
2+
3+
export default defineConfig([
4+
{
5+
// Global ignores — entry with only `ignores` excludes matching files from all rules
6+
ignores: ['**/dist/**', '**/dist-types/**', '**/compiled/**'],
7+
},
8+
ts.configs.recommended,
9+
{
10+
languageOptions: {
11+
parserOptions: {
12+
project: ['./packages/*/tsconfig.json'],
13+
},
14+
},
15+
rules: {
16+
'@typescript-eslint/no-unused-vars': 'off',
17+
'@typescript-eslint/no-explicit-any': 'off',
18+
'@typescript-eslint/ban-ts-comment': 'off',
19+
'@typescript-eslint/no-require-imports': 'off',
20+
'no-console': 'off',
21+
'no-constant-binary-expression': 'off',
22+
},
23+
},
24+
]);

rslint.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)