mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-24 04:32:13 -08:00
810e81521c
Linted the entire project. Using different rules for the script files as there are a lot of undefined variables just because of the way the DOM's global scope works. Mostly just code cleanup, however the linter did catch a minor bug with a settings regex. That has been corrected.
50 lines
962 B
JSON
50 lines
962 B
JSON
{
|
|
"env": {
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2017,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
4,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"windows"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"no-var": [
|
|
"error"
|
|
],
|
|
"no-console": [
|
|
0
|
|
],
|
|
"no-control-regex": [
|
|
0
|
|
],
|
|
"no-unused-vars": [
|
|
"error",
|
|
{
|
|
"vars": "all",
|
|
"args": "none",
|
|
"ignoreRestSiblings": false,
|
|
"argsIgnorePattern": "reject"
|
|
}
|
|
]
|
|
}
|
|
} |