{"id":19556,"library":"eslint-config-prestashop","title":"eslint-config-prestashop","description":"PrestaShop's official shareable ESLint config based on Airbnb Base style guide. Version 0.2.1 requires eslint-config-airbnb-base ^15.0.0 and eslint-plugin-import ^2.25.3. Config is applied via `extends: 'prestashop'` and supports integration with `npx eslint --init`. Maintained by PrestaShop team for projects following their JavaScript styleguide.","status":"active","version":"0.2.1","language":"javascript","source_language":"en","source_url":"https://github.com/PrestaShop/eslint-config","tags":["javascript","eslint","eslintconfig","config","styleguide"],"install":[{"cmd":"npm install eslint-config-prestashop","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-prestashop","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-prestashop","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for base rules","package":"eslint-config-airbnb-base","optional":false},{"reason":"Peer dependency for import rules","package":"eslint-plugin-import","optional":false}],"imports":[{"note":"ESLint automatically resolves the `eslint-config-` prefix, so just 'prestashop' is needed, not the full name.","wrong":"extends: 'eslint-config-prestashop'","symbol":"eslint-config-prestashop","correct":"extends: 'prestashop' in .eslintrc"},{"note":"This is a shareable config, not a JavaScript module to import. Use the `extends` field in ESLint config.","wrong":"const config = require('eslint-config-prestashop');","symbol":"default config","correct":"module.exports = { extends: 'prestashop' }"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"extends\": \"prestashop\"\n}\n\n// Then install dependencies:\n// npm install --save-dev eslint-config-prestashop eslint-config-airbnb-base eslint-plugin-import eslint","lang":"javascript","description":"Shows how to configure ESLint to use PrestaShop's config via the extends field, and lists required peer dependencies."},"warnings":[{"fix":"Use extends: 'prestashop' instead of extends: 'eslint-config-prestashop'.","message":"Do not include 'eslint-config-' prefix in the extends value; use just 'prestashop'.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Ensure eslint-config-airbnb-base is version ^15.0.0 or higher.","message":"Requires eslint-config-airbnb-base ^15.0.0; older versions may be incompatible.","severity":"breaking","affected_versions":">=0.2.0"},{"fix":"Ensure eslint-plugin-import is version ^2.25.3 or higher.","message":"Requires eslint-plugin-import ^2.25.3; older versions may be incompatible.","severity":"breaking","affected_versions":">=0.2.0"},{"fix":"Verify with your ESLint version and consider forking if needed.","message":"The config may not be actively updated for latest ESLint versions; check compatibility.","severity":"deprecated","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev eslint-config-prestashop eslint-config-airbnb-base eslint-plugin-import eslint","cause":"Missing peer dependencies or wrong install","error":"Error: Cannot find module 'eslint-config-prestashop'"},{"fix":"Update eslint-plugin-import to ^2.25.3","cause":"Incompatible version of eslint-plugin-import","error":"Configuration for rule \"import/no-unresolved\" is invalid"},{"fix":"Ensure extends is exactly 'prestashop' (no extra hyphens or prefix)","cause":"Typo in extends value or incorrect file path","error":"ESLint couldn't find the config \"prestashop\" after the package was installed."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}