강의

멘토링

커뮤니티

Inflearn Community Q&A

hs6383's profile image
hs6383

asked

[Renewal] Creating NodeBird SNS with React

eslint 질문드립니다!

Written on

·

185

0

프론트에서 airbnb로 eslint를 설정하였는데 백엔드에서도 설정해서 사용할수 잇을까요?
Next.jsexpressreduxnodejsreact

Answer 1

1

zerocho님의 프로필 이미지
zerocho
Instructor

네 가능합니다. react 플러그인만 제외하고 쓰시면 됩니다. 아래는 제 회사 설정입니다.

 

module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};

 

hs6383님의 프로필 이미지
hs6383
Questioner

감사합니다!

hs6383's profile image
hs6383

asked

Ask a question