최초 commit/push
This commit is contained in:
39
eslint.config.mjs
Normal file
39
eslint.config.mjs
Normal file
@@ -0,0 +1,39 @@
|
||||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
||||
import eslintPluginReact from 'eslint-plugin-react'
|
||||
import eslintPluginReactHooks from 'eslint-plugin-react-hooks'
|
||||
import globals from 'globals'
|
||||
|
||||
export default [
|
||||
{ ignores: ['eslint.config.mjs'] },
|
||||
{
|
||||
...eslintPluginReact.configs.flat.recommended,
|
||||
...eslintPluginReact.configs.flat['jsx-runtime'],
|
||||
files: ['src/**/*.{js,jsx}'],
|
||||
plugins: {
|
||||
eslintPluginReact,
|
||||
'react-hooks': eslintPluginReactHooks,
|
||||
},
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.node,
|
||||
},
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...eslintPluginReactHooks.configs.recommended.rules,
|
||||
},
|
||||
},
|
||||
eslintPluginPrettierRecommended,
|
||||
]
|
||||
Reference in New Issue
Block a user