Inflearn Community Q&A
eslint 질문드립니다!
Written on
·
185
0
프론트에서 airbnb로 eslint를 설정하였는데 백엔드에서도 설정해서 사용할수 잇을까요?
Next.jsexpressreduxnodejsreact
Answer 1
1
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',
},
};





감사합니다!