From 764eab3c6ff8d1c543a6adc59fd16472737dc977 Mon Sep 17 00:00:00 2001 From: Grace Park Date: Mon, 27 Jan 2025 16:37:51 +0000 Subject: [PATCH] run prettier --- lib/configs/flat/typescript.js | 47 +++++++++++++++------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/lib/configs/flat/typescript.js b/lib/configs/flat/typescript.js index 9218f73e..29c48e2d 100644 --- a/lib/configs/flat/typescript.js +++ b/lib/configs/flat/typescript.js @@ -1,32 +1,27 @@ -const eslint = require('@eslint/js') const tseslint = require('typescript-eslint') const escompat = require('eslint-plugin-escompat') const github = require('../../plugin') const {fixupPluginRules} = require('@eslint/compat') -module.exports = tseslint.config( - ...tseslint.configs.recommended, - ...escompat.configs['flat/typescript-2020'], - { - languageOptions: { - parser: tseslint.parser, - }, - plugins: {'@typescript-eslint': tseslint.plugin, escompat, github: fixupPluginRules(github)}, - rules: { - camelcase: 'off', - 'no-unused-vars': 'off', - 'no-shadow': 'off', - 'no-invalid-this': 'off', - '@typescript-eslint/no-invalid-this': ['error'], - '@typescript-eslint/no-shadow': ['error'], - '@typescript-eslint/interface-name-prefix': 'off', - '@typescript-eslint/array-type': ['error', {default: 'array-simple'}], - '@typescript-eslint/no-use-before-define': 'off', - '@typescript-eslint/explicit-member-accessibility': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/no-unused-vars': 'error', - '@typescript-eslint/explicit-module-boundary-types': 'off', - }, +module.exports = tseslint.config(...tseslint.configs.recommended, ...escompat.configs['flat/typescript-2020'], { + languageOptions: { + parser: tseslint.parser, }, -) + plugins: {'@typescript-eslint': tseslint.plugin, escompat, github: fixupPluginRules(github)}, + rules: { + camelcase: 'off', + 'no-unused-vars': 'off', + 'no-shadow': 'off', + 'no-invalid-this': 'off', + '@typescript-eslint/no-invalid-this': ['error'], + '@typescript-eslint/no-shadow': ['error'], + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/array-type': ['error', {default: 'array-simple'}], + '@typescript-eslint/no-use-before-define': 'off', + '@typescript-eslint/explicit-member-accessibility': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/no-non-null-assertion': 'off', + '@typescript-eslint/no-unused-vars': 'error', + '@typescript-eslint/explicit-module-boundary-types': 'off', + }, +})