HTML Academy
ESLint shareable config for the HTML Academy ECMAScript courses
$ npm install --save-dev eslint eslint-config-htmlacademy
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...
}
}