{"id":19620,"library":"eslint-config-wantedly","title":"eslint-config-wantedly","description":"ESLint configuration for Wantedly, version 4.0.0. This package provides a shareable ESLint config focused on JavaScript linting, including React, import, JSX accessibility, and Jest plugins. It uses @babel/eslint-parser as the parser. The major breaking change in v4.0.0 is the switch from legacy config (extends) to ESLint's flat config format, requiring ESLint v9. For ESLint v8 and under, use version 3.x. Configs are exported as flat config arrays.","status":"active","version":"4.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/wantedly/frolint#master","tags":["javascript","eslint"],"install":[{"cmd":"npm install eslint-config-wantedly","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-wantedly","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-wantedly","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"parser for ESLint","package":"@babel/eslint-parser","optional":false},{"reason":"React-specific linting rules","package":"eslint-plugin-react","optional":false},{"reason":"import/export syntax linting","package":"eslint-plugin-import","optional":false},{"reason":"accessibility rules for JSX","package":"eslint-plugin-jsx-a11y","optional":false},{"reason":"Jest testing linting rules","package":"eslint-plugin-jest","optional":false}],"imports":[{"note":"ESM-only since v4.0.0; use dynamic import() in CommonJS.","wrong":"const base = require('eslint-config-wantedly')","symbol":"base","correct":"import { base } from 'eslint-config-wantedly'"},{"note":"v4.0.0 exports named 'base' as a flat config array; the default export is not documented.","wrong":"module.exports = require('eslint-config-wantedly')","symbol":"flat config array (default)","correct":"import * as configWantedly from 'eslint-config-wantedly'"},{"note":"Legacy usage (v3.x) requires the string 'wantedly', not the package name.","wrong":"\"extends\": [\"eslint-config-wantedly\"]","symbol":"extends in legacy","correct":"\"extends\": [\"wantedly\"] in .eslintrc.json"}],"quickstart":{"code":"// Install the package and required peer dependencies\n// npm install --save-dev eslint eslint-config-wantedly @babel/core @babel/eslint-parser eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-jest\n\n// eslint.config.js (flat config, v4.x)\nimport { base as configWantedly } from 'eslint-config-wantedly';\n\nexport default [\n  ...configWantedly,\n  {\n    rules: {\n      'no-console': 'warn',\n    },\n  },\n];\n\n// Run ESLint\n// npx eslint .","lang":"javascript","description":"Set up ESLint with eslint-config-wantedly flat config (v4.x) and a custom rule."},"warnings":[{"fix":"Upgrade to ESLint v9 and use flat config syntax as shown in the quickstart.","message":"Flat config format: eslint-config-wantedly v4.0.0+ uses ESLint flat config; legacy .eslintrc configs are not supported.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Update ESLint to v9 or pin eslint-config-wantedly to v3.x.","message":"ESLint v9 requirement: v4.0.0 requires ESLint v9; previous versions require ESLint v8.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Migrate to flat config format. See quickstart.","message":"Legacy config format (extends) is deprecated as of v4.0.0.","severity":"deprecated","affected_versions":">=4.0.0"},{"fix":"Install @babel/core and @babel/eslint-parser.","message":"Parser not found: @babel/eslint-parser must be installed as a peer dependency.","severity":"gotcha","affected_versions":">=4.0.0"},{"fix":"Install all peer dependencies listed in the quickstart.","message":"Missing plugins: eslint-plugin-react, eslint-plugin-import, eslint-plugin-jsx-a11y, eslint-plugin-jest must be installed.","severity":"gotcha","affected_versions":">=4.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use the flat config export instead, or downgrade to v3.x.","cause":"Using legacy extends in ESLint v8 with eslint-config-wantedly v4, which uses flat config.","error":"Error: Failed to load config 'wantedly' to extend from."},{"fix":"npm install --save-dev @babel/core @babel/eslint-parser","cause":"Missing peer dependency @babel/eslint-parser.","error":"Error: Cannot find module '@babel/eslint-parser'"},{"fix":"npm install --save-dev eslint-plugin-react","cause":"Missing peer dependency eslint-plugin-react.","error":"Error: Failed to load plugin 'react' declared in 'eslint-config-wantedly'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}