模块 @pandapro-project/webtools-eslint - v1.1.1

webtools-eslint

@pandapro-project:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=GITHUB_TOKEN
 pnpm -D add @pandapro-project/webtools-eslint
npm -D install @pandapro-project/webtools-eslint
  1. go to your project root directory to create .eslintrc.config.js file
  2. add the following code to the file
import { defineConfig } from "@pandapro-project/webtools-eslint"
export default defineConfig([], {
formatJs: true, // start format js plugin if your project is using it to be locale
projectConfig: {
nodeVersion: ">=20.11.0", // node version
packageManager: { // package manager that will be used in the project package.json
type: "pnpm",
version: "9.11.0",
},
},
requiredFields: ["packageManager", "engines"], // required fields in package.json
})