http://eslint.org/docs/developer-guide/working-with-custom-formatters#the-message-object
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": 2
}
}
http://eslint.org/docs/user-guide/configuring
http://eslint.org/docs/rules/no-compare-neg-zero
"semi": [2, "always"]
1
forwarnings
and2
forerrors
& "rules": { "semi": [2, "always"] }
.babelrc
.editorconfig
.eslintrc
.npmrc
https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb
https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/.eslintrc
.eslintrc
{
"extends": "./index.js",
"rules": {
// disable requiring trailing commas because it might be nice to revert to being JSON at some point,
// and I don't want to make big changes now.
"comma-dangle": 0
}
}
eslint-1-warnings-2-errors
https://gist.github.com/xgqfrms-gildata/7d861fde6dd15262ae007e68ca0898f0
.babelrc
{
"presets": ["airbnb"]
}
https://gist.github.com/xgqfrms-GitHub/b95f1824f2ea5a2e28b09dff6fd191bc
https://gist.github.com/xgqfrms-gildata/f2b41a63feb21081e9f51d464d7434d7#gistcomment-2134644