Closed Ryan-Dia closed 1 year ago
eslint์ prettier๋ฅผ ์ค์ ํ์์ต๋๋ค.
eslint ์ค์
module.exports = { env: { browser: true, commonjs: true, es2021: true, }, extends: ['airbnb-base', 'plugin:jsdoc/recommended', 'prettier'], parserOptions: { ecmaVersion: 'latest', }, rules: { // ESM ์ฌ์ฉ์ผ๋ก ์ธํ ํ์ผ ํ์ฅ์ ํ๊ธฐ ์๋ฌดํ 'import/extensions': ['error', 'always', { ignorePackages: true }],
// JSDoc๊ณผ ๊ด๋ จ๋ ์ค๋ฅ ์นจ๋ฌต 'jsdoc/require-param-description': 'off', 'jsdoc/require-returns-description': 'off',
'import/export': 0, }, overrides: [ { files: ['tests/*/.js', 'src/utils/validator/utils/*/.js'], rules: { 'max-lines-per-function': 'off', 'no-new': 'off', 'no-undef': 'off', 'arrow-body-style': 'off', }, }, ], };
prettier ์ค์
{ "singleQuote": true, "semi": true, "useTabs": false, "tabWidth": 2, "trailingComma": "all", "printWidth": 100, "bracketSpacing": true, "arrowParents": "always", "endOfLine": "auto" }
What is this PR? ๐
eslint์ prettier๋ฅผ ์ค์ ํ์์ต๋๋ค.
eslint ์ค์
// JSDoc๊ณผ ๊ด๋ จ๋ ์ค๋ฅ ์นจ๋ฌต 'jsdoc/require-param-description': 'off', 'jsdoc/require-returns-description': 'off',
'import/export': 0, }, overrides: [ { files: ['tests/*/.js', 'src/utils/validator/utils/*/.js'], rules: { 'max-lines-per-function': 'off', 'no-new': 'off', 'no-undef': 'off', 'arrow-body-style': 'off', }, }, ], };
prettier ์ค์