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

Latest commit

 

History

History
27 lines (18 loc) · 846 Bytes

readme.md

File metadata and controls

27 lines (18 loc) · 846 Bytes

⚠️ This config is deprecated. Use @aerian/eslint-config instead. ⚠️

eslint-config-aerian

This is a sharable ESLint config which enforces a strict ES6+ style.

To install, run:

#npm
npm i -D eslint prettier eslint-config-aerian

#yarn
yarn add --dev eslint prettier eslint-config-aerian

To use it, create the following .eslintrc.json:

{
    "extends": ["eslint-config-aerian"]
}

The base formatting uses Prettier, which parses and reformats your code. It runs this through ESLint, so you can run use eslint . --fix to apply Prettier formatting as well as ESLint rules.

As well as formatting from Prettier, these rules also enforce strict ES6+ practices. These are based on eslint-config-es. It enforces ES modules, rather than CommonJS or AMD.