Skip to content

Commit 75327a4

Browse files
committed
lint: use getDefaultRules() from Volar TSSLint config
1 parent b12444c commit 75327a4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Download Pages: [GitHub Releases](https://github.com/volarjs/insiders/releases/t
1212

1313
## 2.0.21 (2024-06-08)
1414

15-
### But Fixes
15+
### Bug Fixes
1616

1717
- fix(typescript-plugin): TS plugin cause type checking broken in .ts files (#4453)
1818

@@ -33,7 +33,7 @@ Download Pages: [GitHub Releases](https://github.com/volarjs/insiders/releases/t
3333
- feat(language-service): add localization support for zh-hk/zh-tw
3434
- feat(vscode): enable syntax highlighting of cue code blocks in MDX (#4425) - Thanks @remcohaszing
3535

36-
### But Fixes
36+
### Bug Fixes
3737

3838
- fix(vscode): fix "as"/"instanceof" expressions syntax highlight (#4412)
3939
- fix(language-core): `ForIteratorExpression`'s `returns` property may be undefined (#4418) - Thanks @so1ve

tsslint.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { defineConfig } from '@tsslint/config';
2+
import { getDefaultRules as getDefaultVolarRules } from 'https://raw.githubusercontent.com/volarjs/volar.js/master/tsslint.config.ts';
23

34
export default defineConfig({
4-
...(await import('https://raw.githubusercontent.com/volarjs/volar.js/master/tsslint.config.ts')).default,
5+
rules: {
6+
...getDefaultVolarRules(),
7+
},
58
plugins: [
69
({ tsconfig }) => ({
710
resolveRules(rules) {
@@ -11,5 +14,5 @@ export default defineConfig({
1114
return rules;
1215
},
1316
}),
14-
]
17+
],
1518
});

0 commit comments

Comments
 (0)