Skip to content

Commit 4488f64

Browse files
committed
feat(lint): enable eqeqeq rule
1 parent 83b8d8b commit 4488f64

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/typescript-plugin/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ export = createLanguageServicePlugin(
7272
projectService.logger.info('Vue: called handler processing ' + info.project.projectKind);
7373

7474
const session = info.session;
75-
if (session == undefined) {
75+
if (!session) {
7676
projectService.logger.info('Vue: there is no session in info.');
7777
return;
7878
}
79-
if (session.addProtocolHandler == undefined) {
79+
if (!session.addProtocolHandler) {
8080
// addProtocolHandler was introduced in TS 4.4 or 4.5 in 2021, see https://github.com/microsoft/TypeScript/issues/43893
8181
projectService.logger.info('Vue: there is no addProtocolHandler method.');
8282
return;

tsslint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export default defineConfig({
8787
// Project-specific rules
8888
...await defineRules({
8989
'curly': true,
90+
'eqeqeq': true,
9091
'no-unused-expressions': true,
9192
'require-await': true,
9293
'@typescript-eslint/consistent-type-imports': [{

0 commit comments

Comments
 (0)