Skip to content

Commit

Permalink
new: Enable new rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Johnson committed Mar 24, 2020
1 parent 2ebd8ef commit 49237a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/config-eslint/src/presets/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const config: ESLintConfig = {
],

// UNICORN
'unicorn/better-regex': 'error',
'unicorn/catch-error-name': 'error',
'unicorn/consistent-function-scoping': 'error',
'unicorn/custom-error-definition': 'error',
Expand Down Expand Up @@ -167,7 +168,6 @@ const config: ESLintConfig = {
'unicorn/prefer-text-content': 'error',
'unicorn/prefer-trim-start-end': 'error',
'unicorn/prefer-type-error': 'error',
'unicorn/regex-shorthand': 'error',
'unicorn/throw-new-error': 'error',
},

Expand Down
3 changes: 3 additions & 0 deletions packages/config-eslint/src/presets/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ const config: ESLintConfig = {
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-throw-literal': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/no-unsafe-return': 'warn',
'@typescript-eslint/no-unused-vars': ['error', noUnused],
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/prefer-as-const': 'error',
Expand Down

0 comments on commit 49237a7

Please sign in to comment.