eslint 적용
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import eslint from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import reactHooks from 'eslint-plugin-react-hooks';
|
||||
|
||||
import stylistic from '@stylistic/eslint-plugin';
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: ['node_modules/', 'dist/', 'build/', '.react-router/'] },
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommended,
|
||||
stylistic.configs.customize({
|
||||
indent: 2,
|
||||
semi: true,
|
||||
jsx: true,
|
||||
braceStyle: '1tbs',
|
||||
commaDangle: 'always-multiline',
|
||||
quoteProps: 'as-needed',
|
||||
arrowParens: true,
|
||||
}),
|
||||
reactHooks.configs.flat.recommended,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user