Commit graph

13 commits

Author SHA1 Message Date
Andy Balaam f960700a2a Exclude test from eslint checking since it always was excluded, and I can't get it to check 2023-02-23 17:10:06 +00:00
Andy Balaam 1271c22aee Separate linting and compiling src+test, scripts and hak
Inspired by the failure of https://github.com/vector-im/element-desktop/pull/529
to lint our code with the @typescript-eslint/no-base-to-string rule
turned on, I found we needed to add a parserOptions.project to our
.eslintrc.js, pointing to the tsconfig.json.

This led to more fixes, because we have 3 tsconfig.json files for
src+test, scripts and hak and the single eslintrc was complaining that
it could see more files than the tsconfig file knew about.

So, I think the right split is to have one eslintrc file and one
tsconfig for each of the three projects.
2023-02-17 12:17:42 +00:00
Andy Balaam 0faac52dae Format all files with prettier 2022-12-15 11:52:12 +00:00
Michael Telatynski d0e1596bf2
Enable Typescript strict mode (#426) 2022-10-13 12:42:33 +01:00
3nprob ec03783b7b Document where new linting rules go 2022-08-09 19:09:38 +09:00
David Baker 326e6577e1
Convert hak to TypeScript (#289)
* Convert hak to TypeScript

* Fix linter & remove stray log line

* Fix more linting errors

In one case by switching to import() and hence esnext

* Return type for getNodeModuleBin

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* More types

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-12-14 14:32:27 +00:00
Michael Telatynski 397bc66522 fix ts linting and delint the world 2021-07-01 09:22:57 +01:00
Michael Telatynski 4db0a0ac0c Make eslint happy 2021-07-01 09:16:49 +01:00
J. Ryan Stinnett 3efed87d38 Migrate to eslint-plugin-matrix-org
Switch to the new linting package. It offers a new shared config for native
JavaScript, which this package targets.
2021-05-27 14:35:11 +01:00
Jorik Schellekens 422a827b82 Use new eslint package 2020-07-21 15:06:38 +01:00
David Baker 5fc72e8f73 Lint scripts dir 2020-02-17 14:49:26 +00:00
David Baker 14a919cf9b Fix the linting errors 2019-12-10 18:10:15 +00:00
David Baker 5a0c1cda22 Files I've added
This still won't work, still a WIP
2019-12-06 18:20:31 +00:00