Skip to content

Commit

Permalink
feat: @typescript-eslint/eslint-plugin@^1.12.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE: added rule `@typescript-eslint/prefer-readonly` typescript-eslint/typescript-eslint@76b89a5
BREAKING CHANGE: added rule `@typescript-eslint/strict-boolean-expressions` typescript-eslint/typescript-eslint@34e7d1e
BREAKING CHANGE: replaced rule `@typescript-eslint/no-triple-slash-reference` with `@typescript-eslint/no-reference-import` typescript-eslint/typescript-eslint@af70a59

Fixes #100.
  • Loading branch information
mightyiam committed Aug 22, 2019
1 parent 6bfee2b commit b41f0e5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 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.11.0"
"@typescript-eslint/eslint-plugin": ">=1.12.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.11.0",
"@typescript-eslint/eslint-plugin": "^1.12.0",
"ava": "^2.2.0",
"eslint": "^6.1.0",
"eslint-plugin-import": "^2.18.2",
Expand Down
2 changes: 1 addition & 1 deletion src/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type Foo<Bar> = (a: Bar) => Bar
* https://github.com/standard/eslint-config-standard-with-typescript/issues/2
*/
export default class Zoo {
public constructor (private name: string) {}
public constructor (private readonly name: string) {}

public get greeting (): string {
return `Hello ${this.name}`
Expand Down
4 changes: 3 additions & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,18 @@ test('export', (t): void => {
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-object-literal-type-assertion': 'error',
'@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }],
'@typescript-eslint/no-triple-slash-reference': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@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/no-var-requires': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/require-array-sort-compare': '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
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ export = {
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-object-literal-type-assertion': 'error',
'@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }],
'@typescript-eslint/no-triple-slash-reference': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/restrict-plus-operands': '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

0 comments on commit b41f0e5

Please sign in to comment.