eslint-config-formidable
raw JSON → 4.0.0 verified Sat Apr 25 auth: no javascript maintenance
A composable set of ESLint configurations from Formidable, based on eslint-config-walmart. Version 4.0.0 is the latest stable release but appears to be unmaintained since 2017. Compatible with ESLint 2.x and 3.x. Provides full configurations for ES5, ES6, React, browser, Node, and test environments, plus piecemeal rule sets. Differs from alternatives by offering granular rule categories (e.g., best-practices, ES6, Node) that can be extended individually. Key dependencies: eslint-plugin-import, eslint-plugin-filenames, and optionally babel-eslint and eslint-plugin-react.
Common errors
error ESLint couldn't find the config "formidable". Please make sure to list it in your eslint config. ↓
cause Global ESLint installation cannot resolve shareable configs from packages.
fix
Install eslint locally:
npm install --save-dev eslint eslint-config-formidable and run via npm scripts or ./node_modules/.bin/eslint .. error Cannot find module 'eslint-plugin-filenames' ↓
cause Missing required dependency for all configurations.
fix
Install the plugin:
npm install --save-dev eslint-plugin-filenames. Warnings
deprecated This package is no longer actively maintained by Formidable. ↓
fix Migrate to modern ESLint configs like eslint-config-prettier or eslint-config-airbnb.
gotcha Global ESLint installation fails to extend this config properly due to ESLint issue #43. ↓
fix Install ESLint locally and use `./node_modules/.bin/eslint .` or npm scripts.
gotcha This config tracks old ESLint version (3.19.0) and plugins (eslint-plugin-react 6.0.0). ↓
fix Update to newer ESLint and plugins; consider using more recent config packages.
gotcha The 'formidable' top-level config is ES6-only, not ES5. ↓
fix Use 'formidable/configurations/es5' for ES5 projects.
Install
npm install eslint-config-formidable yarn add eslint-config-formidable pnpm add eslint-config-formidable Imports
- formidable wrong
extends: ['eslint-config-formidable']correctextends: ['formidable'] - formidable/configurations/es5 wrong
extends: ['formidable-configurations-es5']correctextends: ['formidable/configurations/es5'] - formidable/rules/eslint/best-practices/on wrong
requires: ['formidable/rules/eslint/best-practices/on']correctextends: ['formidable/rules/eslint/best-practices/on']
Quickstart
.eslintrc:
---
"extends":
- "formidable/configurations/es6-react"
Then run `./node_modules/.bin/eslint .` because global ESLint may not resolve config correctly.