2018-10-22 13:38:17 +02:00
|
|
|
const warning = process.env['CI'] ? 2 : 1;
|
2016-05-17 01:14:01 +10:00
|
|
|
|
|
|
|
module.exports = {
|
2019-06-04 00:37:17 +02:00
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2018,
|
|
|
|
},
|
2018-07-09 08:10:34 -04:00
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:import/errors',
|
|
|
|
'plugin:import/warnings',
|
|
|
|
'prettier',
|
2016-05-17 01:14:01 +10:00
|
|
|
],
|
2023-01-22 16:13:24 +02:00
|
|
|
plugins: ['prettier', 'import', 'mocha-no-only'],
|
2018-07-09 08:10:34 -04:00
|
|
|
rules: {
|
2022-03-20 17:25:54 +01:00
|
|
|
'mocha-no-only/mocha-no-only': ['error'],
|
2018-07-09 08:10:34 -04:00
|
|
|
'no-unused-vars': [warning, { vars: 'all', args: 'none' }],
|
2020-12-25 20:33:06 +02:00
|
|
|
'no-console': 'off',
|
2023-01-22 16:13:24 +02:00
|
|
|
'no-empty': 'off',
|
2018-07-09 08:10:34 -04:00
|
|
|
'no-var': 2,
|
|
|
|
'no-debugger': warning,
|
|
|
|
'prefer-const': warning,
|
|
|
|
'no-fallthrough': warning,
|
2019-11-28 22:44:18 +03:00
|
|
|
'require-atomic-updates': 0,
|
2016-05-17 01:14:01 +10:00
|
|
|
},
|
2018-07-09 08:10:34 -04:00
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
mocha: true,
|
2019-05-26 18:03:07 -07:00
|
|
|
es6: true,
|
2016-05-17 01:14:01 +10:00
|
|
|
},
|
|
|
|
};
|