@rocicorp/eslint-config
v0.8.0
Published
Common eslint config for Rocicorp
Downloads
2,330
Keywords
Readme
Shared eslint config for Rocicorp Projects
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.
Install
$ npm install @rocicorp/eslint-config --save-devUsage
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
],
},
];Migration from v0.x
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.jsinstead ofeslintConfiginpackage.json
Legacy Usage (v0.7 and older):
{
"eslintConfig": {
"extends": "@rocicorp/eslint-config"
}
}