Skip to content

Commit

Permalink
style: format code with Prettier and StandardJS
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 4a89939 according to the output
from Prettier and StandardJS.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Nov 7, 2024
1 parent 4a89939 commit cc17def
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ 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'),
{
plugins: {
react,
'@typescript-eslint': typescriptEslint,
'react-hooks': fixupPluginRules(reactHooks),
prettier,
prettier
},

languageOptions: {
globals: {
...globals.browser,
...globals.browser
},

parser: tsParser,
Expand All @@ -42,15 +42,15 @@ export default [

parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
jsx: true
}
}
},

settings: {
react: {
version: 'detect',
},
version: 'detect'
}
},

rules: {
Expand All @@ -61,8 +61,8 @@ export default [
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
endOfLine: 'auto'
}
],
semi: 'off',
'no-use-before-define': 'off',
Expand Down Expand Up @@ -92,7 +92,7 @@ export default [
'no-inner-declarations': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': 'off',
'no-plusplus': 'off',
},
},
'no-plusplus': 'off'
}
}
]

0 comments on commit cc17def

Please sign in to comment.