Equicord/.eslintrc.json

195 lines
5 KiB
JSON
Raw Normal View History

{
"root": true,
"parser": "@typescript-eslint/parser",
2024-04-17 14:29:47 -04:00
"ignorePatterns": [
"dist",
"browser",
"packages/vencord-types"
2024-04-17 14:29:47 -04:00
],
"plugins": [
"@typescript-eslint",
"simple-header",
"simple-import-sort",
2024-04-17 14:29:47 -04:00
"unused-imports"
],
2022-11-28 07:58:14 -05:00
"settings": {
"import/resolver": {
"alias": {
"map": [
2024-04-17 14:29:47 -04:00
[
"@webpack",
"./src/webpack"
],
[
"@webpack/common",
"./src/webpack/common"
],
[
"@utils",
"./src/utils"
],
[
"@api",
"./src/api"
],
[
"@components",
"./src/components"
]
2022-11-28 07:58:14 -05: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
"simple-header/header": [
"error",
{
2024-04-17 14:29:47 -04:00
"files": [
"scripts/header-new.txt",
"scripts/header-old.txt"
],
"templates": {
"author": [
".*",
"Vendicated and contributors"
]
}
}
2022-10-21 19:17:06 -04:00
],
2024-04-17 14:29:47 -04:00
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"jsx-quotes": [
"error",
"prefer-double"
],
"no-mixed-spaces-and-tabs": "error",
2024-04-17 14:29:47 -04:00
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"arrow-parens": [
"error",
"as-needed"
],
"eol-last": [
"error",
"always"
],
"@typescript-eslint/func-call-spacing": [
"error",
"never"
],
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
2024-04-17 14:29:47 -04:00
"semi": [
"error",
"always"
],
"semi-style": [
"error",
"last"
],
"space-in-parens": [
"error",
"never"
],
"block-spacing": [
"error",
"always"
],
"object-curly-spacing": [
"error",
"always"
],
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"spaced-comment": [
"error",
"always",
{
"markers": [
"!"
]
}
],
2022-10-08 14:36:57 -04:00
"yoda": "error",
2024-04-17 14:29:47 -04:00
"prefer-destructuring": [
"error",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
}
],
"operator-assignment": [
"error",
"always"
],
2022-10-08 14:36:57 -04:00
"no-useless-computed-key": "error",
2024-04-17 14:29:47 -04:00
"no-unneeded-ternary": [
"error",
{
"defaultAssignment": false
}
],
2022-10-08 14:36:57 -04:00
"no-invalid-regexp": "error",
2024-04-17 14:29:47 -04:00
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
2022-10-08 14:36:57 -04:00
"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",
"simple-import-sort/exports": "error",
2024-04-17 14:29:47 -04:00
"unused-imports/no-unused-imports": "error"
}
2024-04-17 14:29:47 -04:00
}