Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Labels
Milestone
Description
Repro
module.exports={parser:'@typescript-eslint/parser',plugins:['@typescript-eslint'],rules:{'@typescript-eslint/ban-types':['error',{types:{Omit:'Prefer `OmitStrict`.',},},],},};
// Don't use 'Object' as a type. Use Record<string, any> insteadtypeFoo1=Object;// Don't use 'Boolean' as a type. Use boolean insteadtypeFoo2=Boolean;// Don't use 'Number' as a type. Use number insteadtypeFoo3=Number;
Expected Result
No errors, because I am overriding thedefault options.
Actual Result
Each line errors. It is not possible to disable the default options.
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 1.11.0 |
@typescript-eslint/parser | 1.11.0 |
TypeScript | 3.5.2 |
ESLint | 6.0.1 |
node | 8.15.1 |
npm | 6.9.0 |