Skip to content

Commit

Permalink
style: eslint 규칙 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Arooming committed Jul 3, 2024
1 parent b7a3205 commit 2e95184
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'prettier',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh','prettier'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
module.exports = [
{
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'prettier',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh', 'prettier'],
rules: {
'react-refresh/only-export-components': [
'warn',
{
'react/jsx-props-no-spreading': 'off',
'eol-last': ['error', 'always'],
'react/react-in-jsx-scope': 'off',
'no-multi-spaces': 'error',
'simple-import-sort/imports': 'error',
allowConstantExport: true,
},
],
},
},
}
];

0 comments on commit 2e95184

Please sign in to comment.