Shareable ESLint configuration enforcing OpenLayers coding style. v21.0.0 (stable), updated regularly with dependency bumps. Supports ESLint flat config (eslint.config.js). Differentiator: opinionated set of rules for OpenLayers projects, includes JSdoc and Prettier integration. Requires ESLint as peer dependency.
npm install eslint-config-openlayersVerified import paths — ran on the pinned version, not inferred.
Creates an ESLint flat config extending OpenLayers config with overrides.
Use eslint.config.js with export default [...openlayers];
Refactor code to avoid else-if after return, e.g. remove else block.
Upgrade ESLint to 9.x and use flat config.
Add 'eslint-config-prettier' and 'eslint-plugin-prettier' as devDependencies.
Use `Object` instead of `object` in TypeScript types or JSDoc.
Set 'eslint.useFlatConfig': true in VSCode settings.
Use import syntax in your eslint.config.js or convert to ES module.
Create eslint.config.js and use import openlayers from 'eslint-config-openlayers'; export default [...openlayers];
Remove you can use the built-in 'no-else-return' rule configuration or otherwise adjust.
Ensure eslint-config-openlayers is correctly imported; if using custom parser, set ecmaVersion: 2022.