More fixes

This commit is contained in:
Luke Vella 2024-11-09 14:58:45 +00:00
parent 77c6c36e3d
commit ce800df07d
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
3 changed files with 19 additions and 3 deletions

View file

@ -0,0 +1,8 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ["turbo"],
env: {
node: true,
},
};

View file

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

View file

@ -1,5 +1,6 @@
import * as ToastPrimitives from "@radix-ui/react-toast"; import * as ToastPrimitives from "@radix-ui/react-toast";
import { type VariantProps, cva } from "class-variance-authority"; import type { VariantProps } from "class-variance-authority";
import { cva } from "class-variance-authority";
import { X } from "lucide-react"; import { X } from "lucide-react";
import * as React from "react"; import * as React from "react";