Skip to content

Commit

Permalink
feat: add more eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
allohamora committed Mar 16, 2024
1 parent aa158dc commit 13fca82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/categories/js/eslint/config/node:ts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export const nodeTsConfig: Config = {
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'no-use-before-define': 'error',
'object-shorthand': 'warn',

'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
Expand Down
4 changes: 4 additions & 0 deletions src/categories/js/eslint/config/react:ts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export const reactTsConfig: Config = {
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'no-use-before-define': 'error',
'object-shorthand': 'warn',

'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
Expand Down

0 comments on commit 13fca82

Please sign in to comment.