Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

ESLint configuration for our Yprox CMS apps

License

Notifications You must be signed in to change notification settings

Yproximite/eslint-config-yprox

Repository files navigation

This package is deprecated, use eslint-config-generator instead.

eslint-config-yprox

Node CI

ESLint configuration for our Yprox CMS apps

Features

Installation

This package is hosted on GitHub Packages, so you must tell to npm/yarn where to download it. Please read Authenticating to GitHub Packages.

You can run npm login --registry=https://npm.pkg.github.com --scope=@yproximite or create a .npmrc file with the following content:

@yproximite:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=<access token>

Then run:

$ yarn add --dev @yproximite/eslint-config-yprox eslint@^7.0.0 babel-eslint@^10.0.0

Usage

Edit your ESLint configuration file with:

{
  "extends": ["@yproximite/yprox"]
}

or with Prettier support:

{
  "extends": ["@yproximite/yprox/prettier"]
}

Note: you should install Prettier yourself with `yarn add --dev prettier@^2.0.0


How to contribute

You need to install some dependencies first:

$ yarn

Contribution

Publishing a new release

This is automatically done by GitHub Actions and semantic-release when you merge a pull request.