Skip to content

Commit 4e3b05b

Browse files
committed
Enable eslint for util.ts
1 parent aa67615 commit 4e3b05b

File tree

5 files changed

+367
-44
lines changed

5 files changed

+367
-44
lines changed

.eslintrc.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ module.exports = {
1919
],
2020
parser: "vue-eslint-parser",
2121
parserOptions: {
22-
parser: "@babel/eslint-parser",
22+
parser: "@typescript-eslint/parser",
2323
sourceType: "module",
2424
requireConfigFile: false,
2525
},
2626
plugins: [
27-
"jsdoc"
27+
"jsdoc",
28+
"@typescript-eslint",
2829
],
2930
rules: {
3031
"yoda": "error",
@@ -163,6 +164,17 @@ module.exports = {
163164
context: true,
164165
jestPuppeteer: true,
165166
},
167+
},
168+
169+
// Override for TypeScript
170+
{
171+
"files": [
172+
"**/*.ts",
173+
],
174+
"rules": {
175+
"jsdoc/require-returns-type": "off",
176+
"jsdoc/require-param-type": "off",
177+
}
166178
}
167179
]
168180
};

package-lock.json

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

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@
152152
"@fortawesome/vue-fontawesome": "~3.0.0-5",
153153
"@popperjs/core": "~2.10.2",
154154
"@types/bootstrap": "~5.1.9",
155+
"@typescript-eslint/eslint-plugin": "^6.7.5",
156+
"@typescript-eslint/parser": "^6.7.5",
155157
"@vitejs/plugin-vue": "~4.2.3",
156158
"@vue/compiler-sfc": "~3.3.4",
157159
"@vuepic/vue-datepicker": "~3.4.8",

0 commit comments

Comments
 (0)