{"id":19501,"library":"eslint-config-defaults","title":"eslint-config-defaults","description":"A composable set of ESLint configurations by WalmartLabs. Version 9.0.0 provides ready-to-use configs for ESLint, Google, Gulp, Node.js runtime, AirBnB (es5, es6, es6-react), and Walmart (es5/es6, browser/node/test/react). It also offers piecemeal rule files for custom setups. Dependencies include eslint-plugin-filenames for Walmart configs, and eslint-plugin-react and babel-eslint for React/ES6 configs. Last updated 2016, currently unmaintained.","status":"abandoned","version":"9.0.0","language":"javascript","source_language":"en","source_url":"git://github.com/walmartlabs/eslint-config-defaults","tags":["javascript","code checker","code linter","code standards","code style","eslint-config","eslint","eslintconfig","lint"],"install":[{"cmd":"npm install eslint-config-defaults","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-defaults","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-defaults","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required to use the configs","package":"eslint","optional":false},{"reason":"required by any Walmart config","package":"eslint-plugin-filenames","optional":true},{"reason":"required by any React config (e.g., airbnb/es6-react, walmart/es6-react)","package":"eslint-plugin-react","optional":true},{"reason":"required by any ES6/ES-next config","package":"babel-eslint","optional":true}],"imports":[{"note":"Use the short name 'defaults' in .eslintrc extends array. Full package name may also work but convention is short name.","wrong":"extends: ['eslint-config-defaults']","symbol":"defaults","correct":"extends: ['defaults']"},{"note":"Config paths are relative to the package; must include full path like 'defaults/configurations/...'.","wrong":"extends: ['walmart/es6-browser']","symbol":"defaults/configurations/walmart/es6-browser","correct":"extends: ['defaults/configurations/walmart/es6-browser']"},{"note":"Piecemeal rules are individual files. Require specific rule file like 'eslint-config-defaults/rules/eslint/best-practices'.","wrong":"const rules = require('eslint-config-defaults/rules');","symbol":"rules","correct":"npm install eslint-config-defaults; then require('eslint-config-defaults/rules/eslint/best-practices') in .eslintrc"}],"quickstart":{"code":"// Install: npm install --save-dev eslint eslint-config-defaults\n// .eslintrc.yaml\n---\nextends:\n  - \"defaults\"\n  - \"defaults/configurations/walmart/es6-browser\"\n\n// Or piecemeal: .eslintrc.yaml\n---\nrules:\n  eqeqeq: \"error\"\n  no-console: \"warn\"\n  # ... and more from require('eslint-config-defaults/rules/eslint/best-practices')\n","lang":"javascript","description":"Shows how to use full configs or piecemeal rules in .eslintrc. Extend short names or full paths for prebuilt configs."},"warnings":[{"fix":"Use piecemeal configs instead of extending multiple full configs. See https://github.com/walmartlabs/eslint-config-defaults/issues/38","message":"Extending multiple complete configs can cause unexpected results","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Switch to maintained alternatives like eslint-config-airbnb or eslint-config-standard.","message":"Package is unmaintained since 2016, may not work with recent ESLint versions.","severity":"deprecated","affected_versions":">=9.0.0"},{"fix":"Manually install eslint-plugin-filenames: npm install --save-dev eslint-plugin-filenames","message":"Walmart configs require eslint-plugin-filenames, but peer dependency is not listed in package.json","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Manually install babel-eslint: npm install --save-dev babel-eslint","message":"ES6 configs require babel-eslint, but it's not listed as a peer dependency","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure eslint-config-defaults is installed: npm install --save-dev eslint-config-defaults. Then require the correct file, e.g., require('eslint-config-defaults/rules/eslint/best-practices').","cause":"Using wrong path or not having the package installed.","error":"Error: Cannot find module 'eslint-config-defaults/rules/eslint/best-practices'"},{"fix":"Use integer severity: 0 = off, 1 = warn, 2 = error.","cause":"Using old ESLint config format (string 'warn' instead of number 1).","error":"Configuration for rule 'no-console' is invalid: Value \"warn\" is not a valid severity."},{"fix":"Install eslint-config-defaults and ensure the extends value is 'defaults' (not 'eslint-config-defaults').","cause":"Config package not installed or not specified correctly in extends.","error":"ESLint couldn't find the config \"defaults\" to extend from."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}