summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2020-11-09 15:26:48 -0500
committerDaniel Micay <danielmicay@gmail.com>2020-11-09 15:26:48 -0500
commitadf4f9b75af2d39e35551c4d10a56e05eb9e7aa0 (patch)
treeaf82c27c335c8ec4d836f17c248dd5b6db480d6f /static
parentb4336a84b7585840c060f16f6ff6bbe725d94db1 (diff)
update documentation to use eslint
Diffstat (limited to 'static')
-rw-r--r--static/build.html38
1 files changed, 28 insertions, 10 deletions
diff --git a/static/build.html b/static/build.html
index a7f0581f..6a22d5f5 100644
--- a/static/build.html
+++ b/static/build.html
@@ -1188,18 +1188,36 @@ rm android-cts-media-1.5.zip</pre>
declare variables, unless they are reassigned in which case they should be declared
with <code>let</code> but never use <code>var</code> as it is effectively broken. Try
to prefer loops with <code>for..of</code>. JavaScript must pass verification with
- <code>jshint</code> using the following <code>.jslintrc</code> configuration:</p>
+ <code>eslint</code> using the following <code>.eslintrc.json</code> configuration:</p>
<pre>{
- "browser": true,
- "module": true,
- "curly": true,
- "devel": true,
- "esversion": 6,
- "freeze": true,
- "futurehostile": true,
- "strict": "global",
- "varstmt": true
+ "env": {
+ "browser": true,
+ "es2021": true
+ },
+ "extends": "eslint:recommended",
+ "parserOptions": {
+ "ecmaVersion": 12,
+ "sourceType": "module"
+ },
+ "rules": {
+ "indent": [
+ "error",
+ 4
+ ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "quotes": [
+ "error",
+ "double"
+ ],
+ "semi": [
+ "error",
+ "always"
+ ]
+ }
}</pre>
<p>Cookies are only used for login sessions. The only other use case considered valid