@greenberry/linting-config
v1.1.0
Published
ESLint and Prettier bundle for all things Greenberry.
Keywords
Readme
Greenberry linting-config
ESLint and Prettier bundle for all things Greenberry.
Table of Contents
NPM Registry
https://www.npmjs.com/package/@greenberry/linting-config
Requirements
- Node
>=22 - ESLint
>=10.4(required byeslint-plugin-unicorn72) - TypeScript
<7
⚠️ TypeScript 7 is not supported yet. TypeScript 7 ships without a programmatic API — that lands in 7.1 — so
typescript-eslintrefuses to load against it and the whole ESLint run fails. Projects that want the native compiler can run both side by side:{ "devDependencies": { // tsc / tsgo — the fast native compiler, used for builds and typechecks "@typescript/native": "npm:typescript@^7.0.2", // tsc6 — the TS 6 API that typescript-eslint imports "typescript": "npm:@typescript/typescript6@^6.0.2" } }
Publish a new version
- Make your changes
- Review and merge your changes into
main - Run
npm run build - Run
npm loginand login with the Marvin account in 1Password - If it is a patch update: run
npm run release:patch - If it is a minor update: run
npm run release:minor - If it is a major update: run
npm run release:major - Push the changed version number to
main
Install
npm i -D @greenberry/linting-configNextJS
⚠️ Requires
@next/eslint-plugin-next
eslint.config.js:
import { eslintConfig, eslintStorybookConfig } from "@greenberry/linting-config";
const config = [
...eslintConfig, ...eslintStorybookConfig
];
export default config;prettier.config.js:
import { prettierConfig } from "@greenberry/linting-config";
const config = {
...prettierConfig,
};
export default config;stylelint.config:
⚠️ Beta `
import { stylelintConfig } from "@greenberry/linting-config";
const config = {
...stylelintConfig,
};
export default config;❗️ Deprecated
eslint.config.json: ⚠️ Required next ^15.0.0 and eslint ^9.0.0
npm i -D @greenberry/linting-config
```js
import eslintConfig from "@greenberry/linting-config/dist/legacy/eslint.config.js";
const config = [...eslintConfig];
export default config;