Skip to content

Commit

Permalink
feat: @typescript-eslint/eslint-plugin@^1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Aug 20, 2019
1 parent eb38843 commit ad3f043
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
"eslint-plugin-node": ">=9.1.0",
"eslint-plugin-promise": ">=4.2.1",
"eslint-plugin-standard": ">=4.0.0",
"@typescript-eslint/eslint-plugin": ">=1.10.1"
"@typescript-eslint/eslint-plugin": ">=1.11.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.10.2",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"ava": "^2.2.0",
"eslint": "^6.1.0",
"eslint-plugin-import": "^2.18.2",
Expand Down
5 changes: 4 additions & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ test('export', (t): void => {
camelcase: 'off',
indent: 'off',
'no-array-constructor': 'off',
'no-empty-function': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'no-useless-constructor': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': ['error', 'array-simple'],
'@typescript-eslint/camelcase': ['error', { properties: 'never' }],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/explicit-function-return-type': ['error', {
allowExpressions: true,
allowHigherOrderFunctions: true,
Expand Down Expand Up @@ -48,8 +50,10 @@ test('export', (t): void => {
],
'@typescript-eslint/no-angle-bracket-type-assertion': 'error',
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-extraneous-class': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
Expand All @@ -63,7 +67,6 @@ test('export', (t): void => {
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-interface': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export = {
camelcase: 'off',
indent: 'off',
'no-array-constructor': 'off',
'no-empty-function': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'no-useless-constructor': 'off',
Expand Down Expand Up @@ -41,6 +42,7 @@ export = {
// New Typescript-only rules:
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': ['error', 'array-simple'],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/explicit-function-return-type': ['error', {
allowExpressions: true,
allowHigherOrderFunctions: true,
Expand All @@ -54,8 +56,10 @@ export = {
}
],
'@typescript-eslint/no-angle-bracket-type-assertion': 'error',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-extraneous-class': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
Expand All @@ -66,7 +70,6 @@ export = {
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-interface': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
Expand Down

0 comments on commit ad3f043

Please sign in to comment.