mirror of
https://github.com/smogon/pokemon-showdown
synced 2026-08-24 02:26:16 -04:00
Sync eslint-ps-standard.mjs
This commit is contained in:
parent
50602f06fc
commit
8bdc42b09c
1 changed files with 6 additions and 3 deletions
|
|
@ -188,7 +188,7 @@ export const defaultRules = {
|
|||
"@stylistic/lines-between-class-members": "off",
|
||||
"@stylistic/multiline-ternary": "off",
|
||||
"@stylistic/object-curly-spacing": ["error", "always"],
|
||||
"@stylistic/indent": ["error", "tab", { "flatTernaryExpressions": true }],
|
||||
"@stylistic/indent": ["error", "tab", { "flatTernaryExpressions": true, "SwitchCase": 0 }],
|
||||
};
|
||||
|
||||
/** @type {NonNullable<Config['rules']>} */
|
||||
|
|
@ -332,7 +332,8 @@ export const defaultRulesES3 = {
|
|||
"no-invalid-this": "error",
|
||||
"no-new-wrappers": "error",
|
||||
// Map/Set can be polyfilled but it's nontrivial and it's easier just to use bare objects
|
||||
"no-restricted-globals": ["error", "Proxy", "Reflect", "Symbol", "WeakSet", "WeakMap", "Set", "Map"],
|
||||
// fetch can be polyfilled, but our standard is to use $.get or Net as appropriate.
|
||||
"no-restricted-globals": ["error", "Proxy", "Reflect", "Symbol", "WeakSet", "WeakMap", "Set", "Map", "fetch"],
|
||||
"unicode-bom": "error",
|
||||
};
|
||||
|
||||
|
|
@ -345,7 +346,9 @@ export const defaultRulesES3 = {
|
|||
export const defaultRulesES3TSChecked = {
|
||||
...defaultRulesTSChecked,
|
||||
"radix": "off",
|
||||
"no-restricted-globals": ["error", "Proxy", "Reflect", "Symbol", "WeakSet", "WeakMap", "Set", "Map"],
|
||||
// Map/Set can be polyfilled but it's nontrivial and it's easier just to use bare objects
|
||||
// fetch can be polyfilled, but our standard is to use $.get or Net as appropriate.
|
||||
"no-restricted-globals": ["error", "Proxy", "Reflect", "Symbol", "WeakSet", "WeakMap", "Set", "Map", "fetch"],
|
||||
"no-restricted-syntax": ["error", "YieldExpression", "AwaitExpression", "BigIntLiteral"],
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue