@wewise/eslint-config
v1.0.3
Published
Shared ESLint configurations for wewise projects (base, react, next)
Maintainers
Readme
@wewise/eslint-config
Shared ESLint configurations used across wewise projects.
This package exposes a few named configuration files for different environments:
base.config.mjs– base rulesreact.config.mjs– React-focused rulesnext.config.mjs– Next.js specific rules
Usage
Install:
npm install --save-dev @wewise/eslint-configThen extend the config from your project .eslintrc.cjs or .eslintrc.json.
Example (ESLint JSON):
{
"extends": "@wewise/eslint-config"
}Or explicitly load the React config:
{
"extends": "@wewise/eslint-config/react.config.mjs"
}Publishing
To publish to npm (public):
cd eslint-config
npm publish --access publicTo publish to GitHub Packages, configure .npmrc in CI or locally:
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@wewise:registry=https://npm.pkg.github.comLocal validation
cd eslint-config
npm packThis creates a tarball you can install in another project to validate consumption.
