35 Commits

Author SHA1 Message Date
Jake Bailey
25e09d9fc3
Add custom eslint rule 'no-array-mutating-method-expressions' (#59526) 2024-08-14 09:28:57 -07:00
Jake Bailey
01a874a8ba
Update to eslint v9, typescript-eslint v8 (#59518) 2024-08-12 17:13:24 -07:00
Jake Bailey
5e9e6ad295
Fix accidental relative imports from non namespace barrels (#59544) 2024-08-08 09:38:10 -07:00
Jake Bailey
1b867c52b2
Switch to JSDoc imports in scripts (#59068) 2024-06-28 13:27:23 -07:00
Jake Bailey
867476e57a
Reject internal tag on private decls, strip comments from private decls in dtsBundler (#58869) 2024-06-18 16:14:29 -07:00
Jake Bailey
16beff101a
Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
Jake Bailey
17e420daf6
Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095) 2024-04-18 09:06:32 -07:00
Jake Bailey
967d6189a6
Add lint error for declarations marked internal, but unexported (#58229) 2024-04-17 13:52:31 -07:00
Abraham Guo
3c9aea3ed1
enable @typescript-eslint/no-unused-vars (#57123) 2024-01-29 11:31:51 -08:00
Jake Bailey
2e3b8af85e
Remove use of deprecated context.parserServices (#57128) 2024-01-22 11:40:13 -08:00
Sampo Kivistö
ec2bd4e252
perf: replace String and Array indexOf method calls with includes method call (#55482) 2023-08-25 11:27:55 -07:00
Jake Bailey
5e8c261b6a
dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Josh Goldberg ✨
0ae8ca11d2
Updated typescript-eslint to v6 (#54693)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-07-14 15:36:10 -07:00
Jake Bailey
ac55b297b7
Upgrade "boolean-trivia" lint to new "argument-trivia" lint that uses type info, has quick fixes, etc. (#53002) 2023-03-23 16:26:39 -07:00
Jake Bailey
0993c017ba
Fix JSDoc eslint rule for properties and methods (#51462) 2022-11-08 16:35:10 -08:00
Jake Bailey
b4715d3891
Replace eslint-plugin-jsdoc by extending local jsdoc-format rule, saving ~20% of our linting time (#51438) 2022-11-08 13:59:48 -08:00
Jake Bailey
231fa27f89 Add JSDoc eslint rule
See the next commit for a more fleshed-out description.
2022-11-07 13:33:08 -08:00
Jake Bailey
39e27fbb6b Fix up linting, make lint clean
Now that we are modules, there's no reason to ban multiple namespaces
per file; each file is its own scope and declaring a namespace won't
merge it into any other files.
2022-11-07 13:33:07 -08:00
Jake Bailey
ad56b5ca56
Convert scripts/Gulpfile to checked mjs/cjs so they can run without compilation (#50988) 2022-10-07 09:50:46 -07:00
Ron Buckton
a4cabe725b
Support for auto-accessor fields from the Stage 3 Decorators proposal (#49705)
* Support for auto-accessor fields

* Add tests, ensure accessors are initialized in ctor

* classFields cleanup and PR feedback
2022-09-12 15:12:11 -04:00
Jake Bailey
6362fb2dce
Replace eslint rulesdir with eslint-plugin-local, convert eslint rules to JS (#50380) 2022-08-22 13:46:03 -07:00
Jake Bailey
734b9828a6
Update all depedencies, including ESLint 8, refresh lockfile (#49550) 2022-06-16 13:39:42 -07:00
Orta Therox
fdc31baffe
Fix types in the boolean trivial lint rule (#44801) 2021-06-29 11:53:35 -07:00
Oleksandr T
7c47be76b0
fix(44738): fix eslint rules (#44739) 2021-06-25 14:50:19 -07:00
Hye Sung Jung
8ed129771f
fix spelling errors (#36523)
* fix spelling errors

* remove changes in lib/*
2020-01-30 13:39:54 -08:00
Wesley Wigham
c447ebc59c
Refactor: No more than 1 namespace declaration per file (#35373)
* Refactor: No more than 1 namespace declaration per file

* Simplify refs where possible
2019-11-27 13:44:31 -08:00
Alexander T
2b11a18d6a remove typescript dependency from boolean-trivia, no-double-space rules 2019-08-16 11:54:12 +03:00
Alexander T
466ee10011 add .eslintrc for src and scripts. update typescript-eslint 2019-08-14 12:34:16 +03:00
Alexander T
c050e551b4 add additional tests to no-keywords 2019-08-09 12:11:25 +03:00
Alexander T
828ebd54ed add eslint setting for .vscode 2019-08-08 10:57:04 +03:00
Alexander
97329306c7 simple-indent: remove useless types definition 2019-08-04 16:42:20 +03:00
Alexander
a37d34a5b6 lint src/, scripts/ folders separately 2019-08-04 15:33:01 +03:00
Alexander
ee90fdb90b change eslint tests formatting 2019-08-04 08:45:34 +03:00
Alexander T
afafd3fcb3 simple-indent 2019-08-04 08:45:14 +03:00
Alexander
0059763d8f move eslint rules from eslint-plugin-microsoft-typescript to scripts/eslint 2019-07-24 13:31:17 +03:00