关键词:eslint-typegen, eslint flat config, anfu/eslint-config, tsup, github npm-publish CI 我个人经常会在node, react, remix, nextjs, svelte, vue来回切换,尤其是尝到monorepo对库开发时,直接workspace import那种快感,我的monorepo最恐怖时会同时存在原生js/ts(node, web),react,remix,mdx,svelte,l...
Antfu config-- Another great set of rules XO-- Flat version of popular setxo, still in beta, includes some restrictive rules that I don't always agree with License All the packages within the current monorepo are licensed under the Apache-2.0 license. ...
importvolvoCarsEslintConfigfrom'@volvo-cars/eslint-config/flat/index.mjs';exportdefault[...volvoCarsEslintConfig,{ignores:['!.github','node_modules/','coverage/','.yarn/'],},]; If you don't use ESM, you can use the CommonJS syntax: ...
在最新的 @nuxt/eslint-config 包中,我们充分利用了灵活性,提供一个工厂函数,让你可以更高层次地轻松定制配置预设。以下是你可以使用它的示例:importnuxtfrom'@nuxt/eslint-config/flat'exportdefaultnuxt()@nuxt/eslint-config 从一个无概念的基础配置开始,这意味着我们只包括 TypeScript、Vue 和 Nuxt 最佳...
config-inspectorconfig-inspectorPublic A visual tool for inspecting and understanding your ESLint flat configs. Vue80124 Repositories Type Language Sort eslintPublic Find and fix problems in your JavaScript code. JavaScript25,386MIT4,61488(1 issue needs help)13UpdatedJan 7, 2025 ...
importnuxtfrom'@nuxt/eslint-config/flat'exportdefaultnuxt({features:{tooling:true}}) Nuxt ESLint 模块 更进一步,我们为 Nuxt 3 创建了全新的@nuxt/eslint模块。它利用了 Nuxt 的上下文来生成项目感知且类型安全的 ESLint 配置。 项目感知规则 我们知道 Vue 的风格指南建议使用多个单词命名组件,以避免与现有...
Config - Flat (eslint.config.js) All rules are off by default. However, you may configure them manually in youreslint.config.(js|cjs|mjs), or extend one of the preset configs: importimportPluginfrom'eslint-plugin-import';importjsfrom'@eslint/js';exportdefault[ ...
yarn add -D @putstack/eslint-config-typescript Usage Ensure that your ESLint configuration is setup to utilize TypeScript's type checking API by following thisguide. Note that if you're using this in a monorepo, youSHOULDkeep"project":"true"despite that the guide says otherwise in my expe...
eslint.config.js, eslint.config.mjs, or eslint.config.cjs (flat format), learn more from the ESLint official website. You can also use configuration files written in TypeScript, such as, eslint.config.ts, eslint.config.mts, or eslint.config.cts. To do that, you need to specify th...
Open a configuration file or create a new one in the root of your project. Populate the configuration file depending on the ESLint version you are using: // @ts-checkimporteslintfrom'@eslint/js';importtseslintfrom'typescript-eslint';exportdefaulttseslint.config(eslint.configs.recommended,ts...