mirror of
https://github.com/knex/knex.git
synced 2025-11-03 19:29:42 +00:00
29 lines
561 B
JavaScript
29 lines
561 B
JavaScript
const warning = process.env['CI'] ? 2 : 1;
|
|
|
|
module.exports = {
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:import/errors',
|
|
'plugin:import/warnings',
|
|
'prettier',
|
|
],
|
|
plugins: ['import'],
|
|
rules: {
|
|
'no-unused-vars': [warning, { vars: 'all', args: 'none' }],
|
|
'no-console': warning,
|
|
'no-var': 2,
|
|
'no-debugger': warning,
|
|
'prefer-const': warning,
|
|
'no-fallthrough': warning,
|
|
'require-atomic-updates': 0,
|
|
},
|
|
env: {
|
|
node: true,
|
|
mocha: true,
|
|
es6: true,
|
|
},
|
|
};
|