The package includes all the dependencies to have a working eslint
setup that works with the configuration. Adopting projects will only
need to install @rocicorp/eslint-config
.
$ npm install @rocicorp/eslint-config --save-dev
Version 0.8.0+ requires ESLint 9 and uses the new flat config format.
Make sure you have a tsconfig.json
in your project.
Create an eslint.config.js
file in your project root:
import eslintConfig from '@rocicorp/eslint-config';
export default [
...eslintConfig,
{
// Add project-specific configuration here
ignores: [
'node_modules/',
'dist/',
'build/',
// Add other files/directories to ignore
],
},
];
Breaking Changes in v0.8.0:
- ESLint 9.35.0: Upgraded from ESLint 8.x to 9.35.0
- Flat Config: Uses ESLint 9's new flat config format instead of legacy format
- Stricter TypeScript Rules: Updated @typescript-eslint to v8.43.0 with more comprehensive type checking
- Configuration Format: Must use
eslint.config.js
instead ofeslintConfig
inpackage.json
Legacy Usage (v0.7 and older):
{
"eslintConfig": {
"extends": "@rocicorp/eslint-config"
}
}