TGUI 4.5.1-paradise (Inferno 8, eslint 9) (#26258)

* bump TGUI deps

* update yarn lockfile

* prettier fixes
This commit is contained in:
S34N
2024-07-20 16:21:15 +00:00
committed by GitHub
parent cb4d709c78
commit b42cbb2975
46 changed files with 3071 additions and 3153 deletions
-6
View File
@@ -1,6 +0,0 @@
/.yarn/**
/**/node_modules
/**/*.bundle.*
/**/*.chunk.*
/**/*.hot-update.*
/packages/inferno/**
-771
View File
@@ -1,771 +0,0 @@
root: true
extends: prettier
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2020
sourceType: module
ecmaFeatures:
jsx: true
env:
es6: true
browser: true
node: true
globals:
Byond: readonly
plugins:
- prettier
- react
settings:
import/resolver:
node:
extensions: ['.js', '.jsx', '.ts', '.tsx']
react:
version: '16.10'
rules:
## Possible Errors
## ----------------------------------------
## Enforce “for” loop update clause moving the counter in the right
## direction.
# for-direction: error
## Enforce return statements in getters
# getter-return: error
## Disallow using an async function as a Promise executor
no-async-promise-executor: error
## Disallow await inside of loops
# no-await-in-loop: error
## Disallow comparing against -0
# no-compare-neg-zero: error
## Disallow assignment operators in conditional expressions
no-cond-assign: error
## Disallow the use of console
# no-console: error
## Disallow constant expressions in conditions
# no-constant-condition: error
## Disallow control characters in regular expressions
# no-control-regex: error
## Disallow the use of debugger
no-debugger: error
## Disallow duplicate arguments in function definitions
no-dupe-args: error
## Disallow duplicate keys in object literals
no-dupe-keys: error
## Disallow duplicate case labels
no-duplicate-case: error
## Disallow empty block statements
# no-empty: error
## Disallow empty character classes in regular expressions
no-empty-character-class: error
## Disallow reassigning exceptions in catch clauses
no-ex-assign: error
## Disallow unnecessary boolean casts
no-extra-boolean-cast: error
## Disallow unnecessary parentheses
# no-extra-parens: warn
## Disallow unnecessary semicolons
# no-extra-semi: error
## Disallow reassigning function declarations
no-func-assign: error
## Disallow assigning to imported bindings
no-import-assign: error
## Disallow variable or function declarations in nested blocks
no-inner-declarations: error
## Disallow invalid regular expression strings in RegExp constructors
no-invalid-regexp: error
## Disallow irregular whitespace
no-irregular-whitespace: error
## Disallow characters which are made with multiple code points in character
## class syntax
no-misleading-character-class: error
## Disallow calling global object properties as functions
no-obj-calls: error
## Disallow calling some Object.prototype methods directly on objects
no-prototype-builtins: error
## Disallow multiple spaces in regular expressions
no-regex-spaces: error
## Disallow sparse arrays
no-sparse-arrays: error
## Disallow template literal placeholder syntax in regular strings
no-template-curly-in-string: error
## Disallow confusing multiline expressions
# no-unexpected-multiline: error
## Disallow unreachable code after return, throw, continue, and break
## statements
# no-unreachable: warn
## Disallow control flow statements in finally blocks
no-unsafe-finally: error
## Disallow negating the left operand of relational operators
no-unsafe-negation: error
## Disallow assignments that can lead to race conditions due to usage of
## await or yield
# require-atomic-updates: error
## Require calls to isNaN() when checking for NaN
use-isnan: error
## Enforce comparing typeof expressions against valid strings
valid-typeof: error
## Best practices
## ----------------------------------------
## Enforce getter and setter pairs in objects and classes
# accessor-pairs: error
## Enforce return statements in callbacks of array methods
# array-callback-return: error
## Enforce the use of variables within the scope they are defined
# block-scoped-var: error
## Enforce that class methods utilize this
# class-methods-use-this: error
## Enforce a maximum cyclomatic complexity allowed in a program
complexity: [error, { max: 50 }]
## Require return statements to either always or never specify values
# consistent-return: error
## Enforce consistent brace style for all control statements
curly: [error, multi-line]
## Require default cases in switch statements
# default-case: error
## Enforce default parameters to be last
# default-param-last: error
## Enforce consistent newlines before and after dots
# dot-location: [error, property]
## Enforce dot notation whenever possible
# dot-notation: error
## Require the use of === and !==
eqeqeq: [error, always]
## Require for-in loops to include an if statement
# guard-for-in: error
## Enforce a maximum number of classes per file
# max-classes-per-file: error
## Disallow the use of alert, confirm, and prompt
# no-alert: error
## Disallow the use of arguments.caller or arguments.callee
# no-caller: error
## Disallow lexical declarations in case clauses
no-case-declarations: error
## Disallow division operators explicitly at the beginning of regular
## expressions
# no-div-regex: error
## Disallow else blocks after return statements in if statements
# no-else-return: error
## Disallow empty functions
# no-empty-function: error
## Disallow empty destructuring patterns
no-empty-pattern: error
## Disallow null comparisons without type-checking operators
# no-eq-null: error
## Disallow the use of eval()
# no-eval: error
## Disallow extending native types
# no-extend-native: error
## Disallow unnecessary calls to .bind()
# no-extra-bind: error
## Disallow unnecessary labels
# no-extra-label: error
## Disallow fallthrough of case statements
no-fallthrough: error
## Disallow leading or trailing decimal points in numeric literals
# no-floating-decimal: error
## Disallow assignments to native objects or read-only global variables
no-global-assign: error
## Disallow shorthand type conversions
# no-implicit-coercion: error
## Disallow variable and function declarations in the global scope
# no-implicit-globals: error
## Disallow the use of eval()-like methods
# no-implied-eval: error
## Disallow this keywords outside of classes or class-like objects
# no-invalid-this: error
## Disallow the use of the __iterator__ property
# no-iterator: error
## Disallow labeled statements
# no-labels: error
## Disallow unnecessary nested blocks
# no-lone-blocks: error
## Disallow function declarations that contain unsafe references inside
## loop statements
# no-loop-func: error
## Disallow magic numbers
# no-magic-numbers: error
## Disallow multiple spaces
# no-multi-spaces: warn
## Disallow multiline strings
# no-multi-str: error
## Disallow new operators outside of assignments or comparisons
# no-new: error
## Disallow new operators with the Function object
# no-new-func: error
## Disallow new operators with the String, Number, and Boolean objects
# no-new-wrappers: error
## Disallow octal literals
no-octal: error
## Disallow octal escape sequences in string literals
no-octal-escape: error
## Disallow reassigning function parameters
# no-param-reassign: error
## Disallow the use of the __proto__ property
# no-proto: error
## Disallow variable redeclaration
no-redeclare: error
## Disallow certain properties on certain objects
# no-restricted-properties: error
## Disallow assignment operators in return statements
no-return-assign: error
## Disallow unnecessary return await
# no-return-await: error
## Disallow javascript: urls
# no-script-url: error
## Disallow assignments where both sides are exactly the same
no-self-assign: error
## Disallow comparisons where both sides are exactly the same
# no-self-compare: error
## Disallow comma operators
no-sequences: error
## Disallow throwing literals as exceptions
# no-throw-literal: error
## Disallow unmodified loop conditions
# no-unmodified-loop-condition: error
## Disallow unused expressions
# no-unused-expressions: error
## Disallow unused labels
no-unused-labels: warn
## Disallow unnecessary calls to .call() and .apply()
# no-useless-call: error
## Disallow unnecessary catch clauses
# no-useless-catch: error
## Disallow unnecessary concatenation of literals or template literals
# no-useless-concat: error
## Disallow unnecessary escape characters
no-useless-escape: warn
## Disallow redundant return statements
# no-useless-return: error
## Disallow void operators
# no-void: error
## Disallow specified warning terms in comments
# no-warning-comments: error
## Disallow with statements
no-with: error
## Enforce using named capture group in regular expression
# prefer-named-capture-group: error
## Require using Error objects as Promise rejection reasons
# prefer-promise-reject-errors: error
## Disallow use of the RegExp constructor in favor of regular expression
## literals
# prefer-regex-literals: error
## Enforce the consistent use of the radix argument when using parseInt()
radix: error
## Disallow async functions which have no await expression
# require-await: error
## Enforce the use of u flag on RegExp
# require-unicode-regexp: error
## Require var declarations be placed at the top of their containing scope
# vars-on-top: error
## Require parentheses around immediate function invocations
# wrap-iife: error
## Require or disallow “Yoda” conditions
# yoda: error
## Strict mode
## ----------------------------------------
## Require or disallow strict mode directives
strict: error
## Variables
## ----------------------------------------
## Require or disallow initialization in variable declarations
# init-declarations: error
## Disallow deleting variables
no-delete-var: error
## Disallow labels that share a name with a variable
# no-label-var: error
## Disallow specified global variables
# no-restricted-globals: error
## Disallow variable declarations from shadowing variables declared in
## the outer scope
# no-shadow: error
## Disallow identifiers from shadowing restricted names
no-shadow-restricted-names: error
## Disallow the use of undeclared variables unless mentioned
## in /*global*/ comments
no-undef: error
## Disallow initializing variables to undefined
no-undef-init: error
## Disallow the use of undefined as an identifier
## This can't be enabled because of https://github.com/facebook/regenerator/blob/cb755fd82c648cbc5307a5a2d61cdd598e698fc4/packages/runtime/runtime.js#L14
# no-undefined: error
## Disallow unused variables
# no-unused-vars: error
## Disallow the use of variables before they are defined
# no-use-before-define: error
## Code style
## ----------------------------------------
## Enforce linebreaks after opening and before closing array brackets
# array-bracket-newline: [error, consistent]
## Enforce consistent spacing inside array brackets
# array-bracket-spacing: [error, never]
## Enforce line breaks after each array element
# array-element-newline: error
## Disallow or enforce spaces inside of blocks after opening block and
## before closing block
# block-spacing: [error, always]
## Enforce consistent brace style for blocks
# brace-style: [error, stroustrup, { allowSingleLine: false }]
## Enforce camelcase naming convention
# camelcase: error
## Enforce or disallow capitalization of the first letter of a comment
# capitalized-comments: error
## Require or disallow trailing commas
# comma-dangle: [error, {
# arrays: always-multiline,
# objects: always-multiline,
# imports: always-multiline,
# exports: always-multiline,
# functions: only-multiline, ## Optional on functions
# }]
## Enforce consistent spacing before and after commas
# comma-spacing: [error, { before: false, after: true }]
## Enforce consistent comma style
# comma-style: [error, last]
## Enforce consistent spacing inside computed property brackets
# computed-property-spacing: [error, never]
## Enforce consistent naming when capturing the current execution context
# consistent-this: error
## Require or disallow newline at the end of files
# eol-last: error
## Require or disallow spacing between function identifiers and their
## invocations
# func-call-spacing: [error, never]
## Require function names to match the name of the variable or property
## to which they are assigned
# func-name-matching: error
## Require or disallow named function expressions
# func-names: error
## Enforce the consistent use of either function declarations or expressions
func-style: [error, expression]
## Enforce line breaks between arguments of a function call
# function-call-argument-newline: error
## Enforce consistent line breaks inside function parentheses
## NOTE: This rule does not honor a newline on opening paren.
# function-paren-newline: [error, never]
## Disallow specified identifiers
# id-blacklist: error
## Enforce minimum and maximum identifier lengths
# id-length: error
## Require identifiers to match a specified regular expression
# id-match: error
## Enforce the location of arrow function bodies
# implicit-arrow-linebreak: error
## Enforce consistent indentation
# indent: [error, 2, { SwitchCase: 1 }]
## Enforce the consistent use of either double or single quotes in JSX
## attributes
# jsx-quotes: [error, prefer-double]
## Enforce consistent spacing between keys and values in object literal
## properties
# key-spacing: [error, { beforeColon: false, afterColon: true }]
## Enforce consistent spacing before and after keywords
# keyword-spacing: [error, { before: true, after: true }]
## Enforce position of line comments
# line-comment-position: error
## Enforce consistent linebreak style
# linebreak-style: error
## Require empty lines around comments
# lines-around-comment: error
## Require or disallow an empty line between class members
# lines-between-class-members: error
## Enforce a maximum depth that blocks can be nested
# max-depth: error
## Enforce a maximum line length
#max-len: [error, {
# code: 80,
## Ignore imports
#ignorePattern: '^(import\s.+\sfrom\s|.*require\()',
#ignoreUrls: true,
#ignoreRegExpLiterals: true,
#ignoreStrings: true,
#}]
## Enforce a maximum number of lines per file
# max-lines: error
## Enforce a maximum number of line of code in a function
# max-lines-per-function: error
## Enforce a maximum depth that callbacks can be nested
# max-nested-callbacks: error
## Enforce a maximum number of parameters in function definitions
# max-params: error
## Enforce a maximum number of statements allowed in function blocks
# max-statements: error
## Enforce a maximum number of statements allowed per line
# max-statements-per-line: error
## Enforce a particular style for multiline comments
# multiline-comment-style: error
## Enforce newlines between operands of ternary expressions
# multiline-ternary: [error, always-multiline]
## Require constructor names to begin with a capital letter
# new-cap: error
## Enforce or disallow parentheses when invoking a constructor with no
## arguments
# new-parens: error
## Require a newline after each call in a method chain
# newline-per-chained-call: error
## Disallow Array constructors
# no-array-constructor: error
## Disallow bitwise operators
# no-bitwise: error
## Disallow continue statements
# no-continue: error
## Disallow inline comments after code
# no-inline-comments: error
## Disallow if statements as the only statement in else blocks
# no-lonely-if: error
## Disallow mixed binary operators
# no-mixed-operators: error
## Disallow mixed spaces and tabs for indentation
# no-mixed-spaces-and-tabs: error
## Disallow use of chained assignment expressions
# no-multi-assign: error
## Disallow multiple empty lines
# no-multiple-empty-lines: error
## Disallow negated conditions
# no-negated-condition: error
## Disallow nested ternary expressions
# no-nested-ternary: error
## Disallow Object constructors
# no-new-object: error
## Disallow the unary operators ++ and --
# no-plusplus: error
## Disallow specified syntax
# no-restricted-syntax: error
## Disallow all tabs
# no-tabs: error
## Disallow ternary operators
# no-ternary: error
## Disallow trailing whitespace at the end of lines
# no-trailing-spaces: error
## Disallow dangling underscores in identifiers
# no-underscore-dangle: error
## Disallow ternary operators when simpler alternatives exist
# no-unneeded-ternary: error
## Disallow whitespace before properties
# no-whitespace-before-property: error
## Enforce the location of single-line statements
# nonblock-statement-body-position: error
## Enforce consistent line breaks inside braces
# object-curly-newline: [error, { multiline: true }]
## Enforce consistent spacing inside braces
# object-curly-spacing: [error, always]
## Enforce placing object properties on separate lines
# object-property-newline: error
## Enforce variables to be declared either together or separately in
## functions
# one-var: error
## Require or disallow newlines around variable declarations
# one-var-declaration-per-line: error
## Require or disallow assignment operator shorthand where possible
# operator-assignment: error
## Enforce consistent linebreak style for operators
# operator-linebreak: [error, before]
## Require or disallow padding within blocks
# padded-blocks: error
## Require or disallow padding lines between statements
# padding-line-between-statements: error
## Disallow using Object.assign with an object literal as the first
## argument and prefer the use of object spread instead.
# prefer-object-spread: error
## Require quotes around object literal property names
# quote-props: error
## Enforce the consistent use of either backticks, double, or single quotes
# quotes: [error, single]
## Require or disallow semicolons instead of ASI
# semi: error
## Enforce consistent spacing before and after semicolons
# semi-spacing: [error, { before: false, after: true }]
## Enforce location of semicolons
# semi-style: [error, last]
## Require object keys to be sorted
# sort-keys: error
## Require variables within the same declaration block to be sorted
# sort-vars: error
## Enforce consistent spacing before blocks
# space-before-blocks: [error, always]
## Enforce consistent spacing before function definition opening parenthesis
# space-before-function-paren: [error, {
# anonymous: always,
# named: never,
# asyncArrow: always,
# }]
## Enforce consistent spacing inside parentheses
# space-in-parens: [error, never]
## Require spacing around infix operators
# space-infix-ops: error
## Enforce consistent spacing before or after unary operators
# space-unary-ops: error
## Enforce consistent spacing after the // or /* in a comment
spaced-comment: [error, always]
## Enforce spacing around colons of switch statements
# switch-colon-spacing: [error, { before: false, after: true }]
## Require or disallow spacing between template tags and their literals
# template-tag-spacing: [error, never]
## Require or disallow Unicode byte order mark (BOM)
# unicode-bom: [error, never]
## Require parenthesis around regex literals
# wrap-regex: error
## ES6
## ----------------------------------------
## Require braces around arrow function bodies
# arrow-body-style: error
## Require parentheses around arrow function arguments
# arrow-parens: [error, as-needed]
## Enforce consistent spacing before and after the arrow in arrow functions
# arrow-spacing: [error, { before: true, after: true }]
## Require super() calls in constructors
# constructor-super: error
## Enforce consistent spacing around * operators in generator functions
# generator-star-spacing: [error, { before: false, after: true }]
## Disallow reassigning class members
no-class-assign: error
## Disallow arrow functions where they could be confused with comparisons
# no-confusing-arrow: error
## Disallow reassigning const variables
no-const-assign: error
## Disallow duplicate class members
no-dupe-class-members: error
## Disallow duplicate module imports
# no-duplicate-imports: error
## Disallow new operators with the Symbol object
no-new-symbol: error
## Disallow specified modules when loaded by import
# no-restricted-imports: error
## Disallow this/super before calling super() in constructors
no-this-before-super: error
## Disallow unnecessary computed property keys in object literals
# no-useless-computed-key: error
## Disallow unnecessary constructors
# no-useless-constructor: error
## Disallow renaming import, export, and destructured assignments to the
## same name
# no-useless-rename: error
## Require let or const instead of var
no-var: error
## Require or disallow method and property shorthand syntax for object
## literals
# object-shorthand: error
## Require using arrow functions for callbacks
prefer-arrow-callback: error
## Require const declarations for variables that are never reassigned after
## declared
# prefer-const: error
## Require destructuring from arrays and/or objects
# prefer-destructuring: error
## Disallow parseInt() and Number.parseInt() in favor of binary, octal, and
## hexadecimal literals
# prefer-numeric-literals: error
## Require rest parameters instead of arguments
# prefer-rest-params: error
## Require spread operators instead of .apply()
# prefer-spread: error
## Require template literals instead of string concatenation
# prefer-template: error
## Require generator functions to contain yield
# require-yield: error
## Enforce spacing between rest and spread operators and their expressions
# rest-spread-spacing: error
## Enforce sorted import declarations within modules
# sort-imports: error
## Require symbol descriptions
# symbol-description: error
## Require or disallow spacing around embedded expressions of template
## strings
# template-curly-spacing: error
## Require or disallow spacing around the * in yield* expressions
# yield-star-spacing: [error, { before: false, after: true }]
## React
## ----------------------------------------
## Enforces consistent naming for boolean props
react/boolean-prop-naming: error
## Forbid "button" element without an explicit "type" attribute
react/button-has-type: error
## Prevent extraneous defaultProps on components
react/default-props-match-prop-types: error
## Rule enforces consistent usage of destructuring assignment in component
# react/destructuring-assignment: [error, always, { ignoreClassFields: true }]
## Prevent missing displayName in a React component definition
# react/display-name: error
## Forbid certain props on Components
# react/forbid-component-props: error
## Forbid certain props on DOM Nodes
# react/forbid-dom-props: error
## Forbid certain elements
# react/forbid-elements: error
## Forbid certain propTypes
# react/forbid-prop-types: error
## Forbid foreign propTypes
# react/forbid-foreign-prop-types: error
## Prevent using this.state inside this.setState
react/no-access-state-in-setstate: error
## Prevent using Array index in key props
# react/no-array-index-key: error
## Prevent passing children as props
react/no-children-prop: error
## Prevent usage of dangerous JSX properties
react/no-danger: error
## Prevent problem with children and props.dangerouslySetInnerHTML
react/no-danger-with-children: error
## Prevent usage of deprecated methods, including component lifecycle
## methods
react/no-deprecated: error
## Prevent usage of setState in componentDidMount
react/no-did-mount-set-state: error
## Prevent usage of setState in componentDidUpdate
react/no-did-update-set-state: error
## Prevent direct mutation of this.state
react/no-direct-mutation-state: error
## Prevent usage of findDOMNode
react/no-find-dom-node: error
## Prevent usage of isMounted
react/no-is-mounted: error
## Prevent multiple component definition per file
# react/no-multi-comp: error
## Prevent usage of shouldComponentUpdate when extending React.PureComponent
react/no-redundant-should-component-update: error
## Prevent usage of the return value of React.render
react/no-render-return-value: error
## Prevent usage of setState
# react/no-set-state: error
## Prevent common casing typos
react/no-typos: error
## Prevent using string references in ref attribute.
react/no-string-refs: error
## Prevent using this in stateless functional components
react/no-this-in-sfc: error
## Prevent invalid characters from appearing in markup
react/no-unescaped-entities: error
## Prevent usage of unknown DOM property (fixable)
# react/no-unknown-property: error
## Prevent usage of unsafe lifecycle methods
react/no-unsafe: error
## Prevent definitions of unused prop types
react/no-unused-prop-types: error
## Prevent definitions of unused state properties
react/no-unused-state: error
## Prevent usage of setState in componentWillUpdate
react/no-will-update-set-state: error
## Enforce ES5 or ES6 class for React Components
react/prefer-es6-class: error
## Enforce that props are read-only
# react/prefer-read-only-props: error
## Enforce stateless React Components to be written as a pure function
react/prefer-stateless-function: error
## Prevent missing props validation in a React component definition
# react/prop-types: error
## Prevent missing React when using JSX
# react/react-in-jsx-scope: error
## Enforce a defaultProps definition for every prop that is not a required
## prop
# react/require-default-props: error
## Enforce React components to have a shouldComponentUpdate method
# react/require-optimization: error
## Enforce ES5 or ES6 class for returning value in render function
react/require-render-return: error
## Prevent extra closing tags for components without children (fixable)
react/self-closing-comp: error
## Enforce component methods order (fixable)
# react/sort-comp: error
## Enforce propTypes declarations alphabetical sorting
# react/sort-prop-types: error
## Enforce the state initialization style to be either in a constructor or
## with a class property
react/state-in-constructor: error
## Enforces where React component static properties should be positioned.
# react/static-property-placement: error
## Enforce style prop value being an object
react/style-prop-object: error
## Prevent void DOM elements (e.g. <img />, <br />) from receiving children
react/void-dom-elements-no-children: error
## JSX-specific rules
## ----------------------------------------
## Enforce boolean attributes notation in JSX (fixable)
react/jsx-boolean-value: error
## Enforce or disallow spaces inside of curly braces in JSX attributes and
## expressions.
# react/jsx-child-element-spacing: error
## Validate closing bracket location in JSX (fixable)
# react/jsx-closing-bracket-location: [error, {
# ## NOTE: Not really sure about enforcing this one
# selfClosing: false,
# nonEmpty: after-props,
# }]
## Validate closing tag location in JSX (fixable)
# react/jsx-closing-tag-location: error
## Enforce or disallow newlines inside of curly braces in JSX attributes and
## expressions (fixable)
# react/jsx-curly-newline: error
## Enforce or disallow spaces inside of curly braces in JSX attributes and
## expressions (fixable)
# react/jsx-curly-spacing: error
## Enforce or disallow spaces around equal signs in JSX attributes (fixable)
# react/jsx-equals-spacing: error
## Restrict file extensions that may contain JSX
# react/jsx-filename-extension: error
## Enforce position of the first prop in JSX (fixable)
# react/jsx-first-prop-new-line: error
## Enforce event handler naming conventions in JSX
react/jsx-handler-names: error
## Validate JSX indentation (fixable)
# react/jsx-indent: [error, 2, {
# checkAttributes: true,
# }]
## Validate props indentation in JSX (fixable)
# react/jsx-indent-props: [error, 2]
## Validate JSX has key prop when in array or iterator
react/jsx-key: error
## Validate JSX maximum depth
react/jsx-max-depth: [error, { max: 10 }] ## Generous
## Limit maximum of props on a single line in JSX (fixable)
# react/jsx-max-props-per-line: error
## Prevent usage of .bind() and arrow functions in JSX props
# react/jsx-no-bind: error
## Prevent comments from being inserted as text nodes
react/jsx-no-comment-textnodes: error
## Prevent duplicate props in JSX
react/jsx-no-duplicate-props: error
## Prevent usage of unwrapped JSX strings
# react/jsx-no-literals: error
## Prevent usage of unsafe target='_blank'
react/jsx-no-target-blank: error
## Disallow undeclared variables in JSX
react/jsx-no-undef: error
## Disallow unnecessary fragments (fixable)
react/jsx-no-useless-fragment: error
## Limit to one expression per line in JSX
# react/jsx-one-expression-per-line: error
## Enforce curly braces or disallow unnecessary curly braces in JSX
# react/jsx-curly-brace-presence: error
## Enforce shorthand or standard form for React fragments
react/jsx-fragments: error
## Enforce PascalCase for user-defined JSX components
react/jsx-pascal-case: error
## Disallow multiple spaces between inline JSX props (fixable)
# react/jsx-props-no-multi-spaces: error
## Disallow JSX props spreading
# react/jsx-props-no-spreading: error
## Enforce default props alphabetical sorting
# react/jsx-sort-default-props: error
## Enforce props alphabetical sorting (fixable)
# react/jsx-sort-props: error
## Validate whitespace in and around the JSX opening and closing brackets
## (fixable)
# react/jsx-tag-spacing: error
## Prevent React to be incorrectly marked as unused
react/jsx-uses-react: error
## Prevent variables used in JSX to be incorrectly marked as unused
react/jsx-uses-vars: error
## Prevent missing parentheses around multilines JSX (fixable)
# react/jsx-wrap-multilines: error
overrides:
- files: ['*.ts', '*.mts', '*.cts', '*.tsx']
rules:
# https://typescript-eslint.io/linting/troubleshooting/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
no-undef: off
react/jsx-no-undef: off
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+11 -4
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/bin/eslint.js
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+11 -4
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+11 -4
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/use-at-your-own-risk
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "8.56.0-sdk",
"version": "9.7.0-sdk",
"main": "./lib/api.js",
"type": "commonjs",
"bin": {
+8 -1
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin/prettier.cjs
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+8 -1
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "3.1.1-sdk",
"version": "3.3.3-sdk",
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
+8 -1
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsc
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+8 -1
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsserver
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+11 -4
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsc.js
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+87 -100
View File
@@ -1,31 +1,43 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const moduleWrapper = (tsserver) => {
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserver.js
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
const moduleWrapper = tsserver => {
if (!process.versions.pnp) {
return tsserver;
}
const { isAbsolute } = require(`path`);
const {isAbsolute} = require(`path`);
const pnpApi = require(`pnpapi`);
const isVirtual = (str) => str.match(/\/(\$\$virtual|__virtual__)\//);
const isPortal = (str) => str.startsWith('portal:/');
const normalize = (str) => str.replace(/\\/g, `/`).replace(/^\/?/, `/`);
const isVirtual = str => str.match(/\/(\$\$virtual|__virtual__)\//);
const isPortal = str => str.startsWith("portal:/");
const normalize = str => str.replace(/\\/g, `/`).replace(/^\/?/, `/`);
const dependencyTreeRoots = new Set(
pnpApi.getDependencyTreeRoots().map((locator) => {
return `${locator.name}@${locator.reference}`;
})
);
const dependencyTreeRoots = new Set(pnpApi.getDependencyTreeRoots().map(locator => {
return `${locator.name}@${locator.reference}`;
}));
// VSCode sends the zip paths to TS using the "zip://" prefix, that TS
// doesn't understand. This layer makes sure to remove the protocol
@@ -47,10 +59,7 @@ const moduleWrapper = (tsserver) => {
const resolved = isVirtual(str) ? pnpApi.resolveVirtual(str) : str;
if (resolved) {
const locator = pnpApi.findPackageLocator(resolved);
if (
locator &&
(dependencyTreeRoots.has(`${locator.name}@${locator.reference}`) || isPortal(locator.reference))
) {
if (locator && (dependencyTreeRoots.has(`${locator.name}@${locator.reference}`) || isPortal(locator.reference))) {
str = resolved;
}
}
@@ -78,55 +87,41 @@ const moduleWrapper = (tsserver) => {
// Before | ^/zip/c:/foo/bar.zip/package.json
// After | ^/zip//c:/foo/bar.zip/package.json
//
case `vscode <1.61`:
{
str = `^zip:${str}`;
}
break;
case `vscode <1.61`: {
str = `^zip:${str}`;
} break;
case `vscode <1.66`:
{
str = `^/zip/${str}`;
}
break;
case `vscode <1.66`: {
str = `^/zip/${str}`;
} break;
case `vscode <1.68`:
{
str = `^/zip${str}`;
}
break;
case `vscode <1.68`: {
str = `^/zip${str}`;
} break;
case `vscode`:
{
str = `^/zip/${str}`;
}
break;
case `vscode`: {
str = `^/zip/${str}`;
} break;
// To make "go to definition" work,
// We have to resolve the actual file system path from virtual path
// and convert scheme to supported by [vim-rzip](https://github.com/lbrayner/vim-rzip)
case `coc-nvim`:
{
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = resolve(`zipfile:${str}`);
}
break;
case `coc-nvim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = resolve(`zipfile:${str}`);
} break;
// Support neovim native LSP and [typescript-language-server](https://github.com/theia-ide/typescript-language-server)
// We have to resolve the actual file system path from virtual path,
// everything else is up to neovim
case `neovim`:
{
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = `zipfile://${str}`;
}
break;
case `neovim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = `zipfile://${str}`;
} break;
default:
{
str = `zip:${str}`;
}
break;
default: {
str = `zip:${str}`;
} break;
}
} else {
str = str.replace(/^\/?/, process.platform === `win32` ? `` : `/`);
@@ -138,30 +133,26 @@ const moduleWrapper = (tsserver) => {
function fromEditorPath(str) {
switch (hostInfo) {
case `coc-nvim`:
{
str = str.replace(/\.zip::/, `.zip/`);
// The path for coc-nvim is in format of /<pwd>/zipfile:/<pwd>/.yarn/...
// So in order to convert it back, we use .* to match all the thing
// before `zipfile:`
return process.platform === `win32` ? str.replace(/^.*zipfile:\//, ``) : str.replace(/^.*zipfile:/, ``);
}
break;
case `coc-nvim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for coc-nvim is in format of /<pwd>/zipfile:/<pwd>/.yarn/...
// So in order to convert it back, we use .* to match all the thing
// before `zipfile:`
return process.platform === `win32`
? str.replace(/^.*zipfile:\//, ``)
: str.replace(/^.*zipfile:/, ``);
} break;
case `neovim`:
{
str = str.replace(/\.zip::/, `.zip/`);
// The path for neovim is in format of zipfile:///<pwd>/.yarn/...
return str.replace(/^zipfile:\/\//, ``);
}
break;
case `neovim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for neovim is in format of zipfile:///<pwd>/.yarn/...
return str.replace(/^zipfile:\/\//, ``);
} break;
case `vscode`:
default:
{
return str.replace(/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/, process.platform === `win32` ? `` : `/`);
}
break;
default: {
return str.replace(/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/, process.platform === `win32` ? `` : `/`)
} break;
}
}
@@ -173,8 +164,8 @@ const moduleWrapper = (tsserver) => {
// TypeScript already does local loads and if this code is running the user trusts the workspace
// https://github.com/microsoft/vscode/issues/45856
const ConfiguredProject = tsserver.server.ConfiguredProject;
const { enablePluginsWithOptions: originalEnablePluginsWithOptions } = ConfiguredProject.prototype;
ConfiguredProject.prototype.enablePluginsWithOptions = function () {
const {enablePluginsWithOptions: originalEnablePluginsWithOptions} = ConfiguredProject.prototype;
ConfiguredProject.prototype.enablePluginsWithOptions = function() {
this.projectService.allowLocalPluginLoads = true;
return originalEnablePluginsWithOptions.apply(this, arguments);
};
@@ -184,7 +175,7 @@ const moduleWrapper = (tsserver) => {
// like an absolute path of ours and normalize it.
const Session = tsserver.server.Session;
const { onMessage: originalOnMessage, send: originalSend } = Session.prototype;
const {onMessage: originalOnMessage, send: originalSend} = Session.prototype;
let hostInfo = `unknown`;
Object.assign(Session.prototype, {
@@ -200,12 +191,10 @@ const moduleWrapper = (tsserver) => {
) {
hostInfo = parsedMessage.arguments.hostInfo;
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK) {
const [, major, minor] = (
process.env.VSCODE_IPC_HOOK.match(
// The RegExp from https://semver.org/ but without the caret at the start
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
) ?? []
).map(Number);
const [, major, minor] = (process.env.VSCODE_IPC_HOOK.match(
// The RegExp from https://semver.org/ but without the caret at the start
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
) ?? []).map(Number)
if (major === 1) {
if (minor < 61) {
@@ -223,29 +212,27 @@ const moduleWrapper = (tsserver) => {
return typeof value === 'string' ? fromEditorPath(value) : value;
});
return originalOnMessage.call(this, isStringMessage ? processedMessageJSON : JSON.parse(processedMessageJSON));
return originalOnMessage.call(
this,
isStringMessage ? processedMessageJSON : JSON.parse(processedMessageJSON)
);
},
send(/** @type {any} */ msg) {
return originalSend.call(
this,
JSON.parse(
JSON.stringify(msg, (key, value) => {
return typeof value === `string` ? toEditorPath(value) : value;
})
)
);
},
return originalSend.call(this, JSON.parse(JSON.stringify(msg, (key, value) => {
return typeof value === `string` ? toEditorPath(value) : value;
})));
}
});
return tsserver;
};
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserver.js
require(absPnpApiPath).setup();
}
const [major, minor] = absRequire(`typescript/package.json`).version.split(`.`, 2).map(value => parseInt(value, 10));
// In TypeScript@>=5.5 the tsserver uses the public TypeScript API so that needs to be patched as well.
// Ref https://github.com/microsoft/TypeScript/pull/55326
if (major > 5 || (major === 5 && minor >= 5)) {
moduleWrapper(absRequire(`typescript`));
}
// Defer to the real typescript/lib/tsserver.js your application uses
+87 -100
View File
@@ -1,31 +1,43 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const moduleWrapper = (tsserver) => {
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserverlibrary.js
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
const moduleWrapper = tsserver => {
if (!process.versions.pnp) {
return tsserver;
}
const { isAbsolute } = require(`path`);
const {isAbsolute} = require(`path`);
const pnpApi = require(`pnpapi`);
const isVirtual = (str) => str.match(/\/(\$\$virtual|__virtual__)\//);
const isPortal = (str) => str.startsWith('portal:/');
const normalize = (str) => str.replace(/\\/g, `/`).replace(/^\/?/, `/`);
const isVirtual = str => str.match(/\/(\$\$virtual|__virtual__)\//);
const isPortal = str => str.startsWith("portal:/");
const normalize = str => str.replace(/\\/g, `/`).replace(/^\/?/, `/`);
const dependencyTreeRoots = new Set(
pnpApi.getDependencyTreeRoots().map((locator) => {
return `${locator.name}@${locator.reference}`;
})
);
const dependencyTreeRoots = new Set(pnpApi.getDependencyTreeRoots().map(locator => {
return `${locator.name}@${locator.reference}`;
}));
// VSCode sends the zip paths to TS using the "zip://" prefix, that TS
// doesn't understand. This layer makes sure to remove the protocol
@@ -47,10 +59,7 @@ const moduleWrapper = (tsserver) => {
const resolved = isVirtual(str) ? pnpApi.resolveVirtual(str) : str;
if (resolved) {
const locator = pnpApi.findPackageLocator(resolved);
if (
locator &&
(dependencyTreeRoots.has(`${locator.name}@${locator.reference}`) || isPortal(locator.reference))
) {
if (locator && (dependencyTreeRoots.has(`${locator.name}@${locator.reference}`) || isPortal(locator.reference))) {
str = resolved;
}
}
@@ -78,55 +87,41 @@ const moduleWrapper = (tsserver) => {
// Before | ^/zip/c:/foo/bar.zip/package.json
// After | ^/zip//c:/foo/bar.zip/package.json
//
case `vscode <1.61`:
{
str = `^zip:${str}`;
}
break;
case `vscode <1.61`: {
str = `^zip:${str}`;
} break;
case `vscode <1.66`:
{
str = `^/zip/${str}`;
}
break;
case `vscode <1.66`: {
str = `^/zip/${str}`;
} break;
case `vscode <1.68`:
{
str = `^/zip${str}`;
}
break;
case `vscode <1.68`: {
str = `^/zip${str}`;
} break;
case `vscode`:
{
str = `^/zip/${str}`;
}
break;
case `vscode`: {
str = `^/zip/${str}`;
} break;
// To make "go to definition" work,
// We have to resolve the actual file system path from virtual path
// and convert scheme to supported by [vim-rzip](https://github.com/lbrayner/vim-rzip)
case `coc-nvim`:
{
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = resolve(`zipfile:${str}`);
}
break;
case `coc-nvim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = resolve(`zipfile:${str}`);
} break;
// Support neovim native LSP and [typescript-language-server](https://github.com/theia-ide/typescript-language-server)
// We have to resolve the actual file system path from virtual path,
// everything else is up to neovim
case `neovim`:
{
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = `zipfile://${str}`;
}
break;
case `neovim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = `zipfile://${str}`;
} break;
default:
{
str = `zip:${str}`;
}
break;
default: {
str = `zip:${str}`;
} break;
}
} else {
str = str.replace(/^\/?/, process.platform === `win32` ? `` : `/`);
@@ -138,30 +133,26 @@ const moduleWrapper = (tsserver) => {
function fromEditorPath(str) {
switch (hostInfo) {
case `coc-nvim`:
{
str = str.replace(/\.zip::/, `.zip/`);
// The path for coc-nvim is in format of /<pwd>/zipfile:/<pwd>/.yarn/...
// So in order to convert it back, we use .* to match all the thing
// before `zipfile:`
return process.platform === `win32` ? str.replace(/^.*zipfile:\//, ``) : str.replace(/^.*zipfile:/, ``);
}
break;
case `coc-nvim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for coc-nvim is in format of /<pwd>/zipfile:/<pwd>/.yarn/...
// So in order to convert it back, we use .* to match all the thing
// before `zipfile:`
return process.platform === `win32`
? str.replace(/^.*zipfile:\//, ``)
: str.replace(/^.*zipfile:/, ``);
} break;
case `neovim`:
{
str = str.replace(/\.zip::/, `.zip/`);
// The path for neovim is in format of zipfile:///<pwd>/.yarn/...
return str.replace(/^zipfile:\/\//, ``);
}
break;
case `neovim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for neovim is in format of zipfile:///<pwd>/.yarn/...
return str.replace(/^zipfile:\/\//, ``);
} break;
case `vscode`:
default:
{
return str.replace(/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/, process.platform === `win32` ? `` : `/`);
}
break;
default: {
return str.replace(/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/, process.platform === `win32` ? `` : `/`)
} break;
}
}
@@ -173,8 +164,8 @@ const moduleWrapper = (tsserver) => {
// TypeScript already does local loads and if this code is running the user trusts the workspace
// https://github.com/microsoft/vscode/issues/45856
const ConfiguredProject = tsserver.server.ConfiguredProject;
const { enablePluginsWithOptions: originalEnablePluginsWithOptions } = ConfiguredProject.prototype;
ConfiguredProject.prototype.enablePluginsWithOptions = function () {
const {enablePluginsWithOptions: originalEnablePluginsWithOptions} = ConfiguredProject.prototype;
ConfiguredProject.prototype.enablePluginsWithOptions = function() {
this.projectService.allowLocalPluginLoads = true;
return originalEnablePluginsWithOptions.apply(this, arguments);
};
@@ -184,7 +175,7 @@ const moduleWrapper = (tsserver) => {
// like an absolute path of ours and normalize it.
const Session = tsserver.server.Session;
const { onMessage: originalOnMessage, send: originalSend } = Session.prototype;
const {onMessage: originalOnMessage, send: originalSend} = Session.prototype;
let hostInfo = `unknown`;
Object.assign(Session.prototype, {
@@ -200,12 +191,10 @@ const moduleWrapper = (tsserver) => {
) {
hostInfo = parsedMessage.arguments.hostInfo;
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK) {
const [, major, minor] = (
process.env.VSCODE_IPC_HOOK.match(
// The RegExp from https://semver.org/ but without the caret at the start
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
) ?? []
).map(Number);
const [, major, minor] = (process.env.VSCODE_IPC_HOOK.match(
// The RegExp from https://semver.org/ but without the caret at the start
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
) ?? []).map(Number)
if (major === 1) {
if (minor < 61) {
@@ -223,29 +212,27 @@ const moduleWrapper = (tsserver) => {
return typeof value === 'string' ? fromEditorPath(value) : value;
});
return originalOnMessage.call(this, isStringMessage ? processedMessageJSON : JSON.parse(processedMessageJSON));
return originalOnMessage.call(
this,
isStringMessage ? processedMessageJSON : JSON.parse(processedMessageJSON)
);
},
send(/** @type {any} */ msg) {
return originalSend.call(
this,
JSON.parse(
JSON.stringify(msg, (key, value) => {
return typeof value === `string` ? toEditorPath(value) : value;
})
)
);
},
return originalSend.call(this, JSON.parse(JSON.stringify(msg, (key, value) => {
return typeof value === `string` ? toEditorPath(value) : value;
})));
}
});
return tsserver;
};
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserverlibrary.js
require(absPnpApiPath).setup();
}
const [major, minor] = absRequire(`typescript/package.json`).version.split(`.`, 2).map(value => parseInt(value, 10));
// In TypeScript@>=5.5 the tsserver uses the public TypeScript API so that needs to be patched as well.
// Ref https://github.com/microsoft/TypeScript/pull/55326
if (major > 5 || (major === 5 && minor >= 5)) {
moduleWrapper(absRequire(`typescript`));
}
// Defer to the real typescript/lib/tsserverlibrary.js your application uses
+11 -4
View File
@@ -1,18 +1,25 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "typescript",
"version": "5.3.3-sdk",
"version": "5.5.3-sdk",
"main": "./lib/typescript.js",
"type": "commonjs",
"bin": {
+3 -1
View File
@@ -10,6 +10,8 @@ logFilters:
- code: YN0062
level: discard
nodeLinker: node-modules
packageExtensions:
babel-plugin-inferno@*:
dependencies:
@@ -19,4 +21,4 @@ pnpEnableEsmLoader: false
preferInteractive: true
yarnPath: .yarn/releases/yarn-4.1.1.cjs
yarnPath: .yarn/releases/yarn-4.3.1.cjs
+1 -1
View File
@@ -62,7 +62,7 @@ task-lint() {
cd "${base_dir}"
yarn run tsc
echo "tgui: type check passed"
yarn run eslint packages --ext .js,.jsx,.ts,.tsx,.cjs,.mjs "${@}"
yarn run eslint packages "${@}"
echo "tgui: eslint check passed"
}
+1 -1
View File
@@ -54,7 +54,7 @@ function task-dev-server {
function task-lint {
yarn run tsc
Write-Output "tgui: type check passed"
yarn run eslint packages --ext ".js,.jsx,.ts,.tsx,.cjs,.mjs" @Args
yarn run eslint packages @Args
Write-Output "tgui: eslint check passed"
}
+171
View File
@@ -0,0 +1,171 @@
import prettier from "eslint-plugin-prettier";
import react from "eslint-plugin-react";
import { fixupPluginRules } from "@eslint/compat";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
export default [...compat.extends("prettier"), {
ignores: ["/.yarn/**", "/**/node_modules", "/**/*.bundle.*", "/**/*.chunk.*", "/**/*.hot-update.*", "/packages/inferno/**"],
plugins: {
prettier,
react: fixupPluginRules(react),
},
languageOptions: {
globals: {
...globals.browser,
...globals.node,
Byond: "readonly",
},
parser: tsParser,
ecmaVersion: 2020,
sourceType: "module",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
react: {
version: "16.10",
},
},
rules: {
"no-async-promise-executor": "error",
"no-cond-assign": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-func-assign": "error",
"no-import-assign": "error",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-misleading-character-class": "error",
"no-obj-calls": "error",
"no-prototype-builtins": "error",
"no-regex-spaces": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"use-isnan": "error",
"valid-typeof": "error",
complexity: ["error", {
max: 50,
}],
curly: ["error", "multi-line"],
eqeqeq: ["error", "always"],
"no-case-declarations": "error",
"no-empty-pattern": "error",
"no-fallthrough": "error",
"no-global-assign": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-self-assign": "error",
"no-sequences": "error",
"no-unused-labels": "warn",
"no-useless-escape": "warn",
"no-with": "error",
radix: "error",
strict: "error",
"no-delete-var": "error",
"no-shadow-restricted-names": "error",
"no-undef": "error",
"no-undef-init": "error",
"func-style": ["error", "expression"],
"spaced-comment": ["error", "always"],
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-new-symbol": "error",
"no-this-before-super": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"react/boolean-prop-naming": "error",
"react/button-has-type": "error",
"react/default-props-match-prop-types": "error",
"react/no-access-state-in-setstate": "error",
"react/no-children-prop": "error",
"react/no-danger": "error",
"react/no-danger-with-children": "error",
"react/no-deprecated": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-find-dom-node": "error",
"react/no-is-mounted": "error",
"react/no-redundant-should-component-update": "error",
"react/no-render-return-value": "error",
"react/no-typos": "error",
"react/no-string-refs": "error",
"react/no-this-in-sfc": "error",
"react/no-unescaped-entities": "error",
"react/no-unsafe": "error",
"react/no-unused-prop-types": "error",
"react/no-unused-state": "error",
"react/no-will-update-set-state": "error",
"react/prefer-es6-class": "error",
"react/prefer-stateless-function": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/state-in-constructor": "error",
"react/style-prop-object": "error",
"react/void-dom-elements-no-children": "error",
"react/jsx-boolean-value": "error",
"react/jsx-handler-names": "error",
"react/jsx-key": "error",
"react/jsx-max-depth": ["error", {
max: 10,
}],
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
"react/jsx-no-useless-fragment": "error",
"react/jsx-fragments": "error",
"react/jsx-pascal-case": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
},
}, {
files: ["**/*.js", "**/*.jsx", "**/*.cjs", "**/*.mjs", "**/*.ts", "**/*.mts", "**/*.cts", "**/*.tsx"],
rules: {
"no-undef": "off",
"react/jsx-no-undef": "off",
},
}];
+1
View File
@@ -26,6 +26,7 @@ namespace JSX {
marquee: any;
blink: any;
}
Element
}
type TguiMessage = {
+32 -28
View File
@@ -1,50 +1,54 @@
{
"private": true,
"name": "tgui-workspace",
"version": "4.5.0-paradise",
"packageManager": "yarn@4.1.1",
"version": "4.5.1-paradise",
"packageManager": "yarn@4.3.1",
"workspaces": [
"packages/*"
],
"dependencies": {
"@babel/core": "^7.23.3",
"@babel/eslint-parser": "^7.23.3",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-jscript": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.11",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.10.6",
"@babel/core": "^7.24.9",
"@babel/eslint-parser": "^7.24.8",
"@babel/plugin-transform-class-properties": "^7.24.7",
"@babel/plugin-transform-jscript": "^7.24.7",
"@babel/preset-env": "^7.24.8",
"@babel/preset-typescript": "^7.24.7",
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.7.0",
"@types/jest": "^29.5.12",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.14.11",
"@types/webpack": "^5.28.5",
"@types/webpack-env": "^1.18.4",
"@typescript-eslint/parser": "^6.18.0",
"@types/webpack-env": "^1.18.5",
"@typescript-eslint/parser": "^8.0.0-alpha",
"babel-jest": "^29.7.0",
"babel-loader": "^8.3.0",
"babel-plugin-inferno": "^6.7.1",
"babel-plugin-transform-remove-console": "^6.9.4",
"common": "workspace:*",
"css-loader": "^6.8.1",
"esbuild-loader": "^4.0.2",
"eslint": "^8.56.0",
"css-loader": "^7.1.2",
"esbuild-loader": "^4.2.2",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "5.1.2",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-unused-imports": "^3.0.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "^7.34.4",
"eslint-plugin-unused-imports": "^4.0.0",
"file-loader": "^6.2.0",
"globals": "^15.8.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^23.1.0",
"mini-css-extract-plugin": "^2.7.6",
"prettier": "3.2.5",
"sass": "^1.69.7",
"sass-loader": "^13.3.2",
"style-loader": "^3.3.3",
"jsdom": "^24.1.0",
"mini-css-extract-plugin": "^2.9.0",
"prettier": "3.3.3",
"sass": "^1.77.8",
"sass-loader": "^14.2.1",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "^5.3.10",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"webpack-bundle-analyzer": "^4.10.1",
"typescript": "^5.5.3",
"webpack": "^5.93.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4"
}
}
+1 -2
View File
@@ -230,7 +230,7 @@ export const reduce = (reducerFn, initialValue) => (array) => {
* is determined by the order they occur in the array. The iteratee is
* invoked with one argument: value.
*/
/* eslint-disable indent */
export const uniqBy =
<T extends unknown>(iterateeFn?: (value: T) => unknown) =>
(array: T[]) => {
@@ -262,7 +262,6 @@ export const uniqBy =
}
return result;
};
/* eslint-enable indent */
export const uniq = uniqBy();
+4 -4
View File
@@ -1,13 +1,13 @@
{
"private": true,
"name": "tgui-dev-server",
"version": "4.5.0-paradise",
"version": "4.5.1-paradise",
"type": "module",
"dependencies": {
"axios": "^1.6.2",
"glob": "^7.2.0",
"axios": "^1.7.2",
"glob": "^11.0.0",
"source-map": "^0.7.4",
"stacktrace-parser": "^0.1.10",
"ws": "^8.17.1"
"ws": "^8.18.0"
}
}
@@ -18,7 +18,7 @@ const regexParseNode = (params) => {
let fragment;
let n = 0;
let count = 0;
// eslint-disable-next-line no-cond-assign
while ((match = regex.exec(text))) {
n += 1;
// Safety check to prevent permanent
+2 -2
View File
@@ -1,11 +1,11 @@
{
"private": true,
"name": "tgui-panel",
"version": "4.5.0-paradise",
"version": "4.5.1-paradise",
"dependencies": {
"common": "workspace:*",
"dompurify": "2.5.0",
"inferno": "^7.4.11",
"inferno": "^8.2.3",
"tgui": "workspace:*",
"tgui-dev-server": "workspace:*",
"tgui-polyfill": "workspace:*"
+3 -3
View File
@@ -1,16 +1,16 @@
{
"private": true,
"name": "tgui-polyfill",
"version": "4.5.0-paradise",
"version": "4.5.1-paradise",
"scripts": {
"tgui-polyfill:build": "terser 1-misc.js -f ascii_only,comments=false -o ../../public/tgui-polyfill.min.js"
},
"dependencies": {
"core-js": "^3.35.0",
"core-js": "^3.37.1",
"regenerator-runtime": "^0.14.1",
"unfetch": "^5.0.0"
},
"devDependencies": {
"terser": "^5.26.0"
"terser": "^5.31.3"
}
}
+2 -2
View File
@@ -1,10 +1,10 @@
{
"private": true,
"name": "tgui-say",
"version": "4.5.0-paradise",
"version": "4.5.1-paradise",
"dependencies": {
"common": "workspace:*",
"inferno": "^7.4.11",
"inferno": "^8.2.3",
"tgui": "workspace:*",
"tgui-polyfill": "workspace:*"
}
+2 -2
View File
@@ -5,7 +5,7 @@
*/
import { BooleanLike, classes, pureComponentHooks } from 'common/react';
import { createVNode, InfernoNode } from 'inferno';
import { createVNode, InfernoNode, Inferno } from 'inferno';
import { ChildFlags, VNodeFlags } from 'inferno-vnode-flags';
import { CSS_COLORS } from '../constants';
@@ -199,7 +199,7 @@ const styleMapperByPropName = {
};
export const computeBoxProps = (props: BoxProps) => {
const computedProps: HTMLAttributes<any> = {};
const computedProps: Inferno.HTMLAttributes<any> = {};
const computedStyles = {};
// Compute props
for (let propName of Object.keys(props)) {
+1 -1
View File
@@ -33,7 +33,7 @@ export class Countdown extends Component {
componentDidUpdate(prevProps) {
if (this.props.current !== prevProps.current) {
// https://github.com/yannickcr/eslint-plugin-react/issues/1707
// eslint-disable-next-line react/no-did-update-set-state
this.setState((prevState) => {
return {
value: Math.max(this.props.timeLeft * 100, 0),
+2 -2
View File
@@ -1,6 +1,6 @@
import { createPopper, VirtualElement } from '@popperjs/core';
import { classes } from 'common/react';
import { Component, findDOMfromVNode, InfernoNode, render } from 'inferno';
import { Component, findDOMFromVNode, InfernoNode, render } from 'inferno';
import { Box, BoxProps } from './Box';
import { Icon } from './Icon';
@@ -81,7 +81,7 @@ export class Dropdown extends Component<DropdownProps, DropdownState> {
};
getDOMNode() {
return findDOMfromVNode(this.$LI, true);
return findDOMFromVNode(this.$LI, true);
}
componentDidMount() {
+2 -2
View File
@@ -1,5 +1,5 @@
import { createPopper, OptionsGeneric } from '@popperjs/core';
import { Component, findDOMfromVNode, InfernoNode, render } from 'inferno';
import { Component, findDOMFromVNode, InfernoNode, render } from 'inferno';
import type * as CSS from 'csstype';
type PopperProps = {
@@ -43,7 +43,7 @@ export class Popper extends Component<PopperProps> {
// This code is copied from `findDOMNode` in inferno-extras.
// Because this component is written in TypeScript, we will know
// immediately if this internal variable is removed.
findDOMfromVNode(this.$LI, true),
findDOMFromVNode(this.$LI, true),
this.renderedContent,
options
);
+2 -2
View File
@@ -1,5 +1,5 @@
import { createPopper, Placement, VirtualElement } from '@popperjs/core';
import { Component, findDOMfromVNode, InfernoNode, render } from 'inferno';
import { Component, findDOMFromVNode, InfernoNode, render } from 'inferno';
type TooltipProps = {
children?: InfernoNode;
@@ -57,7 +57,7 @@ export class Tooltip extends Component<TooltipProps, TooltipState> {
// This code is copied from `findDOMNode` in inferno-extras.
// Because this component is written in TypeScript, we will know
// immediately if this internal variable is removed.
return findDOMfromVNode(this.$LI, true);
return findDOMFromVNode(this.$LI, true);
}
componentDidMount() {
+4 -3
View File
@@ -4,6 +4,7 @@ import { resolveAsset } from '../assets';
import { useBackend } from '../backend';
import { Box, Button, Icon, Stack } from '../components';
import { Window } from '../layouts';
import { InfernoNode } from 'inferno';
const ROWS = 5;
const COLUMNS = 9;
@@ -23,7 +24,7 @@ const getGridSpotKey = (spot: [number, number]): GridSpotKey => {
return `${spot[0]}/${spot[1]}`;
};
const CornerText = (props: { align: 'left' | 'right'; children: string }): JSX.Element => {
const CornerText = (props: { align: 'left' | 'right'; children: string }): InfernoNode => {
const { align, children } = props;
return (
@@ -89,7 +90,7 @@ const SLOTS: Record<
displayName: string;
gridSpot: GridSpotKey;
image?: string;
additionalComponent?: JSX.Element;
additionalComponent?: InfernoNode;
}
> = {
eyes: {
@@ -231,7 +232,7 @@ const ALTERNATIVE_SLOTS: Record<
displayName: string;
gridSpot: GridSpotKey;
image?: string;
additionalComponent?: JSX.Element;
additionalComponent?: InfernoNode;
}
> = {
eyes: {
+1 -1
View File
@@ -136,7 +136,7 @@ const TitleBar = (props, context) => {
className="TitleBar__close TitleBar__clickable"
// IE8: Synthetic onClick event doesn't work on IE8.
// IE8: Use a plain character instead of a unicode symbol.
// eslint-disable-next-line react/no-unknown-property
onclick={onClose}
>
×
+4 -4
View File
@@ -1,16 +1,16 @@
{
"private": true,
"name": "tgui",
"version": "4.5.0-paradise",
"version": "4.5.1-paradise",
"dependencies": {
"@popperjs/core": "^2.11.8",
"@types/marked": "^6.0.0",
"common": "workspace:*",
"csstype": "^3.1.3",
"dompurify": "2.5.0",
"highlight.js": "^11.9.0",
"inferno": "^7.4.11",
"inferno-vnode-flags": "^7.4.11",
"highlight.js": "^11.10.0",
"inferno": "^8.2.3",
"inferno-vnode-flags": "^8.2.3",
"js-yaml": "^4.1.0",
"prop-types": "^15.8.1",
"tgui-dev-server": "workspace:*",
@@ -128,15 +128,15 @@ $bg-map: colors.$bg-map !default;
}
.Button--color--transparent {
@include button-color(base.$color-bg);
background-color: rgba(base.$color-bg, 0);
color: $color-transparent-text;
@include button-color(base.$color-bg);
}
.Button--color--translucent {
@include button-color(base.$color-bg);
background-color: rgba(base.$color-bg, 0.6);
color: $color-transparent-text;
@include button-color(base.$color-bg);
}
.Button--disabled {
@@ -214,6 +214,6 @@ $bg-map: colors.$bg-map !default;
}
.ImageButton__item--selected {
@include item-style($color-selected);
border-left: 0;
@include item-style($color-selected);
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1458 -979
View File
File diff suppressed because it is too large Load Diff