Skip to content

Commit

Permalink
feat: @typescript-eslint/eslint-plugin@^1.13.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE: added rule `@typescript-eslint/no-misused-promises` typescript-eslint/typescript-eslint@28a131d
BREAKING CHANGE: added rule `@typescript-eslint/require-await` typescript-eslint/typescript-eslint@807bc2d

Closes #101.
  • Loading branch information
mightyiam committed Aug 29, 2019
1 parent 11d3436 commit 72fc639
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@
"eslint-plugin-node": ">=9.1.0",
"eslint-plugin-promise": ">=4.2.1",
"eslint-plugin-standard": ">=4.0.0",
"@typescript-eslint/eslint-plugin": ">=1.12.0"
"@typescript-eslint/eslint-plugin": ">=1.13.0"
},
"devDependencies": {
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@commitlint/travis-cli": "^8.1.0",
"@types/node": "^12.7.1",
"@typescript-eslint/eslint-plugin": "^1.12.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"ava": "^2.2.0",
"eslint": "^6.1.0",
"eslint-plugin-import": "^2.18.2",
Expand Down
3 changes: 3 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test('export', (t): void => {
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'no-useless-constructor': 'off',
'require-await': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': ['error', 'array-simple'],
'@typescript-eslint/camelcase': ['error', { properties: 'never' }],
Expand Down Expand Up @@ -56,6 +57,7 @@ test('export', (t): void => {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-object-literal-type-assertion': 'error',
Expand All @@ -70,6 +72,7 @@ test('export', (t): void => {
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/require-await': 'error',
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/triple-slash-reference': ['error', { lib: 'never', path: 'never', types: 'never' }],
'@typescript-eslint/type-annotation-spacing': 'error'
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export = {
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'no-useless-constructor': 'off',
'require-await': 'off',

// @typescript-eslint versions of Standard.js rules:
'@typescript-eslint/camelcase': ['error', { properties: 'never' }],
Expand All @@ -39,6 +40,7 @@ export = {
'@typescript-eslint/no-unused-vars': ['error', { args: 'none' }],
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, variables: false, typedefs: false }],
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/require-await': 'error',

// New Typescript-only rules:
'@typescript-eslint/adjacent-overload-signatures': 'error',
Expand All @@ -62,6 +64,7 @@ export = {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-object-literal-type-assertion': 'error',
Expand Down

0 comments on commit 72fc639

Please sign in to comment.