🤍 전 강의 25% 할인 중 🤍

2024년 상반기를 돌아보고 하반기에도 함께 성장해요!
인프런이 준비한 25% 할인 받으러 가기 >>

  • 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

eslint 질문드립니다!

21.09.16 18:43 작성 조회수 119

0

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

답변 1

답변을 작성해보세요.

1

네 가능합니다. 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',
},
};

 

쿠마스님의 프로필

쿠마스

질문자

2021.09.17

감사합니다!

채널톡 아이콘