2016-05-17 01:14:01 +10:00
|
|
|
var warning = process.env['CI'] ? 2 : 1;
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings"
|
|
|
|
],
|
|
|
|
"plugins": ["import"],
|
|
|
|
"rules": {
|
|
|
|
"comma-dangle": 0,
|
|
|
|
"no-unused-vars": [warning, {"vars": "all", "args": "none"}],
|
|
|
|
"no-console": warning,
|
|
|
|
"no-var": 2,
|
|
|
|
"no-debugger": warning,
|
2018-02-01 23:46:12 +02:00
|
|
|
"indent": [warning, 2, {"SwitchCase": 1, "ignoreComments": true}],
|
2016-05-17 01:14:01 +10:00
|
|
|
"max-len": [warning, 100, 2],
|
|
|
|
"prefer-const": warning,
|
|
|
|
"no-fallthrough": warning
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"import/parser": "babel-eslint"
|
|
|
|
},
|
|
|
|
"env": {
|
2018-04-05 01:19:08 +03:00
|
|
|
"node": true,
|
|
|
|
"mocha": true
|
2016-05-17 01:14:01 +10:00
|
|
|
}
|
|
|
|
};
|