Skip to content

Commit

Permalink
feat: eslint 설정 추가
Browse files Browse the repository at this point in the history
- simple-import-sort
- unused-imports
  • Loading branch information
saseungmin committed Oct 7, 2024
1 parent 3baed58 commit 5479ab7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,10 @@ module.exports = {
'plugin:@next/next/recommended',
],
plugins: [
'simple-import-sort',
'unused-imports',
// set your plugins
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
settings: {
'import/resolver': {
alias: {
Expand All @@ -53,6 +48,11 @@ module.exports = {
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
project: ['./tsconfig.json'],
},
},
Expand All @@ -79,6 +79,9 @@ module.exports = {
},
],
rules: {
'simple-import-sort/exports': 'error',
'unused-imports/no-unused-imports': 'error',
'simple-import-sort/imports': 'error',
// set your rules
},
};
1 change: 1 addition & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Image from 'next/image';

import styles from './page.module.scss';

function Home() {
Expand Down

0 comments on commit 5479ab7

Please sign in to comment.