🎨 Add linting and prettier to more places (#1432)

This commit is contained in:
Luke Vella 2024-11-09 15:43:25 +00:00 committed by GitHub
parent de6963db4f
commit ee68d80026
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
70 changed files with 136 additions and 141 deletions

View file

@ -18,7 +18,7 @@ module.exports = function (workspaceDirPath) {
},
parserOptions: {
tsconfigRootDir: workspaceDirPath,
project: `${workspaceDirPath}/tsconfig.json`,
project: workspaceDirPath + "/tsconfig.json",
},
overrides: [
{
@ -28,6 +28,14 @@ module.exports = function (workspaceDirPath) {
extends: ["plugin:@typescript-eslint/recommended"],
rules: {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
prefer: "type-imports",
fixStyle: "separate-type-imports",
disallowTypeAnnotations: true,
},
],
},
},
],
@ -39,7 +47,6 @@ module.exports = function (workspaceDirPath) {
"import/no-duplicates": "error",
"no-console": ["error", { allow: ["warn", "error", "info"] }],
"no-unused-vars": "error",
"@typescript-eslint/consistent-type-imports": "error",
},
};
};