ESLint shareable config enforcing the Google JavaScript style guide (ES2015+ version). The current stable version is 0.14.0, with peer dependency on ESLint >=5.16.0. This package is the official config from Google, updated to match the Google JS style guide. It is an extension of ESLint's base config that overrides rules to comply with Google's coding standards. It is minimal by design – no additional plugins or custom rules beyond style enforcement. Release cadence is low, typically updated for style guide changes. For new projects, consider using the flattened version from google/gts for easier setup.
npm install eslint-config-googleVerified import paths — ran on the pinned version, not inferred.
Shows installation, ESLint config setup with google config, and running ESLint on a sample file.
Check the changelog and update your code to comply with new rules. Run 'npx eslint --fix' to auto-fix where possible.
If you need TypeScript support, use '@typescript-eslint/eslint-plugin' and '@typescript-eslint/parser' along with overrides.
Upgrade ESLint to >=5.16.0.
Add 'eslint:recommended' to 'extends' array before 'google' to get both sets of rules.
Use eslint-config-prettier to disable any rules that conflict with Prettier.
Run 'npm install --save-dev eslint eslint-config-google' to install the package.
Ensure eslint-config-google is listed in devDependencies and node_modules/ contains it.
Google config only sets core ESLint rules; there is no such rule prefix. Remove any 'google/' prefixed rules from your config.