Skip to content

Commit

Permalink
fix: json lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kang-heewon committed Jun 2, 2024
1 parent 9f17ea7 commit 0666254
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 61 deletions.
3 changes: 0 additions & 3 deletions libs/shared/utils-eslint-config/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ module.exports = {
prefer: 'no-type-imports',
},
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'turbo/no-undeclared-env-vars': ['warn'],
},
},
Expand Down
110 changes: 52 additions & 58 deletions libs/shared/utils-eslint-config/react.js
Original file line number Diff line number Diff line change
@@ -1,76 +1,70 @@
module.exports = {
root: true,
extends: ['plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended', 'turbo'],
plugins: ['prettier', 'import', 'react'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
overrides: [
{
files: ['*.ts', '*.tsx', '*.js', '*.jsx', '*.cjs', '*.mjs'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended', 'turbo'],
plugins: ['prettier', 'import', 'react', 'unused-imports'],
rules: {
'react-hooks/exhaustive-deps': [
'warn',
{
enableDangerousAutofixThisMayCauseInfiniteLoops: true,
},
],
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
singleQuote: true,
printWidth: 120,
arrowParens: 'avoid',
endOfLine: 'auto',
},
],
'import/extensions': ['off'],
'import/no-cycle': ['error'],
'import/no-extraneous-dependencies': ['off'],
'import/no-named-as-default': ['off'],
'import/no-relative-packages': ['off'],
'import/no-self-import': ['error'],
'import/order': [
'error',
rules: {
'react-hooks/exhaustive-deps': [
'warn',
{
enableDangerousAutofixThisMayCauseInfiniteLoops: true,
},
],
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
singleQuote: true,
printWidth: 120,
arrowParens: 'avoid',
endOfLine: 'auto',
},
],
'import/extensions': ['off'],
'import/no-cycle': ['error'],
'import/no-extraneous-dependencies': ['off'],
'import/no-named-as-default': ['off'],
'import/no-relative-packages': ['off'],
'import/no-self-import': ['error'],
'import/order': [
'error',
{
groups: ['internal', 'external', 'builtin', 'parent', 'sibling'],
pathGroups: [
{
groups: ['internal', 'external', 'builtin', 'parent', 'sibling'],
pathGroups: [
{
pattern: '@*/**',
group: 'internal',
position: 'before',
},
{
pattern: '@*/**',
group: 'external',
position: 'after',
},
],
pathGroupsExcludedImportTypes: [],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
pattern: '@*/**',
group: 'internal',
position: 'before',
},
],
'import/prefer-default-export': ['off'],
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'no-type-imports',
pattern: '@*/**',
group: 'external',
position: 'after',
},
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'turbo/no-undeclared-env-vars': ['warn'],
pathGroupsExcludedImportTypes: [],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
},
],
'import/prefer-default-export': ['off'],
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'no-type-imports',
},
],
'turbo/no-undeclared-env-vars': ['warn'],
},
overrides: [
{
files: ['package.json'],
parser: 'jsonc-eslint-parser',
Expand Down

0 comments on commit 0666254

Please sign in to comment.