Custom ESLint config for rem, a personal preference shareable config extending eslint-config-xo. Current version 4.0.0 is stable, with infrequent releases. Key features include 2-space indentation, no semicolons, optional Prettier integration via 'rem/prettier', and linting of code blocks in Markdown files. Differentiators: designed to work seamlessly with XO or eslint-config-xo, and includes markdown code block linting via eslint-plugin-markdown. Alternative to standard eslint-config-xo or other shareable configs like Standard.
npm install eslint-config-remVerified import paths — ran on the pinned version, not inferred.
Shows minimal ESLint config with xo/esnext and rem, assuming eslint and eslint-config-rem installed.
Always include 'xo/esnext' before 'rem' in the extends array.
Install prettier, eslint-config-prettier, and eslint-plugin-prettier as devDependencies.
Add eslint-plugin-markdown as a devDependency.
Run npm install -D eslint-config-rem
Run npm install -D eslint-config-xo
Ensure the base config 'xo/esnext' is extended, which enables ES2018+ features.