Commit Graph

31 Commits

Author SHA1 Message Date
Cohee e82fc8d617 Add ignore eslint 2024-04-13 13:29:52 +03:00
Cohee 16795dd5cc Add server plugin loader 2023-12-16 22:21:40 +02:00
Cohee 554bd2cf55
Merge pull request #1478 from LenAnderson/st-array-vars
add list accessors to /getvar and /getglobalvar
2023-12-06 22:11:25 +02:00
Cohee 5e282ac7b4 lint: infix spacing 2023-12-06 22:08:06 +02:00
valadaptive 6713faa519 Lint all top-level files, not just server.js 2023-12-06 12:49:35 -05:00
valadaptive 5f1bed1e70 Enable object-curly-spacing lint 2023-12-04 12:32:41 -05:00
Cohee 91811f63b5 lint: Fix JSdocs 2023-12-03 14:23:20 +02:00
Cohee 64a3564892 lint: Comma dangle 2023-12-02 22:06:57 +02:00
Cohee 08fedf3a96 lint: Use 4 space indent 2023-12-02 21:56:16 +02:00
Cohee c63cd87cc0 lint: Require semicolons 2023-12-02 21:11:06 +02:00
valadaptive a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
valadaptive 518bb58d5a Enable no-unused-vars lint
This is the big one. Probably needs thorough review to make sure I
didn't accidentally remove any setInterval or fetch calls.
2023-12-02 12:11:19 -05:00
valadaptive 39bbef376f Enable no-undef lint
I'm not sure where run_edit is supposed to go or if any logic is
missing. I just made my best guess.
2023-12-02 12:11:19 -05:00
valadaptive 14afa1575b Enable no-redeclare lint 2023-12-02 12:11:19 -05:00
valadaptive c893e2165e Enable no-prototype-builtins lint 2023-12-02 12:10:31 -05:00
valadaptive b023312117 Enable no-useless-escape lint 2023-12-02 10:32:26 -05:00
valadaptive 97c49a405b Enable no-extra-boolean-cast lint 2023-12-02 10:32:26 -05:00
valadaptive 0a27275772 Enable no-extra-semi lint 2023-12-02 10:32:26 -05:00
valadaptive 27e63a7a77 Enable no-case-declarations lint 2023-12-02 10:32:26 -05:00
valadaptive a665a4897d Enable no-unused-labels lint
I'm not sure why "esversion: 6" was at the top of the file. My best
guess is that whoever initially created it was using jshint, which says
"use 'esversion: 6'" if used to lint a file which contains ES6 code.
Even then, the proper syntax would be a comment.
2023-12-02 10:32:07 -05:00
valadaptive 1c121f1ba5 Enable use-isnan lint 2023-12-02 10:32:07 -05:00
valadaptive 9204a31d32 Enable no-self-assign lint 2023-12-02 10:32:07 -05:00
valadaptive c05aee8e72 Enable no-unsafe-negation lint
This actually fixes a bug--the old code was negating "audioData.type"
2023-12-02 10:32:07 -05:00
valadaptive 7def71aef7 Only enable no-constant-condition for non-loops
"while (true)" is a useful pattern that eslint doesn't really need to
flag as a problem.
2023-12-02 10:32:07 -05:00
valadaptive 60ac1aa1c7 Enable no-empty lint 2023-12-02 10:32:07 -05:00
valadaptive 367f3dba27 Enable no-unsafe-finally lint 2023-12-02 10:32:07 -05:00
valadaptive e7ae1c4787 Enable no-dupe-keys lint 2023-12-02 10:32:07 -05:00
valadaptive 8c89f373fa Enable no-irregular-whitespace lint
A couple comments contained non-breaking spaces (I think), which I
replaced with regular spaces.
2023-12-02 10:32:07 -05:00
valadaptive 12cdb76a20 Enable no-regex-spaces lint
I noticed the old code was replacing two spaces with one space, over and
over. Instead, I changed it to remove all consecutive strings of spaces
just once, using the "+" quantifier. This should behave the same but is
nicer to read and faster.
2023-12-02 10:32:07 -05:00
valadaptive 7c3dd75e6a Enable no-fallthrough lint 2023-12-02 10:32:07 -05:00
valadaptive ec0e4026d8 Initial ESLint setup
This sets up ESLint and its config, and disables a bunch of recommended
lints that currently do not pass. Later PRs/commits will fix those lints
and re-enable them.
2023-12-02 09:02:57 -05:00