Skip to content

Commit

Permalink
lint: use getDefaultRules() from Volar TSSLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk authored and coderfreii committed Jun 18, 2024
1 parent 582d707 commit dc8d8a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Download Pages: [GitHub Releases](https://github.com/volarjs/insiders/releases/t

## 2.0.21 (2024-06-08)

### But Fixes
### Bug Fixes

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

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

### But Fixes
### Bug Fixes

- fix(vscode): fix "as"/"instanceof" expressions syntax highlight (#4412)
- fix(language-core): `ForIteratorExpression`'s `returns` property may be undefined (#4418) - Thanks @so1ve
Expand Down
7 changes: 5 additions & 2 deletions tsslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { defineConfig } from '@tsslint/config';
import { getDefaultRules as getDefaultVolarRules } from 'https://raw.githubusercontent.com/volarjs/volar.js/master/tsslint.config.ts';

export default defineConfig({
...(await import('https://raw.githubusercontent.com/volarjs/volar.js/master/tsslint.config.ts')).default,
rules: {
...getDefaultVolarRules(),
},
plugins: [
({ tsconfig }) => ({
resolveRules(rules) {
Expand All @@ -11,5 +14,5 @@ export default defineConfig({
return rules;
},
}),
]
],
});

0 comments on commit dc8d8a3

Please sign in to comment.