My TypeScript and Prettier linting rules to keep all of my projects consistent.
yarn add -D @ryancwalsh/linting eslint@9.17.0 prettier@3.3.3 --exact
Carefully consider running:
cp node_modules/@ryancwalsh/linting/src/examples/eslint.config.js .
cp node_modules/@ryancwalsh/linting/src/examples/prettier.config.js .
cp -R node_modules/@ryancwalsh/linting/.vscode/ .
npm publish --access=public
Include rules from 'next/core-web-vitals' and/or 'eslint-config-next'. "eslint-plugin-storybook": "0.12.0", "prettier-plugin-prisma": "5.0.0",
TODO: Solve Could not find a declaration file for module '@ryancwalsh/linting'. '/home/rcwalsh/code/partner_portal/node_modules/@ryancwalsh/linting/src/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/ryancwalsh__linting
if it exists or add a new declaration (.d.ts) file containing declare module '@ryancwalsh/linting';
ts(7016)
Document how to use this repo directly while developing it (how to use the local package via symlink instead of the published one).
https://github.com/gajus/eslint-config-canonical/blob/main/COMPARISON_TABLE.md https://github.com/gajus/eslint-config-canonical/tags