Skip to content

Commit

Permalink
v5.63.0-beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
SReject committed Jul 24, 2024
2 parents e743923 + 72b3b88 commit 8748ee3
Show file tree
Hide file tree
Showing 201 changed files with 18,199 additions and 14,497 deletions.
66 changes: 32 additions & 34 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,40 @@

module.exports = {
"root": true,
root: true,

// Extend from recommened eslint rules
// Indicated by a wrench @ https://eslint.org/docs/rules/
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],

"parser": "@typescript-eslint/parser",
parser: "@typescript-eslint/parser",

// "parser": "babel-parser",
"parserOptions": {
parserOptions: {
// "parser": "babel-parser",
"ecmaVersion": "2022"
ecmaVersion: "2022"
},

"plugins": ["@typescript-eslint"],
plugins: ["@typescript-eslint"],

"env": {
"node": true,
"browser": true,
"es6": true,
"es2020": true
env: {
node: true,
browser: true,
es6: true,
es2020: true
},

// Project specific globals
"globals": {
"renderWindow": true,
"$": true,
"firebotAppDetails": true
globals: {
renderWindow: true,
$: true,
firebotAppDetails: true
},

"rules": {

rules: {
// Deviations from https://eslint.org/docs/rules/#possible-errors
"no-console": 0, // Enable the use of console

// Deviations from < https://eslint.org/docs/rules/#best-practices >
"eqeqeq": ["warn", "smart"], // No coersion unless comparing against null
eqeqeq: ["warn", "smart"], // No coersion unless comparing against null
"guard-for-in": "warn", // require an if statement with for-in loops
"no-else-return": "warn", // no 'if () { return } else { ... }
"no-eval": "warn", // no eval()
Expand All @@ -49,37 +44,37 @@ module.exports = {
"no-throw-literal": "warn", // must throw an error instance
"no-unused-expressions": "warn", // see: https://eslint.org/docs/rules/no-unused-expressions#disallow-unused-expressions-no-unused-expressions
"no-with": "warn", // no with statements
"wrap-iife": "warn", // immediately called functions must be wrapped in ()'s
"wrap-iife": ["warn", "any"], // immediately called functions must be wrapped in ()'s
"no-async-promise-executor": "off",
"no-prototype-builtins": "off",

// Deviation from < https://eslint.org/docs/rules/#strict-mode >
"strict": "off", // disabled b/c typescript
strict: "off", // disabled b/c typescript

// Deviation from < https://eslint.org/docs/rules/#variables >
"no-use-before-define": "warn", // require vars to be defined before use

"prefer-const": "warn",

// Deviation from < https://eslint.org/docs/rules/#stylistic-issues >
"arrow-parens": ["warn", "as-needed", { "requireForBlockBody": true }], // Parentheses around arrow function parameters
"arrow-parens": ["warn", "as-needed", { requireForBlockBody: true }], // Parentheses around arrow function parameters
"array-bracket-spacing": "warn", // Spaces around array []'s
"block-spacing": "warn", // {}'s must have whitespace around them
"brace-style": "warn", // See: https://eslint.org/docs/rules/brace-style#require-brace-style-brace-style
"camelcase": "warn", // useCamelCasePleaseKThanks
camelcase: "warn", // useCamelCasePleaseKThanks
"comma-dangle": "warn", // No trailing commas
"comma-spacing": "warn", // Reqire space after commas
"comma-style": "warn", // See: https://eslint.org/docs/rules/comma-style
"computed-property-spacing": "warn", // No whitespace when using object[thing]
"curly": "warn", // Must wrap blocks with {}
"indent": "off", // Superseded by TS
"key-spacing": ["warn", {mode: "strict" }], // Exactly one space after object key colons
curly: "warn", // Must wrap blocks with {}
indent: "off", // Superseded by TS
"key-spacing": ["warn", { mode: "strict" }], // Exactly one space after object key colons
"keyword-spacing": "warn", // Spaces around keywords
"linebreak-style": "warn", // Line breaks must be \n
"new-cap": "warn", // Constructors must start with capital letter
"no-trailing-spaces": "warn", // no trailing spaces
"semi": "warn", // semi-colons required
"semi-spacing": ["warn", {before: false, after: true}], // space after semi-colon, no space before
semi: "warn", // semi-colons required
"semi-spacing": ["warn", { before: false, after: true }], // space after semi-colon, no space before
"semi-style": "warn", // See: https://eslint.org/docs/rules/semi-style
"space-before-blocks": "warn", // whitespace required before and after {}
"space-in-parens": ["warn", "never"], // See: https://eslint.org/docs/rules/space-in-parens
Expand All @@ -97,10 +92,13 @@ module.exports = {
"prefer-template": "warn", // Use template strings instead of + concat
"template-curly-spacing": ["warn", "never"],
"no-useless-concat": "error", // no concat'ing literal strings
"no-empty": ["error", {"allowEmptyCatch": true }],
"no-empty": ["error", { allowEmptyCatch: true }],
"no-debugger": "warn",
"no-extra-boolean-cast": "off",
"no-warning-comments": ["warn", {"terms": ["todo", "to do", "fix", "fixme", "fix me", "need"], "location": "start"}], // warn about todo comments
"no-warning-comments": [
"warn",
{ terms: ["todo", "to do", "fix", "fixme", "fix me", "need"], location: "start" }
], // warn about todo comments

// typescript
"@typescript-eslint/no-unused-vars": "warn",
Expand All @@ -111,4 +109,4 @@ module.exports = {
"@typescript-eslint/indent": ["warn", 4],
"@typescript-eslint/ban-types": "warn"
}
};
};
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"trailingComma": "none",
"tabWidth": 4
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
],
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
},
"prettier.trailingComma": "none"
}
Loading

0 comments on commit 8748ee3

Please sign in to comment.