Skip to content

Commit

Permalink
new(eslint): Enable new rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Johnson committed Jan 6, 2020
1 parent e1a8f2c commit f802639
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/config-eslint/src/presets/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ const config: ESLintConfig = {
'unicorn/prefer-exponentiation-operator': 'error',
'unicorn/prefer-flat-map': 'error',
'unicorn/prefer-includes': 'error',
'unicorn/prefer-modern-dom-apis': 'warn',
'unicorn/prefer-negative-index': 'warn',
'unicorn/prefer-node-append': 'error',
'unicorn/prefer-node-remove': 'error',
Expand Down
1 change: 1 addition & 0 deletions packages/config-eslint/src/presets/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const config: ESLintConfig = {
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-parameter-properties': 'error',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-throw-literal': 'warn',
'@typescript-eslint/no-unused-vars': ['error', noUnused],
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/prefer-for-of': 'error',
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"path": "packages/nimbus-common"
}
],
"extends": "./tsconfig.options"
}
"extends": "./tsconfig.options.json"
}

0 comments on commit f802639

Please sign in to comment.