2.0.0 (2019-08-13)
- feat(eslint-plugin)!: recommended-requiring-type-checking config (#846) (d3470c9), closes #846
- feat(eslint-plugin)!: change recommended config (#729) (428567d), closes #729
- feat(typescript-estree)!: throw error on file not in project when
project
set (#760) (3777b77), closes #760 - feat(eslint-plugin)!: add rule
consistent-type-assertions
(#731) (92e98de), closes #731 - feat(eslint-plugin)!: [array-type] rework options (#654) (1389393), closes #654 #635
Bug Fixes
- eslint-plugin: [efrt] flag default export w/allowExpressions (#831) (ebbcc01)
- eslint-plugin: [no-explicit-any] Fix ignoreRestArgs for interfaces (#777) (22e9ae5)
- eslint-plugin: [no-useless-constructor] handle bodyless constructor (#685) (55e788c)
- eslint-plugin: [prefer-readonly] TypeError when having comp… (#761) (211b1b5)
- eslint-plugin: [typedef] support "for..in", "for..of" (#787) (39e41b5)
- eslint-plugin: [typedef] support default value for parameter (#785) (84916e6)
- eslint-plugin: add
Literal
to RuleListener
types (#824) (3c902a1) - typescript-estree: fix
is
token typed as `Keyword (#750) (35dec52) - typescript-estree: jsx comment parsing (#703) (0cfc48e)
- utils: add ES2019 as valid
ecmaVersion
(#746) (d11fbbe)
Features
- explicitly support eslint v6 (#645) (34a7cf6)
- eslint-plugin: [interface-name-prefix, class-name-casing] Add allowUnderscorePrefix option to support private declarations (#790) (0c4f474)
- eslint-plugin: [no-var-requires] report on foo(require('')) (#725) (b2ca20d), closes #665
- eslint-plugin: [promise-function-async] make allowAny default true (#733) (590ca50)
- eslint-plugin: [strict-boolean-expressions] add ignoreRhs option (#691) (fd6be42)
- eslint-plugin: add support for object props in CallExpressions (#728) (8141f01)
- eslint-plugin: added new rule typedef (#581) (35cc99b)
- eslint-plugin: added new rule use-default-type-parameter (#562) (2b942ba)
- eslint-plugin: move opinionated rules between configs (#595) (4893aec)
- eslint-plugin: remove deprecated rules (#739) (e32c7ad)
BREAKING CHANGES
- removed some rules from recommended config
- recommended config changes are considered breaking
- by default we will now throw when a file is not in the
project
provided - Merges both no-angle-bracket-type-assertion and no-object-literal-type-assertion into one rule
- eslint-plugin: both 'eslint-recommended' and 'recommended' have changed.
- eslint-plugin: removing rules
- changes config structure
type ArrayOption = 'array' | 'generic' | 'array-simple';
type Options = [
{
// default case for all arrays
default: ArrayOption;
// optional override for readonly arrays
readonly?: ArrayOption;
},
];
- eslint-plugin: changing default rule config
- Node 6 is no longer supported