@josephmcg/eslint-config-react
v2.0.0
Published
ESLint config for React projects
Readme
eslint-config-react
pnpm i -D @josephmcg/eslint-config-react// eslint.config.js
import josephmcgConfigReact from '@josephmcg/eslint-config-react'
import { defineConfig } from 'eslint/config'
import tseslint from 'typescript-eslint'
const config = defineConfig(josephmcgConfigReact, {
languageOptions: {
parser: tseslint.parser,
parserOptions: {
ecmaVersion: 2022,
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
sourceType: 'module',
tsconfigRootDir: import.meta.dirname,
warnOnUnsupportedTypeScriptVersion: true,
},
},
})