Add/eslint plugin unused imports (#7102)
* Re added debug endpoint * Update me.ts * Adds eslint-plugin-unused-imports * Linting
This commit is contained in:
1 parent
e8cf92361a
commit
9d3540511b
8 files changed
+23
-5
No files matched your search
@@ -2,6 +2,7 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ["plugin:playwright/playwright-test", "next", "plugin:prettier/recommended", "turbo"],
|
||||
plugins: ["unused-imports"],
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: ["./tsconfig.json"],
|
||||
@@ -18,6 +19,12 @@ module.exports = {
|
||||
"jsx-a11y/role-supports-aria-props": "off", // @see https://github.com/vercel/next.js/issues/27989#issuecomment-897638654
|
||||
"react/jsx-curly-brace-presence": ["error", { props: "never", children: "never" }],
|
||||
"react/self-closing-comp": ["error", { component: true, html: true }],
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"unused-imports/no-unused-vars": [
|
||||
"warn",
|
||||
{ vars: "all", varsIgnorePattern: "^_", args: "after-used", argsIgnorePattern: "^_" },
|
||||
],
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
||||
"@typescript-eslint/parser": "^5.33.1",
|
||||
"eslint": "^8.22.0",
|
||||
"eslint-plugin-unused-imports": "^2.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-plugin-tailwindcss": "^0.1.13",
|
||||
"tailwind-scrollbar": "^2.0.1",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useState, useEffect, RefObject, useRef } from "react";
|
||||
import { useState, useEffect, RefObject } from "react";
|
||||
|
||||
export function useKeyPress(
|
||||
targetKey: string,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import appStore from "@calcom/app-store";
|
||||
import { EventTypeAppsList } from "@calcom/app-store/utils";
|
||||
|
||||
import { AppCategories, Payment, Prisma } from ".prisma/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useEffect, useRef, useState } from "react";
|
||||
import React, { useCallback, useRef, useState } from "react";
|
||||
|
||||
import { classNames as cn } from "@calcom/lib";
|
||||
import { useKeyPress } from "@calcom/lib/hooks/useKeyPress";
|
||||
|
||||
Reference in new issue
Block a user