diff --git a/crates/compiler/tests/fixtures/tree_shake/self-executed/decl/var_side_effect/a.js b/crates/compiler/tests/fixtures/tree_shake/self-executed/decl/var_side_effect/a.js index a2a8ed45e7..da47f29baf 100644 --- a/crates/compiler/tests/fixtures/tree_shake/self-executed/decl/var_side_effect/a.js +++ b/crates/compiler/tests/fixtures/tree_shake/self-executed/decl/var_side_effect/a.js @@ -1,4 +1,3 @@ -/* eslint-disable import/prefer-default-export */ function invariant(condition, message) { if (condition) return; var error = new Error('loadable: ' + message); @@ -7,7 +6,6 @@ function invariant(condition, message) { throw error; } function warn(message) { - // eslint-disable-next-line no-console console.warn('loadable: ' + message); } @@ -461,14 +459,11 @@ function createLoadable(_ref) { } function defaultResolveComponent(loadedModule) { - // eslint-disable-next-line no-underscore-dangle return loadedModule.__esModule ? loadedModule['default'] : loadedModule['default'] || loadedModule; } -/* eslint-disable no-use-before-define, react/no-multi-comp */ - var _createLoadable = /*#__PURE__*/ createLoadable({ @@ -482,8 +477,6 @@ var _createLoadable = loadable = _createLoadable.loadable, lazy = _createLoadable.lazy; -/* eslint-disable no-use-before-define, react/no-multi-comp */ - var _createLoadable$1 = /*#__PURE__*/ createLoadable({ @@ -510,7 +503,6 @@ var _createLoadable$1 = loadable$1 = _createLoadable$1.loadable, lazy$1 = _createLoadable$1.lazy; -/* eslint-disable no-underscore-dangle, camelcase */ var BROWSER = typeof window !== 'undefined'; function loadableReady(done, _temp) { if (done === void 0) { @@ -597,7 +589,6 @@ function loadableReady(done, _temp) { }).then(done); } -/* eslint-disable no-underscore-dangle */ var loadable$2 = loadable; loadable$2.lib = loadable$1; var lazy$2 = lazy; diff --git a/crates/plugin_script/tests/fixtures/module_system/hybrid-no-import.ts b/crates/plugin_script/tests/fixtures/module_system/hybrid-no-import.ts index 07aefee8b5..1f6f0058ab 100644 --- a/crates/plugin_script/tests/fixtures/module_system/hybrid-no-import.ts +++ b/crates/plugin_script/tests/fixtures/module_system/hybrid-no-import.ts @@ -1,7 +1,5 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires // const figlet = require('figlet') // import figlet from 'figlet' -// eslint-disable-next-line @typescript-eslint/no-var-requires export const PKG = require('../../../package.json') export const VITE_CLI_VERSION = PKG.version export const JZZX_NAME = PKG.name diff --git a/crates/plugin_tree_shake/tests/fixtures/remove_useless_stmts/loadable.esm.js b/crates/plugin_tree_shake/tests/fixtures/remove_useless_stmts/loadable.esm.js index 3b90d9c046..05bacedf08 100644 --- a/crates/plugin_tree_shake/tests/fixtures/remove_useless_stmts/loadable.esm.js +++ b/crates/plugin_tree_shake/tests/fixtures/remove_useless_stmts/loadable.esm.js @@ -6,7 +6,6 @@ import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose'; import { isValidElementType } from 'react-is'; import hoistNonReactStatics from 'hoist-non-react-statics'; -/* eslint-disable import/prefer-default-export */ function invariant(condition, message) { if (condition) return; var error = new Error("loadable: " + message); @@ -15,7 +14,6 @@ function invariant(condition, message) { throw error; } function warn(message) { - // eslint-disable-next-line no-console console.warn("loadable: " + message); } @@ -428,12 +426,9 @@ function createLoadable(_ref) { } function defaultResolveComponent(loadedModule) { - // eslint-disable-next-line no-underscore-dangle return loadedModule.__esModule ? loadedModule["default"] : loadedModule["default"] || loadedModule; } -/* eslint-disable no-use-before-define, react/no-multi-comp */ - var _createLoadable = /*#__PURE__*/ createLoadable({ @@ -447,7 +442,6 @@ createLoadable({ loadable = _createLoadable.loadable, lazy = _createLoadable.lazy; -/* eslint-disable no-use-before-define, react/no-multi-comp */ var _createLoadable$1 = /*#__PURE__*/ @@ -475,7 +469,6 @@ createLoadable({ loadable$1 = _createLoadable$1.loadable, lazy$1 = _createLoadable$1.lazy; -/* eslint-disable no-underscore-dangle, camelcase */ var BROWSER = typeof window !== 'undefined'; function loadableReady(done, _temp) { if (done === void 0) { @@ -553,7 +546,6 @@ function loadableReady(done, _temp) { }).then(done); } -/* eslint-disable no-underscore-dangle */ var loadable$2 = loadable; loadable$2.lib = loadable$1; var lazy$2 = lazy; diff --git a/docs/src/theme/ManagerTabs/index.tsx b/docs/src/theme/ManagerTabs/index.tsx index fffec1f894..dedce37fc6 100644 --- a/docs/src/theme/ManagerTabs/index.tsx +++ b/docs/src/theme/ManagerTabs/index.tsx @@ -161,7 +161,6 @@ export const Tabs: ForwardRefExoticComponent = forwardRef( {tabValues.map((item, index) => { return (
Promise>(maxConcu if (queue.length > 0) { const { ctx, deferred, args } = queue.shift()!; try { - // eslint-disable-next-line no-use-before-define newFn.apply(ctx, args).then(deferred.resolve, deferred.reject); } catch (e) { deferred.reject(e); @@ -66,7 +65,6 @@ export const concurrentify = Promise>(maxConcu } function newFn(this: any) { - // eslint-disable-next-line @typescript-eslint/no-this-alias const ctx = this; const args = arguments as any; diff --git a/e2e/vitestGlobalSetup.ts b/e2e/vitestGlobalSetup.ts index 73744d0387..b66501a808 100644 --- a/e2e/vitestGlobalSetup.ts +++ b/e2e/vitestGlobalSetup.ts @@ -24,7 +24,6 @@ export async function setup({ provide }: GlobalSetupContext): Promise { client.listen(12306); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore provide('wsEndpoint', browserServer.wsEndpoint()); } diff --git a/e2e/vitestSetup.ts b/e2e/vitestSetup.ts index 734358ff88..8c86bba5c8 100644 --- a/e2e/vitestSetup.ts +++ b/e2e/vitestSetup.ts @@ -20,7 +20,6 @@ const visitPage = async ( command: string ) => { if (!path) return; - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore const wsEndpoint = inject('wsEndpoint'); if (!wsEndpoint) { diff --git a/js-plugins/electron/.eslintrc.json b/js-plugins/electron/.eslintrc.json deleted file mode 100644 index 38d0613835..0000000000 --- a/js-plugins/electron/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "root": true, - "extends": "../../.eslintrc.base.json", - "parserOptions": { - "project": ["./js-plugins/svgr/tsconfig.json"] - }, - "rules": {} -} diff --git a/js-plugins/less/.eslintrc.json b/js-plugins/less/.eslintrc.json deleted file mode 100644 index d0610947ff..0000000000 --- a/js-plugins/less/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "root": true, - "extends": "../../.eslintrc.base.json", - "parserOptions": { - "project": ["./js-plugins/less/tsconfig.json"] - }, - "rules": {} -} diff --git a/js-plugins/less/src/index.ts b/js-plugins/less/src/index.ts index 76e6fa19e8..0e137fe74d 100644 --- a/js-plugins/less/src/index.ts +++ b/js-plugins/less/src/index.ts @@ -35,7 +35,6 @@ export default function farmLessPlugin( options?.implementation ); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore TODO fix it const cwd = () => farmConfig.root ?? process.cwd(); @@ -63,7 +62,6 @@ export default function farmLessPlugin( ...preprocessorOptions }; }, - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore it will be removed in the future configureServer() { console.warn( diff --git a/js-plugins/postcss/.eslintrc.json b/js-plugins/postcss/.eslintrc.json deleted file mode 100644 index 03dee8b683..0000000000 --- a/js-plugins/postcss/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "root": true, - "extends": "../../.eslintrc.base.json", - "parserOptions": { - "project": ["./js-plugins/postcss/tsconfig.json"] - }, - "rules": {} -} diff --git a/js-plugins/sass/.eslintrc.json b/js-plugins/sass/.eslintrc.json deleted file mode 100644 index 18f74694f7..0000000000 --- a/js-plugins/sass/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "root": true, - "extends": "../../.eslintrc.base.json", - "parserOptions": { - "project": ["./js-plugins/sass/tsconfig.json"] - }, - "rules": {} -} diff --git a/js-plugins/sass/src/index.ts b/js-plugins/sass/src/index.ts index 831b0308f9..a7512a94b2 100644 --- a/js-plugins/sass/src/index.ts +++ b/js-plugins/sass/src/index.ts @@ -48,7 +48,6 @@ export default function farmSassPlugin( let farmConfig!: UserConfig['compilation']; const implementation = getSassImplementation(options.implementation); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore TODO fix it const cwd = () => farmConfig.root ?? process.cwd(); diff --git a/js-plugins/sass/src/utils.ts b/js-plugins/sass/src/utils.ts index e83c3afde6..cddb213739 100644 --- a/js-plugins/sass/src/utils.ts +++ b/js-plugins/sass/src/utils.ts @@ -26,7 +26,6 @@ async function getDefaultSassImplementation() { * @param implementation * @returns */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any export function getSassImplementation(implementation?: string | any) { let resolvedImplementation = implementation; // if empty diff --git a/js-plugins/solid/.eslintrc.json b/js-plugins/solid/.eslintrc.json deleted file mode 100644 index 390bb9e673..0000000000 --- a/js-plugins/solid/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "root": true, - "extends": "../../.eslintrc.base.json", - "parserOptions": { - "project": ["./js-plugins/solid/tsconfig.json"] - }, - "rules": {} -} diff --git a/js-plugins/svgr/.eslintrc.json b/js-plugins/svgr/.eslintrc.json deleted file mode 100644 index 38d0613835..0000000000 --- a/js-plugins/svgr/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "root": true, - "extends": "../../.eslintrc.base.json", - "parserOptions": { - "project": ["./js-plugins/svgr/tsconfig.json"] - }, - "rules": {} -} diff --git a/js-plugins/visualizer/.eslintrc.json b/js-plugins/visualizer/.eslintrc.json deleted file mode 100644 index c5a96a660e..0000000000 --- a/js-plugins/visualizer/.eslintrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "root": true, - "extends": "../../.eslintrc.base.json", - "parserOptions": { - "project": ["./js-plugins/record-viewer/tsconfig.json"] - } -} diff --git a/js-plugins/visualizer/.gitignore b/js-plugins/visualizer/.gitignore index 30d7871152..e12282a880 100644 --- a/js-plugins/visualizer/.gitignore +++ b/js-plugins/visualizer/.gitignore @@ -54,9 +54,6 @@ typings/ # Optional npm cache directory .npm -# Optional eslint cache -.eslintcache - # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ diff --git a/js-plugins/vue/.eslintrc.json b/js-plugins/vue/.eslintrc.json deleted file mode 100644 index 0043980314..0000000000 --- a/js-plugins/vue/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "root": true, - "extends": "../../.eslintrc.base.json", - "parserOptions": { - "project": ["./js-plugins/vue/tsconfig.json"] - }, - "rules": {} -} diff --git a/js-plugins/vue/src/farm-vue-plugin.ts b/js-plugins/vue/src/farm-vue-plugin.ts index 7a0c1273a6..3ad6235196 100644 --- a/js-plugins/vue/src/farm-vue-plugin.ts +++ b/js-plugins/vue/src/farm-vue-plugin.ts @@ -239,7 +239,6 @@ async function preProcession( case 'scss': processor = await loadPreProcessor(PreProcessorsType.sass); return await compilePreProcessorCodeToCss(styleCode, processor, { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore indentedSyntax: moduleType === 'sass', includePaths: options.paths ?? [] diff --git a/packages/core/.gitignore b/packages/core/.gitignore index b1be4119fb..2e0564eeb3 100644 --- a/packages/core/.gitignore +++ b/packages/core/.gitignore @@ -54,9 +54,6 @@ typings/ # Optional npm cache directory .npm -# Optional eslint cache -.eslintcache - # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ diff --git a/packages/core/.npmignore b/packages/core/.npmignore index f96abe0b8c..c16e991490 100644 --- a/packages/core/.npmignore +++ b/packages/core/.npmignore @@ -3,7 +3,6 @@ Cargo.lock .cargo .github npm -.eslintrc .prettierignore rustfmt.toml yarn.lock diff --git a/packages/core/binding/binding.cjs b/packages/core/binding/binding.cjs index a946579788..9e64ebbb6f 100644 --- a/packages/core/binding/binding.cjs +++ b/packages/core/binding/binding.cjs @@ -1,5 +1,4 @@ /* tslint:disable */ -/* eslint-disable */ /* prettier-ignore */ /* auto-generated by NAPI-RS */ diff --git a/packages/core/binding/binding.d.ts b/packages/core/binding/binding.d.ts index 86db101e3c..c22d132b1a 100644 --- a/packages/core/binding/binding.d.ts +++ b/packages/core/binding/binding.d.ts @@ -1,5 +1,4 @@ /* tslint:disable */ -/* eslint-disable */ /* auto-generated by NAPI-RS */ diff --git a/packages/core/client.d.ts b/packages/core/client.d.ts index d151ad6eb9..72a97fd2f0 100644 --- a/packages/core/client.d.ts +++ b/packages/core/client.d.ts @@ -5,7 +5,6 @@ * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors */ -/* eslint-disable @typescript-eslint/triple-slash-reference */ /// // CSS modules diff --git a/packages/core/src/config/index.ts b/packages/core/src/config/index.ts index 6bb0cef160..c3010855f7 100644 --- a/packages/core/src/config/index.ts +++ b/packages/core/src/config/index.ts @@ -310,7 +310,6 @@ export async function normalizeUserCompilationConfig( normalizeOutput(resolvedCompilation, isProduction, resolvedUserConfig.logger); normalizeExternal(resolvedUserConfig, resolvedCompilation); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore do not check type for this internal option if (!resolvedCompilation.assets?.publicDir) { resolvedCompilation.assets ??= {}; @@ -320,11 +319,9 @@ export async function normalizeUserCompilationConfig( : path.join(resolvedCompilation.root, 'public'); if (path.isAbsolute(userPublicDir)) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore do not check type for this internal option resolvedCompilation.assets.publicDir = userPublicDir; } else { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore do not check type for this internal option resolvedCompilation.assets.publicDir = path.join( resolvedCompilation.root, diff --git a/packages/core/src/config/types.ts b/packages/core/src/config/types.ts index 5347a033a9..3e5322299e 100644 --- a/packages/core/src/config/types.ts +++ b/packages/core/src/config/types.ts @@ -303,7 +303,6 @@ interface ResolvedCss extends CssConfig { }; } -// eslint-disable-next-line @typescript-eslint/no-empty-interface export interface ResolvedCompilation extends Exclude { external?: string[]; diff --git a/packages/core/src/plugin/js/farm-to-vite-config.ts b/packages/core/src/plugin/js/farm-to-vite-config.ts index c19c4d81a3..64dc5f597e 100644 --- a/packages/core/src/plugin/js/farm-to-vite-config.ts +++ b/packages/core/src/plugin/js/farm-to-vite-config.ts @@ -41,7 +41,6 @@ export function farmUserConfigToViteConfig(config: UserConfig): ViteUserConfig { }, plugins: vitePlugins, server: { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore ignore error hmr: config.server?.hmr, port: config.server?.port, @@ -53,7 +52,6 @@ export function farmUserConfigToViteConfig(config: UserConfig): ViteUserConfig { watch: typeof config.watch === 'object' ? config.watch : {} // other options are not supported in farm }, - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore ignore this error isProduction: config.compilation?.mode === 'production', css: config.compilation?.css?._viteCssOptions ?? {}, @@ -434,7 +432,6 @@ export function viteConfigToFarmConfig( const keys = ['assetFileNames', 'entryFilename', 'filename']; for (const k of keys) { - /* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-ignore type is correct farmConfig.compilation.output[k] = // @ts-ignore type is correct diff --git a/packages/core/src/plugin/js/farm-to-vite-context.ts b/packages/core/src/plugin/js/farm-to-vite-context.ts index 6ec234ba2e..0ab11ffb46 100644 --- a/packages/core/src/plugin/js/farm-to-vite-context.ts +++ b/packages/core/src/plugin/js/farm-to-vite-context.ts @@ -188,7 +188,6 @@ export function farmContextToViteContext( has: cacheError }, moduleIds: new Set()[Symbol.iterator](), - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore Vite specific property getCombinedSourcemap() { logger.warn( diff --git a/packages/core/src/plugin/js/utils.ts b/packages/core/src/plugin/js/utils.ts index 3411f70d2a..c451e8fea9 100644 --- a/packages/core/src/plugin/js/utils.ts +++ b/packages/core/src/plugin/js/utils.ts @@ -335,13 +335,11 @@ export function transformRollupResource2FarmResource( } } -// eslint-disable-next-line @typescript-eslint/no-explicit-any const notSupport: (method: string) => (...args: any[]) => any = (method) => () => { console.warn(`${method} not support`); }; -// eslint-disable-next-line @typescript-eslint/no-explicit-any const noop: (...args: any) => any = () => void 0; function transformFarmFormatToRollupFormat( diff --git a/packages/core/src/plugin/js/vite-plugin-adapter.ts b/packages/core/src/plugin/js/vite-plugin-adapter.ts index c50d0e99df..9fb8d89d50 100644 --- a/packages/core/src/plugin/js/vite-plugin-adapter.ts +++ b/packages/core/src/plugin/js/vite-plugin-adapter.ts @@ -826,7 +826,6 @@ export class VitePluginAdapter implements JsPlugin { const { htmlResource } = params; const hook = this.wrapRawPluginHook( 'transformIndexHtml', - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore ignore type error this._rawPlugin.transformIndexHtml, context diff --git a/packages/core/src/plugin/type.ts b/packages/core/src/plugin/type.ts index 62c62f0935..ca20c2889d 100644 --- a/packages/core/src/plugin/type.ts +++ b/packages/core/src/plugin/type.ts @@ -19,7 +19,6 @@ import { } from '../types/binding.js'; // https://stackoverflow.com/questions/61047551/typescript-union-of-string-and-string-literals -// eslint-disable-next-line @typescript-eslint/ban-types export type LiteralUnion = T | (string & {}); type ResourcePotType = LiteralUnion< diff --git a/packages/core/src/server/error.ts b/packages/core/src/server/error.ts index 78736e5282..c3350415f4 100644 --- a/packages/core/src/server/error.ts +++ b/packages/core/src/server/error.ts @@ -16,7 +16,6 @@ export function prepareError(err: Error & { potentialSolution?: string }) { } export function stripAnsi(str: string) { - // eslint-disable-next-line no-control-regex return str.replace(/\x1b\[[0-9;]*m/g, ''); } diff --git a/packages/core/src/server/hmr-engine.ts b/packages/core/src/server/hmr-engine.ts index 4fe7d8b71b..616c94a767 100644 --- a/packages/core/src/server/hmr-engine.ts +++ b/packages/core/src/server/hmr-engine.ts @@ -157,7 +157,6 @@ export class HmrEngine { try { await this.recompileAndSendResult(); } catch (e) { - // eslint-disable-next-line no-control-regex const serialization = e.message.replace(/\x1b\[[0-9;]*m/g, ''); const errorStr = `${JSON.stringify({ message: serialization diff --git a/packages/core/src/utils/merge.ts b/packages/core/src/utils/merge.ts index 520431675a..886a3a34b9 100644 --- a/packages/core/src/utils/merge.ts +++ b/packages/core/src/utils/merge.ts @@ -1,5 +1,4 @@ import deepmerge, { Options } from 'deepmerge'; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore ignore type check import { isPlainObject } from 'is-plain-object'; import { isArray } from './share.js'; diff --git a/packages/core/src/utils/share.ts b/packages/core/src/utils/share.ts index 100d547931..d91fa258a6 100644 --- a/packages/core/src/utils/share.ts +++ b/packages/core/src/utils/share.ts @@ -1,12 +1,10 @@ import fs from 'node:fs'; -/* eslint-disable no-prototype-builtins */ import os from 'node:os'; import path, { dirname } from 'node:path'; import readline from 'node:readline'; import { fileURLToPath } from 'node:url'; import { Config, OutputConfig } from '../types/binding.js'; import { cleanUrl } from './url.js'; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import packageJson from '../../package.json'; const __dirname = dirname(fileURLToPath(import.meta.url)); diff --git a/packages/core/tests/fixtures/json/index.ts b/packages/core/tests/fixtures/json/index.ts index 3e30c9fd38..ffecd07447 100644 --- a/packages/core/tests/fixtures/json/index.ts +++ b/packages/core/tests/fixtures/json/index.ts @@ -1,6 +1,5 @@ import json1 from './json1.json'; -// eslint-disable-next-line @typescript-eslint/no-var-requires const json2 = require('./json2.json'); const json1Name = json1.name; diff --git a/packages/create-farm-plugin/templates/js/gitignore b/packages/create-farm-plugin/templates/js/gitignore index d9c2bd2a3e..ca90619c22 100644 --- a/packages/create-farm-plugin/templates/js/gitignore +++ b/packages/create-farm-plugin/templates/js/gitignore @@ -54,9 +54,6 @@ typings/ # Optional npm cache directory .npm -# Optional eslint cache -.eslintcache - # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ diff --git a/packages/create-farm-plugin/templates/rust/gitignore b/packages/create-farm-plugin/templates/rust/gitignore index 50e4f22feb..56b935e15d 100644 --- a/packages/create-farm-plugin/templates/rust/gitignore +++ b/packages/create-farm-plugin/templates/rust/gitignore @@ -54,9 +54,6 @@ typings/ # Optional npm cache directory .npm -# Optional eslint cache -.eslintcache - # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ diff --git a/packages/create-farm/.gitignore b/packages/create-farm/.gitignore index 5e2577b357..0612261e4b 100644 --- a/packages/create-farm/.gitignore +++ b/packages/create-farm/.gitignore @@ -54,9 +54,6 @@ typings/ # Optional npm cache directory .npm -# Optional eslint cache -.eslintcache - # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ diff --git a/packages/create-farm/index.d.ts b/packages/create-farm/index.d.ts index bb8ba2579e..887208414d 100644 --- a/packages/create-farm/index.d.ts +++ b/packages/create-farm/index.d.ts @@ -1,5 +1,4 @@ /* tslint:disable */ -/* eslint-disable */ /* auto-generated by NAPI-RS */ diff --git a/packages/create-farm/index.js b/packages/create-farm/index.js index 18b7e75c45..e476e3e752 100644 --- a/packages/create-farm/index.js +++ b/packages/create-farm/index.js @@ -1,5 +1,4 @@ /* tslint:disable */ -/* eslint-disable */ /* prettier-ignore */ /* auto-generated by NAPI-RS */ diff --git a/packages/runtime-plugin-hmr/src/hmr-client.ts b/packages/runtime-plugin-hmr/src/hmr-client.ts index 2bda9737bb..3e9fe01e1b 100644 --- a/packages/runtime-plugin-hmr/src/hmr-client.ts +++ b/packages/runtime-plugin-hmr/src/hmr-client.ts @@ -322,7 +322,6 @@ async function waitForSuccessfulPing( } await wait(ms); - // eslint-disable-next-line no-constant-condition while (true) { if (document.visibilityState === 'visible') { if (await ping()) { diff --git a/packages/runtime-plugin-hmr/src/utils.ts b/packages/runtime-plugin-hmr/src/utils.ts index bc280f101d..19e45a7ad8 100644 --- a/packages/runtime-plugin-hmr/src/utils.ts +++ b/packages/runtime-plugin-hmr/src/utils.ts @@ -10,7 +10,6 @@ export function handleErrorSync( } } -// eslint-disable-next-line @typescript-eslint/no-empty-function function noop() {} export function parseIfJSON(str: string): any { @@ -44,7 +43,6 @@ export function prepareError(err: Error & { potentialSolution?: string }) { } export function stripAnsi(str: string) { - // eslint-disable-next-line no-control-regex return str.replace(/\x1b\[[0-9;]*m/g, ''); } diff --git a/packages/runtime/src/v1/global.d.ts b/packages/runtime/src/v1/global.d.ts index 2c5f615897..8e538a00c5 100644 --- a/packages/runtime/src/v1/global.d.ts +++ b/packages/runtime/src/v1/global.d.ts @@ -1,8 +1,4 @@ // inject by crates/plugin_runtime -// eslint-disable-next-line @typescript-eslint/no-explicit-any -declare function _interop_require_default(obj: any): any; -// eslint-disable-next-line @typescript-eslint/no-explicit-any declare function _interop_require_wildcard(obj: any, nodeInterop?: boolean): any; -// eslint-disable-next-line @typescript-eslint/no-explicit-any declare function _export_star(from: any, to: any): any; \ No newline at end of file diff --git a/packages/runtime/src/v1/module-system.ts b/packages/runtime/src/v1/module-system.ts index 3fc4aeaf3f..20c17baa26 100644 --- a/packages/runtime/src/v1/module-system.ts +++ b/packages/runtime/src/v1/module-system.ts @@ -10,7 +10,6 @@ import { declare const nodeRequire: (id: string) => any; -/* eslint-disable @typescript-eslint/no-explicit-any */ type ModuleInitializationFunction = ( module: Module, exports: any, @@ -18,7 +17,6 @@ type ModuleInitializationFunction = ( __farm_dynamic_require__: (moduleId: string) => any, ) => void | Promise; -/* eslint-disable @typescript-eslint/no-explicit-any */ export type ModuleInitialization = ModuleInitializationFunction & { __farm_resource_pot__?: string; }; diff --git a/packages/runtime/src/v1/module.ts b/packages/runtime/src/v1/module.ts index d604c3db8e..13acc732c9 100644 --- a/packages/runtime/src/v1/module.ts +++ b/packages/runtime/src/v1/module.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ export class Module { id: string; exports: any; diff --git a/packages/runtime/src/v1/plugin.ts b/packages/runtime/src/v1/plugin.ts index c98fb8478b..547cd5ca26 100644 --- a/packages/runtime/src/v1/plugin.ts +++ b/packages/runtime/src/v1/plugin.ts @@ -30,7 +30,6 @@ export interface FarmRuntimePlugin { ) => Promise; } -/* eslint-disable @typescript-eslint/no-explicit-any */ export class FarmRuntimePluginContainer { plugins: FarmRuntimePlugin[] = []; diff --git a/packages/utils/src/color.ts b/packages/utils/src/color.ts index 1bcd57c350..e565063cd6 100644 --- a/packages/utils/src/color.ts +++ b/packages/utils/src/color.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ // ISC License // Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov