UNPKG

@couds/eslint-config

Version:

Shared ESLint 10 flat config for React and Node.js projects with Prettier integration. These are the rules I use across my personal projects.

22 lines (20 loc) 463 B
import eslintReact from '@eslint-react/eslint-plugin'; import jsxA11yPlugin from 'eslint-plugin-jsx-a11y'; import globals from 'globals'; import base from './base.js'; export default [ ...base, eslintReact.configs.recommended, jsxA11yPlugin.flatConfigs.recommended, { languageOptions: { parserOptions: { ecmaFeatures: { jsx: true }, }, globals: { ...globals.browser, ...globals.node, }, }, }, ];