knex/.eslintrc.js

30 lines
671 B
JavaScript
Raw Normal View History

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,
"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": {
"node": true,
"mocha": true
2016-05-17 01:14:01 +10:00
}
};