mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-27 13:17:51 +02:00
More fixes
This commit is contained in:
parent
77c6c36e3d
commit
ce800df07d
3 changed files with 19 additions and 3 deletions
8
packages/eslint-config/.eslintrc.js
Normal file
8
packages/eslint-config/.eslintrc.js
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/** @type {import("eslint").Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: ["turbo"],
|
||||||
|
env: {
|
||||||
|
node: true,
|
||||||
|
},
|
||||||
|
};
|
|
@ -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",
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue