mirror of
https://github.com/Vencord/Vesktop.git
synced 2026-11-20 00:51:15 -08:00
71 lines
2.9 KiB
JSON
71 lines
2.9 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["react"],
|
|
"jsPlugins": [{ "name": "simple-header-js", "specifier": "eslint-plugin-simple-header" }],
|
|
"settings": {
|
|
"react": {
|
|
"version": "19"
|
|
}
|
|
},
|
|
"ignorePatterns": ["dist"],
|
|
"overrides": [
|
|
{
|
|
"files": ["src/**/*.{tsx,ts,mts,mjs,js,jsx}"],
|
|
"rules": {
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/display-name": "off",
|
|
"react/no-unescaped-entities": "off",
|
|
"react/immutability": "off",
|
|
"simple-header-js/header": [
|
|
"error",
|
|
{
|
|
"files": ["scripts/header.txt"],
|
|
"templates": { "author": [".*", "Vendicated and Vesktop contributors"] }
|
|
}
|
|
],
|
|
"yoda": "error",
|
|
"eqeqeq": ["error", "always", { "null": "ignore" }],
|
|
"prefer-destructuring": [
|
|
"error",
|
|
{
|
|
"VariableDeclarator": { "array": false, "object": true },
|
|
"AssignmentExpression": { "array": false, "object": false }
|
|
}
|
|
],
|
|
"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",
|
|
"typescript/dot-notation": [
|
|
"error",
|
|
{
|
|
"allowPrivateClassPropertyAccess": true,
|
|
"allowProtectedClassPropertyAccess": true
|
|
}
|
|
],
|
|
"no-useless-escape": ["error", { "allowRegexCharacters": ["i"] }],
|
|
"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", { "destructuring": "all" }],
|
|
"prefer-spread": "error"
|
|
}
|
|
}
|
|
]
|
|
}
|