@pixpilot/eslint-config
v3.1.0
Published
Base ESLint configuration for PixPilot projects
Readme
@pixpilot/eslint-config
This is the base ESLint config for JavaScript/TypeScript projects at Pixpilot. While it is designed for our internal use, you are welcome to use it in your own projects as well!
Usage
Add to your eslint.config.mjs:
import config from '@pixpilot/eslint-config';
export default config();Drizzle ORM rules
The @pixpilot/drizzle-config rules (drizzle/prefer-timestamptz,
drizzle/require-enable-rls, drizzle/require-user-id-cascade) are enabled
automatically when drizzle-orm is installed, and the config is only loaded when
they are enabled. Set the option explicitly to override the detection.
export default config({
// true | false | { files, level, overrides }
drizzle: true,
});JSON and JSONC
jsonc/no-comments is an error for .json, and off for .jsonc plus the files
that use a .json extension but are JSONC by convention: tsconfig*.json,
jsconfig*.json and anything under .vscode/.
