Skip to content

Commit

Permalink
Merge pull request #121 from nini22P/next
Browse files Browse the repository at this point in the history
v1.9.0
  • Loading branch information
nini22P authored Oct 28, 2024
2 parents 464d07d + 656cc8c commit c765489
Show file tree
Hide file tree
Showing 57 changed files with 4,202 additions and 4,148 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

43 changes: 43 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { fixupConfigRules } from '@eslint/compat'
import reactRefresh from 'eslint-plugin-react-refresh'
import globals from 'globals'
import tsParser from '@typescript-eslint/parser'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
})

export default [...fixupConfigRules(compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
)), {
plugins: {
'react-refresh': reactRefresh,
},

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

parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
},

rules: {
'react-refresh/only-export-components': 'warn',
quotes: ['warn', 'single'],
semi: ['warn', 'never'],
},
}]
Loading

0 comments on commit c765489

Please sign in to comment.