Skip to content

Commit

Permalink
merge: [FE] eslint + prettier 적용 (#14)
Browse files Browse the repository at this point in the history
merge: [FE] eslint + prettier 적용 (#14)
  • Loading branch information
HBSPS authored Nov 8, 2023
2 parents 4c63971 + 7ceea7f commit 0930695
Show file tree
Hide file tree
Showing 5 changed files with 1,377 additions and 20 deletions.
28 changes: 22 additions & 6 deletions frontEnd/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended'],
ignorePatterns: ['dist', '.eslintrc.cjs'],
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'react/react-in-jsx-scope': 'off',
},
};
3 changes: 2 additions & 1 deletion frontEnd/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 140
"printWidth": 140,
"endOfLine": "auto"
}
Loading

0 comments on commit 0930695

Please sign in to comment.