yiiworld / eslint-config-htmlacademy

HTML Academy ESLint config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-config-htmlacademy Build status

HTML Academy

ESLint shareable config for the HTML Academy ECMAScript courses

Installation

$ npm install --save-dev eslint eslint-config-htmlacademy

Usage

Once the eslint-config-htmlacademy package is installed, you can use it by specifying htmlacademy in the extends section of your ESLint configuration.

For validating ECMAScript 5 project use es5 version:

{
  "extends": "htmlacademy/es5",
  "rules": {
    // Additional rules...
  }
}

For validating ECMAScript 2015 (ES6) project use es6 version:

{
  "parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module"
  },
  "env": {
    "es6": true
  },
  "extends": "htmlacademy/es6",
  "rules": {
    // Additional rules...
  }
}

About

HTML Academy ESLint config

License:MIT License


Languages

Language:JavaScript 100.0%