Licence
GPL-2.0-or-later
Version
0.3.0
Deps
3
Size
24 kB
Vulns
0
Weekly
0
@haptiq/eslint-config
Shared ESLint configuration for Haptiq projects. Provides composable flat config presets for ESLint 9+.
Requirements
- Node >= 24
- eslint >= 9.7.0
Installation
npm install @haptiq/eslint-config --save-dev
For WordPress projects, also install:
npm install @wordpress/eslint-plugin --save-dev
Usage
Presets are composable — combine what your project needs in eslint.config.mjs.
Browser project
// eslint.config.mjs
import { base } from '@haptiq/eslint-config'
export default [...base]
WordPress / Gutenberg project
// eslint.config.mjs
import { base, wordpress } from '@haptiq/eslint-config'
export default [...base, ...wordpress]
Node.js project
// eslint.config.mjs
import { base, node } from '@haptiq/eslint-config'
export default [...base, ...node]
Presets
base—@eslint/jsrecommended + browser globals + stylistic formatting rules (@stylistic/eslint-plugin) + opinionated JS rules (no-var,prefer-const,eqeqeq, etc.)wordpress—@wordpress/eslint-plugincustom ruleset for WordPress development (React, JSX, a11y, i18n, WP APIs)node— adds Node.js globals (process,__dirname,Buffer, etc.)
License
GPL-2.0-or-later