@aimake/eslint-config

2.0.2 • Public • Published

@aimake/eslint-config

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

Based on Airbnb JavaScript Style Guide

Install

npm i @aimake/eslint-config -D

Usage

ES5

{
  "extends": "@aimake/eslint-config",
  "env": {
    "browser": true
  }
}

ES.NEXT

{
  "extends": "@aimake/eslint-config/es6",
  "env": {
    "browser": true
  }
}

React

{
  "extends": "@aimake/eslint-config/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

/@aimake/eslint-config/

    Package Sidebar

    Install

    npm i @aimake/eslint-config

    Weekly Downloads

    1

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    3.94 kB

    Total Files

    11

    Last publish

    Collaborators

    • aimake.io
    • qiandao