Package Exports
- eslint-config-htmlacademy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-htmlacademy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-config-htmlacademy 
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...
}
}
For validating ECMAScript 2015 (ES6) in Node.js environment project use es6
version:
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"es6": true,
"browser": false,
"node": true
},
"extends": "htmlacademy/node",
"rules": {
// Additional rules...
}
}