@prestashopcorp/eslint-config
v1.0.1-beta.4
Published
Basic Eslint rules for PrestaShop projects
Readme
Prestashop eslint-config
An eslint sharable config for Prestashop Javascript projects. This condig is the recommended eslint configuration for Javascript projects at PrestaShop This config include eslint-config-standard and prettier/recommended rules.
Npm config
This package is published in an Npm private registry.
If is not do, you have to set the authentication config by running this commands:
npm set "//registry.npmjs.org/:_authToken=XXXXX"
npm set "@prestashopcorp:registry=https://registry.npmjs.org"Replace XXXXX by the prestashopcorp NPM registry token. You can ask for the token on the #team-platform-engineering slack channel.
Install
yarn add @prestashopcorp/eslint-config --devUsage
Shareable configs are designed to work with the extends feature of .eslintrc files. You can learn more about Shareable Configs on the official ESLint website.
Add this to your .eslintrc file:
{
"extends": "@prestashopcorp/eslint-config"
}troubleshooting
Prettier error
TypeError: prettier.resolveConfig is not a functionTry to update prettier to prettier v3
