update documentation to use eslint
This commit is contained in:
parent
b4336a84b7
commit
adf4f9b75a
@ -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
|
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
|
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
|
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>{
|
<pre>{
|
||||||
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"module": true,
|
"es2021": true
|
||||||
"curly": true,
|
},
|
||||||
"devel": true,
|
"extends": "eslint:recommended",
|
||||||
"esversion": 6,
|
"parserOptions": {
|
||||||
"freeze": true,
|
"ecmaVersion": 12,
|
||||||
"futurehostile": true,
|
"sourceType": "module"
|
||||||
"strict": "global",
|
},
|
||||||
"varstmt": true
|
"rules": {
|
||||||
|
"indent": [
|
||||||
|
"error",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"linebreak-style": [
|
||||||
|
"error",
|
||||||
|
"unix"
|
||||||
|
],
|
||||||
|
"quotes": [
|
||||||
|
"error",
|
||||||
|
"double"
|
||||||
|
],
|
||||||
|
"semi": [
|
||||||
|
"error",
|
||||||
|
"always"
|
||||||
|
]
|
||||||
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
|
|
||||||
<p>Cookies are only used for login sessions. The only other use case considered valid
|
<p>Cookies are only used for login sessions. The only other use case considered valid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user