-
카테고리
-
세부 분야
풀스택
-
해결 여부
미해결
eslint 질문드립니다!
21.09.16 18:43 작성 조회수 119
0
프론트에서 airbnb로 eslint를 설정하였는데 백엔드에서도 설정해서 사용할수 잇을까요?
답변을 작성해보세요.
1
![조현영님의 프로필](https://cdn.inflearn.com/wp-content/uploads/avatars/14793/5bbebf0cc0f37-bpfull.png?w=48)
조현영
지식공유자2021.09.16
네 가능합니다. 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',
},
};
답변 1