2017-01-09 21:24:12 +01:00
|
|
|
{
|
|
|
|
// Extend existing configuration
|
|
|
|
// from ESlint and eslint-plugin-react defaults.
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended", "plugin:react/recommended"
|
|
|
|
],
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
// Enable ES6 support. If you want to use custom Babel
|
|
|
|
// features, you will need to enable a custom parser
|
|
|
|
// as described in a section below.
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 6,
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
2017-02-05 21:22:42 +01:00
|
|
|
"es6": true,
|
|
|
|
"jasmine": true
|
2017-01-09 21:24:12 +01:00
|
|
|
},
|
|
|
|
// Enable custom plugin known as eslint-plugin-react
|
|
|
|
"plugins": [
|
2017-02-05 21:22:42 +01:00
|
|
|
"react",
|
|
|
|
"jasmine"
|
2017-01-09 21:24:12 +01:00
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
// Disable `no-console` rule
|
|
|
|
"no-console": 1,
|
|
|
|
// Give a warning if identifiers contain underscores
|
|
|
|
"no-underscore-dangle": 1
|
|
|
|
}
|
|
|
|
}
|