mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-23 13:56:18 +02:00
🎨 Add linting and prettier to more places (#1432)
This commit is contained in:
parent
de6963db4f
commit
ee68d80026
70 changed files with 136 additions and 141 deletions
|
@ -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",
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue