diff --git a/packages/eslint-config-basic/standard.js b/packages/eslint-config-basic/standard.js index 20d1d9a..791a2a8 100644 --- a/packages/eslint-config-basic/standard.js +++ b/packages/eslint-config-basic/standard.js @@ -9,20 +9,24 @@ module.exports = { }, sourceType: 'module', }, + env: { es2021: true, node: true, }, + plugins: [ 'import', 'n', 'promise', ], + globals: { document: 'readonly', navigator: 'readonly', window: 'readonly', }, + rules: { 'no-var': 'warn', 'object-shorthand': ['warn', 'properties'], @@ -126,7 +130,7 @@ module.exports = { 'no-mixed-operators': ['error', { groups: [ ['==', '!=', '===', '!==', '>', '>=', '<', '<='], - ['&&', '||', '?:'], + ['&&', '||'], ['in', 'instanceof'], ], allowSamePrecedence: true,