tuyapi
tuyapi copied to clipboard
Update dependency xo to v0.59.3
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| xo | 0.25.4 -> 0.59.3 |
Release Notes
xojs/xo (xo)
v0.59.3
- Allow using experimental Node.js features
3eb8436 - Fix TypeScript extension support (#β764)
46a91e0
v0.59.2
v0.59.1
v0.59.0
New rules
-
unicorn/no-single-promise-in-promise-methods -
unicorn/no-await-in-promise-methods -
unicorn/no-anonymous-default-export -
unicorn/consistent-empty-array-spread -
unicorn/no-invalid-fetch-options -
unicorn/no-magic-array-flat-depth -
unicorn/prefer-structured-clone -
unicorn/no-negation-in-equality-check -
@typescript-eslint/no-unnecessary-parameter-property-assignment -
@typescript-eslint/use-unknown-in-catch-callback-variable
Breaking
v0.58.0
- TypeScript: Disable
default-caserule to avoid conflict with stricter@typescript-eslint/switch-exhaustiveness-checkrule
v0.57.0
Breaking
- Require Node.js 18
3b9d372
New rules
-
logical-assignment-operators -
prefer-object-has-own -
object-curly-newline -
unicorn/no-unnecessary-polyfills -
@typescript-eslint/prefer-find -
@typescript-eslint/no-array-delete -
@typescript-eslint/prefer-promise-reject-errors
v0.56.0
v0.55.1
- Lock down
eslint-plugin-importdependency to patch versions only0a71db5
v0.55.0
Breaking
- Require Node.js 16
004e3b3
New rules
v0.54.2
v0.54.1
v0.54.0
New rules
-
unicorn/no-typeof-undefined -
unicorn/no-negated-condition -
unicorn/prefer-set-size -
@typescript-eslint/no-duplicate-type-constituents
Improvements
v0.53.1
v0.53.0
Breaking
- Require Node.js 14
91d10d1 - TypeScript: It will now use inline type imports when auto-fixing https://github.com/xojs/eslint-config-xo-typescript/commit/e41f4a4032882da4f19d4ff69d303f8a1f2e127d
New rules
-
no-empty-static-block -
no-new-native-nonconstructor -
unicorn/no-unnecessary-await -
unicorn/switch-case-braces -
unicorn/prefer-logical-operator-over-ternary -
unicorn/prefer-event-target -
@typescript-eslint/no-unsafe-declaration-merging
v0.52.4
v0.52.3
v0.52.2
v0.52.1
v0.52.0
New rules
-
@typescript-eslint/consistent-type-exports -
@typescript-eslint/consistent-type-imports -
@typescript-eslint/consistent-generic-constructors -
@typescript-eslint/consistent-type-definitions-
typeandinterfaceare almost interchangeable. The main difference is thatinterfacecan be extended from anywhere, which can be useful in a few cases, but can most often cause surprising hard to track down behavior. XO prefers being strict by default and have chosentype. Just use aneslint-disablecomment in the few cases where you need the declaration to be extendable. - More info
-
Improvements
v0.51.0
- Internal: Include
rulesMetain linting results (#β674)cd86133- This is meant for editor plugins and formatters.
v0.50.0
v0.49.0
New rules
-
no-constant-binary-expression -
unicorn/text-encoding-identifier-case -
unicorn/no-useless-switch-case -
unicorn/prefer-modern-math-apis -
unicorn/no-unreadable-iife -
unicorn/prefer-native-coercion-functions -
@typescript-eslint/no-duplicate-enum-values -
@typescript-eslint/parameter-properties -
@typescript-eslint/space-before-blocks -
@typescript-eslint/no-useless-empty-export -
@typescript-eslint/no-redundant-type-constituents
Breaking
- Single-quotes is now enforced for JSX instead of double-quotes https://github.com/xojs/eslint-config-xo/pull/78
v0.48.0
New rules
-
unicorn/no-thenable -
unicorn/no-useless-promise-resolve-reject -
unicorn/relative-url-style -
unicorn/prefer-json-parse-buffer
TypeScript-only
- Disallow
nullhttps://github.com/xojs/eslint-config-xo-typescript/commit/0d1c7193b6ba6e2cb86de47fdd7e5a172f523abd
v0.47.0
New rules
-
unicorn/no-empty-file -
unicorn/prefer-export-from -
unicorn/prefer-code-point -
unicorn/no-await-expression-member
Improvements
- Enforce extensions on TypeScript files as well (#β639)
0e90967 - Rename some replacements in
prevent-abbreviations(#β620)1d2409f
v0.46.4
v0.46.3
- Fix an issue with npm not including bundledDependencies when publishing.
v0.46.2
- Fix an issue with importing a dependency
653887a
v0.46.1
- Fix an issue with npm not including
bundledDependencieswhen publishing.
v0.46.0
Breaking
New rules
Improvements
Fixes
v0.45.0
New rules
-
no-bitwise -
unicorn/no-useless-fallback-in-spread -
unicorn/no-invalid-remove-event-listener -
@typescript-eslint/naming-convention -
@typescript-eslint/no-restricted-imports -
@typescript-eslint/no-non-null-asserted-nullish-coalescing -
@typescript-eslint/padding-line-between-statements -
@typescript-eslint/no-meaningless-void-operator
Improvements
- Replace Prettier's
jsxBracketSameLineoption withbracketSameLine(#β609)506c151 - Enable
import/namedrule for JavaScript (#β601)623f259
v0.44.0
New rules
-
unicorn/prefer-object-from-entries -
unicorn/no-useless-length-check -
unicorn/no-useless-spread -
@typescript-eslint/prefer-return-this-type -
@typescript-eslint/ban-ts-comment
Improvements
- Improve performance (#β583)
e2e715d - Change
trailingCommaoption for Prettier toall(#β586)68cb5ab
Fixes
v0.43.0
Improvements
- Enforce importing
processandBufferin Node.js explicitly9f40074- This is the recommendation in the Node.js docs.
- Upgrade dependencies
f2c5041
Fixes
v0.42.0
New rules
Improvements
v0.41.0
Breaking
- XO can no longer be installed globally.
- It caused too many problems. Instead, you can run the local XO binary with
$ npx xo.
- It caused too many problems. Instead, you can run the local XO binary with
- XO now enforces trailing comma in multiline statements.
- This has a lot of benefits.
- Prettier also enforces this by default.
- If you don't want it, you can disable the
comma-danglerule, and@typescript-eslint/comma-dangleif you use TypeScript.
- Change
operator-linebreakrule to enforce operatorsbefore.- This way is more readable.
New rules
-
arrow-body-style -
unicorn/require-array-join-separator -
unicorn/require-number-to-fixed-digits-argument -
unicorn/prefer-prototype-methods -
unicorn/no-array-method-this-argument -
unicorn/require-post-message-target-origin
v0.40.3
v0.40.2
v0.40.1
v0.40.0
Breaking
- XO now enforces that your project is ESM If you cannot yet move to ESM, I recommend staying on XO 0.39 for now.
- Require Node.js 12.20
cc06c3c
New rules
-
unicorn/prefer-node-protocol -
unicorn/prefer-module -
unicorn/no-document-cookie -
unicorn/numeric-separators-style -
unicorn/prefer-array-flat -
unicorn/prefer-array-flat-map
Meta
- Move from deprecated
ESLint.CLIEnginetoESLint(#β534)0480d80This should hopefully resolve a bunch of issues.
v0.39.1
- Fix a problem with using XO with Prettier
fa34c74
v0.39.0
New rules
-
unicorn/no-static-only-class -
unicorn/prefer-array-flat -
unicorn/prefer-switch -
@typescript-eslint/no-unsafe-argument
Breaking
- Remove the
esnextoptione80c094 -
unicorn/prevent-abbreviationsrule: Rename options https://github.com/sindresorhus/eslint-plugin-unicorn/commit/cf42cc57029cc48e0305c07019a277247e149b4f -
unicorn/no-keyword-prefixrule: Renameblacklistoption todisallowedPrefixeshttps://github.com/sindresorhus/eslint-plugin-unicorn/commit/91e60d05d67fd109b4c05b50abe3ff9fcbad1097
Improvements
- Add
--print-configflag (#β529)7b8dc70 - Disable the
import/defaultrule for TypeScript filese3c511b - Disable the
import/exportrule for TypeScript filesb385bee
v0.38.2
- Disable the
node/file-extension-in-importrule for TypeScript projects (#β523)1eb8230It doesn't work properly with TypeScript projects.
v0.38.1
- Fix a problem in v0.38.0
8b2fa78
v0.38.0
New rules
-
unicorn/no-new-array -
unicorn/prefer-array-index-of -
unicorn/prefer-regexp-test -
unicorn/no-array-for-each -
unicorn/no-array-push-push -
unicorn/no-this-assignment -
@typescript-eslint/object-curly-spacing
Improvements
- Add auto-fix for fixing file extensions in imports
f4f6b39 - Add
.mjsand.cjsas default extensions (#β521)2e05c81 - Allow file extension for
import/no-unassigned-importallow list8156d42
Fixes
v0.37.1
- Fix TypeScript not supporting extensions
f56d90d
v0.37.0
New rules
-
no-unsafe-optional-chaining -
no-useless-backreference -
default-case-last -
no-nonoctal-decimal-escape -
unicorn/prefer-array-some -
unicorn/prefer-default-parameters -
unicorn/no-lonely-if -
unicorn/empty-brace-spaces -
unicorn/prefer-date-now -
@typescript-eslint/non-nullable-type-assertion-style -
@typescript-eslint/no-confusing-void-expression
Renamed rules
Only affects you if you had any of these rules disabled.
-
unicorn/no-fn-reference-in-iteratorβunicorn/no-array-callback-reference -
unicorn/no-array-instanceofβunicorn/no-instanceof-array -
unicorn/no-reduceβunicorn/no-array-reduce -
unicorn/prefer-datasetβunicorn/prefer-dom-node-dataset -
unicorn/prefer-flat-mapβunicorn/prefer-array-flat-map -
unicorn/prefer-replace-allβunicorn/prefer-string-replace-all -
unicorn/prefer-starts-ends-withβunicorn/prefer-string-starts-ends-with -
unicorn/prefer-text-contentβunicorn/prefer-dom-node-text-content -
unicorn/prefer-trim-start-endβunicorn/prefer-string-trim-start-end -
unicorn/prefer-event-keyβunicorn/prefer-keyboard-event-key -
unicorn/prefer-node-appendβunicorn/prefer-dom-node-append -
unicorn/prefer-node-removeβunicorn/prefer-dom-node-remove
Improvements
- Improve ESM compatibility
211f295 - Enforce
errβerrorfor variable namesd801095 - Enforce some inclusive wording
0ec4b8c
v0.36.1
- Fix a bug in v0.36
a186078
v0.36.0
- Add
processoroptionbf6eb25 - Disable warnings when running in a GitHub Actions workflow (#β508)
7731ea1
v0.35.0
New rules
Improvements
v0.34.2
v0.34.1
- Disable the
unicorn/import-stylerule for TypeScript projects77716e2It wants to useimport path from 'path';which is not always possible.
v0.34.0
New rules
-
unicorn/import-style -
unicorn/prefer-math-trunc -
@typescript-eslint/consistent-indexed-object-style -
@typescript-eslint/no-duplicate-imports -
@typescript-eslint/comma-dangle -
@typescript-eslint/no-loop-func -
@typescript-eslint/no-implicit-any-catch
Improvements
v0.33.1
- Fix setting multiple of some CLI flags
ead63be
v0.33.0
New rules
-
no-unreachable-loop -
no-promise-executor-return -
no-loss-of-precision -
unicorn/prefer-array-find -
unicorn/no-object-as-default-parameter -
@typescript-eslint/prefer-literal-enum-member -
@typescript-eslint/no-loss-of-precision -
@typescript-eslint/ban-tslint-comment
Improvements
v0.32.1
- Dependency updates
v0.32.0
-
Disable some problematic rules
0dd4a9d - Add more extensions to
import/extensionsruled3abdb6
v0.31.0
New rules
-
unicorn/prefer-optional-catch-binding -
unicorn/no-reduce -
@typescript-eslint/lines-between-class-members -
@typescript-eslint/no-invalid-void-type -
@typescript-eslint/prefer-ts-expect-error -
@typescript-eslint/no-unnecessary-condition -
import/no-anonymous-default-export -
import/no-named-default
Improvements
v0.30.0
New rules
- Add
@typescript-eslint/class-literal-property-stylerule - Add
@typescript-eslint/prefer-readonly-parameter-typesrule - Add
@typescript-eslint/no-base-to-stringrule - Add
@typescript-eslint/keyword-spacingrule - Add
@typescript-eslint/method-signature-stylerule - Add
@typescript-eslint/prefer-reduce-type-parameterrule - Add
@typescript-eslint/no-floating-promisesrule - Re-enable some disabled rules https://github.com/xojs/eslint-config-xo-typescript/commit/e87016887e5d57b9959e700dafd5eda7d47a2570
Fixes
- Lock
prettierdependency at2.0.4until we can resolve #β466 - Prevent extraneous newline from
--stdin --fix(#β460)07e2762
v0.29.1
- Add
tap-snapshots/*.cjsto default ignore list (#β461)4783f26 - Temporarily disable the
unicorn/string-contentrule (#β462)967927d
v0.29.0
New rules
-
unicorn/prefer-number-properties -
unicorn/prefer-set-has -
@typescript-eslint/class-literal-property-style -
@typescript-eslint/no-unsafe-return -
@typescript-eslint/no-unsafe-member-access -
@typescript-eslint/no-unsafe-call -
@typescript-eslint/prefer-readonly-parameter-types -
@typescript-eslint/no-base-to-string
Improvements
- Upgrade to Prettier 2 (#β458)
e05efc3 - Allow
nodeVersionin XO config to overrideengines.node(#β457)f20f6d2 - Add
ignoreoption toexpiring-todo-commentrule
v0.28.3
- Support
semicolonoption with TypeScript (#β446)c47a0c6 - Add TS extends after base XO extends and before user extends (#β453)
a4625a7
v0.28.2
- Set
indentrule for TS files too (#β451)41b1bd7 - Fix compatibility with latest TypeScript-ESLint version (#β452)
28902f0
v0.28.1
- Add
xo-typescriptandprettier/@​typescript-eslintbefore user extends (#β442)6c57ff7 - Change XO cache path to avoid conflicts when upgrading (#β443)
fc30597
v0.28.0
New rules
- Add
unicorn/string-contentrule (#β439)5a22b77 - Add
unicorn/prevent-abbreviationsruleba4efc9This rule enforces more readable code by preventing the use of certain abbreviations in favor of the full word. Not everyone knows all abbreviations. Saving a few characters are not worth making your code less readable. List of abbreviations XO prevents.
Improvements
v0.27.2
v0.27.1
Important: We changed the cache structure, so you'll need to delete node_modules/.cache/xo:
$ rm node_modules/.cache/xo
v0.27.0
-
Add TypeScript support (#β426)
b0dfcbdYou can now lint TypeScript projects without any extra config. You can also lintd.tsfiles in JS projects. Read more. - Find XO config based on linted file path (#β425)
e0f81a7 - Fix overrides handling for
extends,envs,globals,plugins(#β429)4cefdbc - Add
node/no-unsupported-featuresrules (#β341)2297c07 - Improve
import/no-unassigned-importsettings (#β430)0c78113
v0.26.1
v0.26.0
Breaking
New rules
20 new rules π
ESLint
-
default-param-last -
function-call-argument-newline -
grouped-accessor-pairs -
no-constructor-return -
no-dupe-else-if -
no-import-assign -
no-setter-return -
no-useless-catch -
prefer-exponentiation-operator -
prefer-named-capture-group -
prefer-object-spread -
prefer-regex-literals
Unicorn
-
unicorn/prefer-modern-dom-apis -
unicorn/prefer-negative-index -
unicorn/prefer-replace-all -
unicorn/prefer-string-slice -
unicorn/prefer-trim-start-end
Other
Enhancements
- Set the
es2020environment by defaulteb5ea2c
Fixes
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.