feat: update template
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import js from '@eslint/js'
|
||||
import prettierConfig from 'eslint-config-prettier'
|
||||
import importPlugin from 'eslint-plugin-import'
|
||||
import prettierPlugin from 'eslint-plugin-prettier'
|
||||
import reactHooks from 'eslint-plugin-react-hooks'
|
||||
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||
@@ -20,7 +19,6 @@ export default [
|
||||
'react-hooks': reactHooks,
|
||||
'react-refresh': reactRefresh,
|
||||
prettier: prettierPlugin,
|
||||
import: importPlugin,
|
||||
},
|
||||
languageOptions: {
|
||||
ecmaVersion: 2020,
|
||||
@@ -28,18 +26,7 @@ export default [
|
||||
},
|
||||
rules: {
|
||||
...reactHooks.configs.recommended.rules,
|
||||
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
||||
'import/order': [
|
||||
'error',
|
||||
{
|
||||
groups: [['builtin', 'external'], 'internal', ['parent', 'sibling', 'index']],
|
||||
'newlines-between': 'always',
|
||||
alphabetize: {
|
||||
order: 'asc',
|
||||
caseInsensitive: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
'prettier/prettier': ['error'],
|
||||
},
|
||||
},
|
||||
prettierConfig,
|
||||
|
||||
Reference in New Issue
Block a user