Open justinmk3 opened 2 years ago
https://github.com/aws/aws-toolkit-vscode/pull/1859 has the skeleton for custom linting rules Right now writing your own rules is kind of tough since you need to know a lot about the Typescript AST (or ES AST), though I'm sure we can write some easy abstractions for our use-cases.
.only()
in tests https://github.com/aws/aws-toolkit-vscode/pull/950#discussion_r387819343console.log
(usegetLogger
instead) https://github.com/aws/aws-toolkit-vscode/pull/5087awsToolkit.clock.setInterval
/setTimeout
/etc (instead ofsetInterval
/setTimeout
/etc),awsToolkit.clock.Date
(instead ofnew Date()
orDate.foo()
) #2343src/webviews/util.ts
https://github.com/aws/aws-toolkit-vscode/pull/3868/files#diff-4fd67c2312884124b237854f76518a3833a94909984327434aeabc942974bb50plugins/eslint-aws/lib/rules/no-localize-aws.ts
in #1859plugins/eslint-aws/lib/rules/no-mocha-arrows.ts
in #1859