From 7b48da27dc4c9f116048733052a45225ccddedb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=98=8E=E5=81=A5?= Date: Fri, 2 Jun 2023 22:04:48 +0800 Subject: [PATCH] chore(basic): refesh `standard.js` (#193) --- packages/eslint-config-basic/standard.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,