This repository is a custom ESLint configuration and used personally by B.C.Rikko.
This configuration depends on the following packages and plugins:
- eslint
- stylistic
- typescript-eslint
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-react
- eslint-plugin-react-hooks
npm install -D eslint eslint-config-bcrikko
For example:
// eslint.config.js
import base from 'eslint-config-bcrikko'
import react from 'eslint-config-bcrikko/react'
/**
* @type {import('eslint').Linter.Config[]}
*/
const config = [
...base,
...react,
{
settings: {
react: {
// Automatically detect React version
version: 'detect',
},
},
rules: {
// Customize your ESLint rules here
},
},
]
export default config