Skip to content

rocicorp/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-dev

Usage

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.js instead of eslintConfig in package.json

Legacy Usage (v0.7 and older):

{
  "eslintConfig": {
    "extends": "@rocicorp/eslint-config"
  }
}

About

shared eslint configuration for rocicorp projects

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •