@highereducation/eslint-config v2.9.10
eslint-config
This package provides HigherEducation.com's .eslintrc
as an extensible shared config. Based on and extends from Airbnb's ESLint config.
@highereducation/eslint-config
Our default export contains all of our ESLint rules, including ECMAScript 6+ and React. It requires eslint
, eslint-plugin-import
, eslint-plugin-react
, and eslint-plugin-jsx-a11y
.
Install
$ npm i -D @highereducation/eslint-config eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint
Usage
Add to your eslint configuration (here, in .eslintrc
)
{
"extends": "@highereducation/eslint-config"
}
Or package.json
like this:
{
"eslintConfig": {
"extends": "@highereducation/eslint-config"
}
}
ES6 and Babel
If you're using stage-0
, stage-1
, or stage-2
Babel features, you may need to use babel-eslint
as the parser (https://github.com/babel/babel-eslint).
Just run npm i -D babel-eslint
to install and then add the following to your .eslintrc
config:
"parser": "babel-eslint"
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago