0.1.0-alpha.7 • Published 9 months ago

@prestashopcorp/eslint-config v0.1.0-alpha.7

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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.

Install

yarn add @prestashopcorp/eslint-config --dev

Usage

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 function

Try to update prettier to prettier v3