0.3.0-beta.1 • Published 9 months ago

@prestashopcorp/eslint-config v0.3.0-beta.1

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.

Npm config

This package is published in an Npm private registry.

if it is not done, you have to set the authentication config by running this commands:

npm set "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN"
npm set "@prestashopcorp:registry=https://npm.pkg.github.com"

Install

yarn install -D @prestashopcorp/eslint-config

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"
}