Skip to content

Commit

Permalink
chore: 순환참조 및 jsx bracket 해제 옵션 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 committed Jun 22, 2024
1 parent a9aa597 commit d526183
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/core/eslint-config/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ module.exports = {
},
],
'no-unused-vars': ['warn', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
'react/jsx-curly-brace-presence': ['warn', { props: 'never', children: 'never' }],
'import/no-cycle': [
'warn',
{
maxDepth: Infinity,
ignoreExternal: true,
},
],
'@typescript-eslint/consistent-type-imports': 'warn',
},
overrides: [
Expand Down
11 changes: 9 additions & 2 deletions packages/core/eslint-config/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ const project = resolve(process.cwd(), 'tsconfig.json');

/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['eslint:recommended', 'prettier', require.resolve('@vercel/style-guide/eslint/next'), 'turbo'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'prettier',
require.resolve('@vercel/style-guide/eslint/next'),
'turbo',
],
plugins: ['@typescript-eslint', 'only-warn', 'import'],
globals: {
React: true,
Expand Down Expand Up @@ -35,10 +41,11 @@ module.exports = {
},
],
'no-unused-vars': ['warn', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
'react/jsx-curly-brace-presence': ['warn', { props: 'never', children: 'never' }],
'import/no-cycle': [
'warn',
{
maxDepth: 1,
maxDepth: Infinity,
ignoreExternal: true,
},
],
Expand Down
1 change: 1 addition & 0 deletions packages/core/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"eslint-config-turbo": "^2.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-react": "^7.34.3",
"typescript": "^5.3.3"
}
}
8 changes: 8 additions & 0 deletions packages/core/eslint-config/react-internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ module.exports = {
},
],
'no-unused-vars': ['warn', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
'react/jsx-curly-brace-presence': ['warn', { props: 'never', children: 'never' }],
'import/no-cycle': [
'warn',
{
maxDepth: Infinity,
ignoreExternal: true,
},
],
'@typescript-eslint/consistent-type-imports': 'warn',
},
overrides: [{ files: ['*.js?(x)', '*.ts?(x)'] }],
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d526183

Please sign in to comment.