mirror of
https://github.com/knex/knex.git
synced 2025-07-31 04:41:59 +00:00
29 lines
628 B
JavaScript
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
|
|
}
|
|
};
|