-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
35 lines (35 loc) · 870 Bytes
/
.eslintrc.js
File metadata and controls
35 lines (35 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'next/core-web-vitals',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
],
plugins: ['prettier', '@typescript-eslint'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: true,
useTabs: false,
tabWidth: 2,
trailingComma: 'all',
printWidth: 100,
bracketSpacing: true,
arrowParens: 'avoid',
},
],
// 타입스크립트 interface안의 함수 매개변수 no-unused-vars 속성에 대해서 https://stackoverflow.com/a/61555310
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
};