2022-10-05 18:42:58 -04:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"parser": "@typescript-eslint/parser",
|
2022-10-21 19:22:44 -04:00
|
|
|
"ignorePatterns": ["dist", "browser"],
|
2022-11-07 17:34:14 -05:00
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint",
|
2023-08-09 20:17:49 -04:00
|
|
|
"simple-header",
|
2022-11-07 17:34:14 -05:00
|
|
|
"simple-import-sort",
|
2022-11-28 07:58:14 -05:00
|
|
|
"unused-imports",
|
|
|
|
"path-alias"
|
2022-11-07 17:34:14 -05:00
|
|
|
],
|
2022-11-28 07:58:14 -05:00
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"alias": {
|
|
|
|
"map": [
|
|
|
|
["@webpack", "./src/webpack"],
|
|
|
|
["@webpack/common", "./src/webpack/common"],
|
|
|
|
["@utils", "./src/utils"],
|
|
|
|
["@api", "./src/api"],
|
|
|
|
["@components", "./src/components"]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-10-05 18:42:58 -04:00
|
|
|
"rules": {
|
2022-10-21 19:17:06 -04:00
|
|
|
// Since it's only been a month and Vencord has already been stolen
|
|
|
|
// by random skids who rebranded it to "AlphaCord" and erased all license
|
|
|
|
// information
|
2023-08-09 20:17:49 -04:00
|
|
|
"simple-header/header": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"files": ["scripts/header-new.txt", "scripts/header-old.txt"],
|
|
|
|
"templates": { "author": [".*", "Vendicated and contributors"] }
|
|
|
|
}
|
2022-10-21 19:17:06 -04:00
|
|
|
],
|
2022-10-20 13:21:21 -04:00
|
|
|
"quotes": ["error", "double", { "avoidEscape": true }],
|
2022-10-05 18:42:58 -04:00
|
|
|
"jsx-quotes": ["error", "prefer-double"],
|
|
|
|
"no-mixed-spaces-and-tabs": "error",
|
|
|
|
"indent": ["error", 4, { "SwitchCase": 1 }],
|
|
|
|
"arrow-parens": ["error", "as-needed"],
|
|
|
|
"eol-last": ["error", "always"],
|
2023-05-10 17:14:04 -04:00
|
|
|
"@typescript-eslint/func-call-spacing": ["error", "never"],
|
2022-10-05 18:42:58 -04:00
|
|
|
"no-multi-spaces": "error",
|
|
|
|
"no-trailing-spaces": "error",
|
|
|
|
"no-whitespace-before-property": "error",
|
|
|
|
"semi": ["error", "always"],
|
|
|
|
"semi-style": ["error", "last"],
|
|
|
|
"space-in-parens": ["error", "never"],
|
|
|
|
"block-spacing": ["error", "always"],
|
2022-10-08 14:36:57 -04:00
|
|
|
"object-curly-spacing": ["error", "always"],
|
|
|
|
"eqeqeq": ["error", "always", { "null": "ignore" }],
|
2022-10-20 13:21:21 -04:00
|
|
|
"spaced-comment": ["error", "always", { "markers": ["!"] }],
|
2022-10-08 14:36:57 -04:00
|
|
|
"yoda": "error",
|
2023-10-25 08:39:57 -04:00
|
|
|
"prefer-destructuring": ["error", {
|
|
|
|
"VariableDeclarator": { "array": false, "object": true },
|
|
|
|
"AssignmentExpression": { "array": false, "object": false }
|
|
|
|
}],
|
2022-10-08 14:36:57 -04:00
|
|
|
"operator-assignment": ["error", "always"],
|
|
|
|
"no-useless-computed-key": "error",
|
|
|
|
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
|
|
|
|
"no-invalid-regexp": "error",
|
|
|
|
"no-constant-condition": ["error", { "checkLoops": false }],
|
|
|
|
"no-duplicate-imports": "error",
|
|
|
|
"no-extra-semi": "error",
|
2022-10-20 05:58:20 -04:00
|
|
|
"dot-notation": "error",
|
2023-01-02 20:32:08 -05:00
|
|
|
"no-useless-escape": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"extra": "i"
|
|
|
|
}
|
|
|
|
],
|
2022-10-20 05:58:20 -04:00
|
|
|
"no-fallthrough": "error",
|
|
|
|
"for-direction": "error",
|
|
|
|
"no-async-promise-executor": "error",
|
|
|
|
"no-cond-assign": "error",
|
|
|
|
"no-dupe-else-if": "error",
|
|
|
|
"no-duplicate-case": "error",
|
|
|
|
"no-irregular-whitespace": "error",
|
|
|
|
"no-loss-of-precision": "error",
|
|
|
|
"no-misleading-character-class": "error",
|
|
|
|
"no-prototype-builtins": "error",
|
|
|
|
"no-regex-spaces": "error",
|
|
|
|
"no-shadow-restricted-names": "error",
|
|
|
|
"no-unexpected-multiline": "error",
|
|
|
|
"no-unsafe-optional-chaining": "error",
|
|
|
|
"no-useless-backreference": "error",
|
|
|
|
"use-isnan": "error",
|
|
|
|
"prefer-const": "error",
|
2022-10-22 12:18:41 -04:00
|
|
|
"prefer-spread": "error",
|
|
|
|
|
|
|
|
"simple-import-sort/imports": "error",
|
2022-10-23 17:23:52 -04:00
|
|
|
"simple-import-sort/exports": "error",
|
|
|
|
|
2022-11-07 17:34:14 -05:00
|
|
|
"unused-imports/no-unused-imports": "error",
|
|
|
|
|
2023-10-31 18:56:13 -04:00
|
|
|
"path-alias/no-relative": "error"
|
2022-10-05 18:42:58 -04:00
|
|
|
}
|
|
|
|
}
|