knex/.eslintrc.js
2016-05-18 19:34:35 +10:00

29 lines
628 B
JavaScript

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,
"indent": [warning, 2, {"SwitchCase": 1}],
"max-len": [warning, 100, 2],
"prefer-const": warning,
"no-fallthrough": warning
},
"settings": {
"import/parser": "babel-eslint"
},
"env": {
"node": true
}
};