Граф коммитов

44 Коммитов

Автор SHA1 Сообщение Дата
Jake Bailey 16beff101a
Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
Jake Bailey 49762119f3
Disable no-inferrable-types eslint rule (#58306) 2024-04-24 09:57:17 -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 f52f7b9f90
Sort imports with dprint instead of eslint (#58058) 2024-04-03 11:27:49 -07:00
Jake Bailey 4386501285
Make unused variable rule a warning, error on warnings for CI (#58059) 2024-04-03 10:29:27 -07:00
Jake Bailey 23156cb970
Error on unused eslint directives, reenable lost eslint rules (#57350) 2024-02-27 10:49:41 -08:00
Abraham Guo 3c9aea3ed1
enable `@typescript-eslint/no-unused-vars` (#57123) 2024-01-29 11:31:51 -08:00
Jake Bailey 0f91f7dff6
Run dprint on json (#55602) 2023-09-01 15:26:01 -07:00
Jake Bailey 5e8c261b6a
dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Jake Bailey 3b43d841d1
Enable eslint rules prefer-rest-params and prefer-spread (#55181) 2023-08-11 15:07:06 -07:00
Jake Bailey 6a96b9767e
Enable eslint rule no-useless-escape (#55138) 2023-07-28 16:02:38 -07:00
Jake Bailey 21bb2160c8
Move @typescript-eslint/no-namespace to disabled list (#55180) 2023-07-27 21:14:08 -07:00
Jake Bailey a6df6c04d5
Enable @typescript-eslint/ban-types (#55133) 2023-07-27 15:58:17 -07:00
Jake Bailey d63af29eaf
Triage and fix some eslint rules (#55136) 2023-07-24 13:53:12 -07:00
Jake Bailey 34c144d493
Reorganize eslint config rule ordering (#55106) 2023-07-24 10:57:38 -07:00
Jake Bailey 2b4bf5ae0d
Remove eslint-plugin-import (#54835) 2023-07-14 16:01:32 -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 2a8436c529
Use eslint-plugin-simple-import-sort (#52090) 2023-02-02 14:36:21 -08:00
Jake Bailey 703652cebf
Remove some files from the repo root (#51446) 2022-12-06 13:42:54 -08:00
Jake Bailey 00dc0b6674
Flip imports to case insensitive sorting (#51579) 2022-11-17 15:35:28 -08:00
Jake Bailey 2d2a4343b8
Reformat imports to be one identifier per line (#51565) 2022-11-17 13:42:18 -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
Jake Bailey 16156b1baf
Add rules from eslint's recommended set that triggered good lints (#50422) 2022-09-19 16:20:55 -07:00
Jake Bailey 9ac1fce117
Fix eslint not looking at certain scripts, fix lints (#50660) 2022-09-06 16:05:47 -07: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 9f7c0cbad7
Run ESLint over our JS files, fix all lints (#50172) 2022-08-15 08:42:26 -07:00
Jake Bailey 734b9828a6
Update all depedencies, including ESLint 8, refresh lockfile (#49550) 2022-06-16 13:39:42 -07:00
Ryan Cavanaugh e00b5ecd40
Enable `max-statements-per-line` lint rule (#45475)
* Enable the rule

* Fix all the violations
2021-08-16 13:53:51 -07:00
Oleksandr T db01e84700
feat(eslint): consistent-type-assertions (#43556) 2021-05-18 06:20:57 -07:00
Oleksandr T 2437ce5793 feat(eslint): upgrade typescript-eslint/eslint 2020-11-02 12:37:10 +02:00
Ron Buckton cc7cb9eadb
Upgrade typescript-eslint version (#39242)
* Upgrade typescript-eslint version

* Update TS version used by typescript-eslint
2020-06-24 16:43:03 -07:00
Alexander T 8c31700735
Enable @typescript-eslint/space-before-function-paren, @typescript-eslint/no-unused-expressions (#36569)
* use @typescript-eslint/no-unused-expressions instead of no-unused-expressions

* enable @typescript-eslint/space-before-function-paren
2020-02-04 14:43:25 -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 42dd304bdd @typescript-eslint/quotes 2019-08-20 11:35:57 +03:00
Alexander T 466ee10011 add .eslintrc for src and scripts. update typescript-eslint 2019-08-14 12:34:16 +03:00
Alexander b3afb55d7a disable array-type for es2019.array.d.ts 2019-08-10 10:37:33 +03:00
Alexander 023e4c6249 disable no-redeclare 2019-08-09 07:30:40 +03:00
Alexander 78d8e80330 no-unused-expressions: [error, { allowTernary: true }] 2019-08-08 21:48:54 +03:00
Alexander ceccfd8867 array-type: [ default: array, generic: array ] 2019-08-08 21:30:18 +03:00
Alexander a37d34a5b6 lint src/, scripts/ folders separately 2019-08-04 15:33:01 +03:00