DOSee/.eslintrc.js

54 lines
1.4 KiB
JavaScript
Raw Normal View History

2019-02-20 16:03:34 +11:00
/* spell-checker: disable */
2019-01-13 16:48:35 +11:00
module.exports = {
"env": {
2019-02-20 15:47:29 +11:00
"browser":true,
2019-01-13 16:48:35 +11:00
"es6": true,
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"impliedStrict": true,
},
"rules": {
2019-02-20 15:47:29 +11:00
"indent": ["error", 4, { "SwitchCase": 1 }],
2019-01-13 16:48:35 +11:00
"linebreak-style": [
"off"
],
2019-02-20 15:47:29 +11:00
"no-console": ["error", { allow: ["log", "error", "warn"] }],
2019-01-13 16:48:35 +11:00
"no-fallthrough": ["error", { "commentPattern": "break[\\s\\w]*omitted" }],
"no-unused-vars": ["error", { "vars": "local" }],
"quotes": [
"error",
"backtick",
],
"semi": [
"error",
"never",
],
"strict": ["error", "global"],
},
"globals": {
"DoseeLoader": true,
"Emulator": true,
2019-02-21 14:40:49 +11:00
"getMetaContent": true,
2019-01-13 16:48:35 +11:00
"storageAvailable": true,
"BuildEcma48": true,
"buildLinksToCSS": true,
"changeTextScanlines": true,
"changeTextEffect": true,
"checkArg": true,
"checkErr": true,
"checkRange": true,
"displayErr": true,
"findControlSequences": true,
"findEngine": true,
"Font": true,
"Guess": true,
"humaniseFS": true,
"Palette": true,
"ParseToChildren": true,
"runSpinLoader": true,
"Transcode": true,
}
};