diff --git a/eslint.config.mjs b/eslint.config.mjs index 8fec1e4c..e6ec1c6d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -15,12 +15,12 @@ const __dirname = path.dirname(__filename) const compat = new FlatCompat({ baseDirectory: __dirname, recommendedConfig: js.configs.recommended, - allConfig: js.configs.all, + allConfig: js.configs.all }) // npx @eslint/migrate-config .eslintrc.json export default [ { - ignores: ['node_modules/**/*', '**/CHANGELOG.md', '**/package-lock.json', 'dist/**/*', 'build/**/*', '**/coverage'], + ignores: ['node_modules/**/*', '**/CHANGELOG.md', '**/package-lock.json', 'dist/**/*', 'build/**/*', '**/coverage'] }, ...compat.extends('plugin:react/recommended', 'prettier'), { @@ -28,12 +28,12 @@ export default [ react, '@typescript-eslint': typescriptEslint, 'react-hooks': fixupPluginRules(reactHooks), - prettier, + prettier }, languageOptions: { globals: { - ...globals.browser, + ...globals.browser }, parser: tsParser, @@ -42,15 +42,15 @@ export default [ parserOptions: { ecmaFeatures: { - jsx: true, - }, - }, + jsx: true + } + } }, settings: { react: { - version: 'detect', - }, + version: 'detect' + } }, rules: { @@ -61,8 +61,8 @@ export default [ 'prettier/prettier': [ 'error', { - endOfLine: 'auto', - }, + endOfLine: 'auto' + } ], semi: 'off', 'no-use-before-define': 'off', @@ -92,7 +92,7 @@ export default [ 'no-inner-declarations': 'off', 'no-unused-expressions': 'off', 'no-unused-vars': 'off', - 'no-plusplus': 'off', - }, - }, + 'no-plusplus': 'off' + } + } ]