eslint-config-legao

ESlint rules for Legao with [ 'ES5', 'ES.NEXT', 'React' ] support.

Usage no npm install needed!

<script type="module">
  import eslintConfigLegao from 'https://cdn.skypack.dev/eslint-config-legao';
</script>

README

eslint-config-legao

ESlint rules for Legao with [ 'ES5', 'ES.NEXT', 'React' ] support.

Based on Airbnb JavaScript Style Guide

Install

tnpm i eslint-config-legao@latest -D

Usage

ES5

{
  "extends": "legao",
  "env": {
    "browser": true
  }
}

ES.NEXT

{
  "extends": "legao/es6",
  "env": {
    "browser": true
  }
}

React

{
  "extends": "legao/react",
  "env": {
    "browser": true
  }
}

Tips

  • If you use some experimental features with Babel, you may need babel-eslint

Development

Edit rules in rules to override rules of Airbnb.

Test

npm test