removed eslint no use
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
# `@turbo/eslint-config`
|
|
||||||
|
|
||||||
Collection of internal eslint configurations.
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
import js from "@eslint/js";
|
|
||||||
import eslintConfigPrettier from "eslint-config-prettier";
|
|
||||||
import turboPlugin from "eslint-plugin-turbo";
|
|
||||||
import tseslint from "typescript-eslint";
|
|
||||||
import onlyWarn from "eslint-plugin-only-warn";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A shared ESLint configuration for the repository.
|
|
||||||
*
|
|
||||||
* @type {import("eslint").Linter.Config}
|
|
||||||
* */
|
|
||||||
export const config = [
|
|
||||||
js.configs.recommended,
|
|
||||||
eslintConfigPrettier,
|
|
||||||
...tseslint.configs.recommended,
|
|
||||||
{
|
|
||||||
plugins: {
|
|
||||||
turbo: turboPlugin,
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
"turbo/no-undeclared-env-vars": "warn",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
plugins: {
|
|
||||||
onlyWarn,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
ignores: ["dist/**"],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
import js from "@eslint/js";
|
|
||||||
import eslintConfigPrettier from "eslint-config-prettier";
|
|
||||||
import tseslint from "typescript-eslint";
|
|
||||||
import pluginReactHooks from "eslint-plugin-react-hooks";
|
|
||||||
import pluginReact from "eslint-plugin-react";
|
|
||||||
import globals from "globals";
|
|
||||||
import pluginNext from "@next/eslint-plugin-next";
|
|
||||||
import { config as baseConfig } from "./base.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A custom ESLint configuration for libraries that use Next.js.
|
|
||||||
*
|
|
||||||
* @type {import("eslint").Linter.Config}
|
|
||||||
* */
|
|
||||||
export const nextJsConfig = [
|
|
||||||
...baseConfig,
|
|
||||||
js.configs.recommended,
|
|
||||||
eslintConfigPrettier,
|
|
||||||
...tseslint.configs.recommended,
|
|
||||||
{
|
|
||||||
...pluginReact.configs.flat.recommended,
|
|
||||||
languageOptions: {
|
|
||||||
...pluginReact.configs.flat.recommended.languageOptions,
|
|
||||||
globals: {
|
|
||||||
...globals.serviceworker,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
plugins: {
|
|
||||||
"@next/next": pluginNext,
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
...pluginNext.configs.recommended.rules,
|
|
||||||
...pluginNext.configs["core-web-vitals"].rules,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
plugins: {
|
|
||||||
"react-hooks": pluginReactHooks,
|
|
||||||
},
|
|
||||||
settings: { react: { version: "detect" } },
|
|
||||||
rules: {
|
|
||||||
...pluginReactHooks.configs.recommended.rules,
|
|
||||||
// React scope no longer necessary with new JSX transform.
|
|
||||||
"react/react-in-jsx-scope": "off",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
];
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@repo/eslint-config",
|
|
||||||
"version": "0.0.0",
|
|
||||||
"type": "module",
|
|
||||||
"private": true,
|
|
||||||
"exports": {
|
|
||||||
"./base": "./base.js",
|
|
||||||
"./next-js": "./next.js",
|
|
||||||
"./react-internal": "./react-internal.js"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@eslint/js": "^9.26.0",
|
|
||||||
"@next/eslint-plugin-next": "^15.3.0",
|
|
||||||
"eslint": "^9.26.0",
|
|
||||||
"eslint-config-prettier": "^10.1.1",
|
|
||||||
"eslint-plugin-only-warn": "^1.1.0",
|
|
||||||
"eslint-plugin-react": "^7.37.4",
|
|
||||||
"eslint-plugin-react-hooks": "^5.2.0",
|
|
||||||
"eslint-plugin-turbo": "^2.5.0",
|
|
||||||
"globals": "^16.0.0",
|
|
||||||
"typescript": "^5.8.2",
|
|
||||||
"typescript-eslint": "^8.31.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
39
packages/eslint-config/react-internal.js
vendored
39
packages/eslint-config/react-internal.js
vendored
@@ -1,39 +0,0 @@
|
|||||||
import js from "@eslint/js";
|
|
||||||
import eslintConfigPrettier from "eslint-config-prettier";
|
|
||||||
import tseslint from "typescript-eslint";
|
|
||||||
import pluginReactHooks from "eslint-plugin-react-hooks";
|
|
||||||
import pluginReact from "eslint-plugin-react";
|
|
||||||
import globals from "globals";
|
|
||||||
import { config as baseConfig } from "./base.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A custom ESLint configuration for libraries that use React.
|
|
||||||
*
|
|
||||||
* @type {import("eslint").Linter.Config} */
|
|
||||||
export const config = [
|
|
||||||
...baseConfig,
|
|
||||||
js.configs.recommended,
|
|
||||||
eslintConfigPrettier,
|
|
||||||
...tseslint.configs.recommended,
|
|
||||||
pluginReact.configs.flat.recommended,
|
|
||||||
{
|
|
||||||
languageOptions: {
|
|
||||||
...pluginReact.configs.flat.recommended.languageOptions,
|
|
||||||
globals: {
|
|
||||||
...globals.serviceworker,
|
|
||||||
...globals.browser,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
plugins: {
|
|
||||||
"react-hooks": pluginReactHooks,
|
|
||||||
},
|
|
||||||
settings: { react: { version: "detect" } },
|
|
||||||
rules: {
|
|
||||||
...pluginReactHooks.configs.recommended.rules,
|
|
||||||
// React scope no longer necessary with new JSX transform.
|
|
||||||
"react/react-in-jsx-scope": "off",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
];
|
|
||||||
Reference in New Issue
Block a user