Skip to content

Commit

Permalink
chore: fix eslint.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Nov 7, 2024
1 parent 196bf03 commit 4a89939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 65 deletions.
61 changes: 0 additions & 61 deletions .eslintrc.json

This file was deleted.

6 changes: 2 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const compat = new FlatCompat({
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

// npx @eslint/migrate-config .eslintrc.json
export default [
{
ignores: ['node_modules/**/*', '**/CHANGELOG.md', '**/package-lock.json', 'dist/**/*', 'build/**/*', '**/coverage'],
Expand Down Expand Up @@ -57,22 +57,20 @@ export default [
'react-hooks/rules-of-hooks': 'error',
'react/display-name': 'off',
'react-hooks/exhaustive-deps': 'off',

'react/prop-types': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],

semi: 'off',
'no-use-before-define': 'off',
'comma-dangle': 'off',
'space-before-function-paren': 'off',
'multiline-ternary': 'off',
'promise/param-names': 'off',
'no-debugger': 'off',
'react/prop-types': 'off',
'no-extra-parens': 'off',
'eol-last': 'off',
'jsx-quotes': 'off',
Expand Down

0 comments on commit 4a89939

Please sign in to comment.