Requarks ESLint Config
raw JSON → 1.0.7 verified Sat Apr 25 auth: no javascript maintenance
An ESLint shareable configuration based on StandardJS rules with two modifications: removes the space-before-function-paren rule and the handle-callback-err rule. Version 1.0.7 is the latest, released in 2017. It requires ESLint >= 3.19.0 and peer dependencies for plugins (import, node, promise, standard). Suitable for JavaScript projects following StandardJS but with relaxed function parenthesis and callback error handling.
Common errors
error Error: Cannot find module 'eslint-plugin-standard' ↓
cause Missing peer dependency eslint-plugin-standard.
fix
npm install --save-dev eslint-plugin-standard
error Configuration for rule 'space-before-function-paren' is invalid ↓
cause Using a newer ESLint version that changed rule options; this config removes old rule.
fix
Remove rule from config or update to a modern ESLint config.
Warnings
deprecated Package has not been updated since 2017. ESLint and plugins have evolved. ↓
fix Consider using eslint-config-standard directly or a modern alternative.
gotcha Omit eslint-config- prefix in extends field; ESLint adds it automatically. ↓
fix Use 'requarks' not 'eslint-config-requarks' in extends.
gotcha All peer dependencies must be installed manually. ↓
fix Run npm install --save-dev eslint-config-requarks eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
Install
npm install eslint-config-requarks yarn add eslint-config-requarks pnpm add eslint-config-requarks Imports
- config wrong
import config from 'eslint-config-requarks'correctAdd 'extends': 'requarks' to .eslintrc - requarks wrong
const requarks = require('eslint-config-requarks')correctmodule.exports = { extends: 'requarks' } - eslint-config-requarks wrong
npm install eslint-config-requarks --savecorrectnpm install --save-dev eslint-config-requarks
Quickstart
// Install dependencies
npm install --save-dev eslint-config-requarks eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
// Then in .eslintrc.json:
{
"extends": "requarks"
}