ESLint and Prettier bundle for all things Greenberry.
npm i -D @greenberry/eslint-config-typescript
⚠️ Requires@next/eslint-plugin-next
eslint.config.js
:
import { eslintConfig } from "@greenberry/eslint-config-typescript";
const config = [...eslintConfig];
export default config;
prettier.config.js
:
import { prettierConfig } from "@greenberry/eslint-config-typescript";
const config = {
...prettierConfig,
};
export default config;
stylelint.config
:
⚠️ Beta `
import { stylelintConfig } from "@greenberry/eslint-config-typescript";
const config = {
...stylelintConfig,
};
export default config;
❗️ Deprecated
eslint.config.json
: ⚠️ Required next ^15.0.0 and eslint ^9.0.0
npm i -D @greenberry/eslint-config-typescript globals @babel/preset-react
import eslintConfig from "@greenberry/eslint-config-typescript/dist/legacy/eslint.config.js";
const config = [...eslintConfig];
export default config;