From 5c04bdf1d11bf3f1f38768269e9f724ab0262fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Lui=20=E5=88=98=E5=B1=95=E9=B9=8F?= Date: Mon, 11 Nov 2024 05:37:25 -0800 Subject: [PATCH] Removed semicolons + enforcement --- eslint.config.mjs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index eab3410..e45f145 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,6 @@ -import js from '@eslint/js'; -import globals from 'globals'; -import json from 'eslint-plugin-json'; +import js from '@eslint/js' +import globals from 'globals' +import json from 'eslint-plugin-json' export default [ js.configs.recommended, @@ -8,7 +8,6 @@ export default [ { rules: { 'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere - 'semi': ['error', 'always'], // enforce semicolons at end of statement 'quotes': ['error', 'single'], // enforce single quotes for string literals 'comma-dangle': ['error', 'never'], // enforce no trailing commas in arrays or objects 'no-async-promise-executor': 'off', // allow promise executor functions to be async (to accomodate await lines) @@ -25,4 +24,4 @@ export default [ }, { files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }}, { files: ['**/*.json'], ...json.configs['recommended'] } -]; +]