// eslint.config.jsimportantfufrom'@antfu/eslint-config'exportdefaultantfu({// Type of the project. 'lib' for libraries, the default is 'app'type:'lib',// Enable stylistic formatting rules// stylistic: true,// Or customize the stylistic rulesstylistic:{indent:2,// 4, or 'tab'quotes:...
Provide a defineConfig function for .eslintrc.js files. Latest version: 1.23.0-2, last published: 11 days ago. Start using @antfu/eslint-define-config in your project by running `npm i @antfu/eslint-define-config`. There are 11 other projects in the npm
Check out theconfigsandfactoryfor more details. Thanks tosxzz/eslint-configfor the inspiration and reference. Plugins Renaming Since flat config requires us to explicitly provide the plugin names (instead of the mandatory convention from npm package name), we renamed some plugins to make the overal...
Since flat config requires us to explicitly provide the plugin names (instead of the mandatory convention from npm package name), we renamed some plugins to make the overall scope more consistent and easier to write.New PrefixOriginal PrefixSource Plugin import/* import-x/* eslint-plugin-import...
npm i -D nuxt-module-eslint-config // nuxt.config.tsexportdefaultdefineNuxtConfig({modules:['nuxt-module-eslint-config']}) And create aneslint.config.jsfile in your project root, with the following content: // eslint.config.jsimportNuxtEslintConfigfrom'./.nuxt/eslint.config.mjs'exportde...
Anthony extended ESLint rules. Latest version: 2.7.0, last published: 2 months ago. Start using eslint-plugin-antfu in your project by running `npm i eslint-plugin-antfu`. There are 138 other projects in the npm registry using eslint-plugin-antfu.
npm install v-lazy-show -D yarn add v-lazy-show -D pnpm add v-lazy-show -D ni v-lazy-show -D 既然是个编译时指令,且是处理 vue template 的,那么就应该在对应的构建工具中配置,如下: 如果你用的是 vite,那么配置如下 // vite.config.ts import { defineConfig } from 'vite' import { tran...
确认是否需要升级或降级node版本以匹配@antfu/eslint-define-config@1.23.0-2的要求: 接下来,你需要查找@antfu/eslint-define-config@1.23.0-2的package.json文件(通常可以在npm官网或GitHub仓库的package.json文件中找到),查看其engines字段中指定的Node.js版本范围。如果当前Node.js版本不在该范围内,则需要升级或...
@antfu/eslint-define-config A fork ofeslint-define-configto experiment better Flat Config support. Changes In This Fork 1. Re-export Rules for Each Plugin import{ VitestRules, VueRules,// ...}from'@antfu/eslint-define-config' 2. Allow Overriding Rules ...
2 "name": "@antfu/eslint-define-config", 3 "version": "1.23.0-2", 4 "description": "Provide a defineConfig function for .eslintrc.js files", 5 "type": "module", 6 "main": "dist/index.cjs", 7 "module": "dist/index.js", ...