chore: bump oxlint and rules (#6314)

This commit is contained in:
Brooooooklyn 2024-03-26 05:58:21 +00:00
parent 669ca325a1
commit d8a3cd5ce2
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99
3 changed files with 56 additions and 36 deletions

View File

@ -30,7 +30,7 @@
"lint:eslint:fix": "yarn lint:eslint --fix",
"lint:prettier": "prettier --ignore-unknown --cache --check .",
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
"lint:ox": "oxlint --import-plugin --deny-warnings -D correctness -D nursery -D prefer-array-some -D no-useless-promise-resolve-reject -D perf -A no-undef -A consistent-type-exports -A default -A named -A ban-ts-comment -A export",
"lint:ox": "oxlint --import-plugin --deny-warnings -D correctness -D nursery -D prefer-array-some -D no-useless-promise-resolve-reject -D perf -A no-undef -A consistent-type-exports -A default -A named -A ban-ts-comment -A export -A no-unresolved -A no-default-export -A no-duplicates -A no-side-effects-in-initialization -A no-named-as-default -A getter-return",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
"test": "vitest --run",
@ -97,7 +97,7 @@
"nanoid": "^5.0.6",
"nx": "^18.0.4",
"nyc": "^15.1.0",
"oxlint": "0.0.22",
"oxlint": "0.2.14",
"prettier": "^3.2.5",
"semver": "^7.6.0",
"serve": "^14.2.1",

View File

@ -27,7 +27,7 @@ export type CheckboxProps = Omit<
export const Checkbox = ({
checked,
onChange,
indeterminate: indeterminate,
indeterminate,
disabled,
animation,
name,

View File

@ -602,7 +602,7 @@ __metadata:
nanoid: "npm:^5.0.6"
nx: "npm:^18.0.4"
nyc: "npm:^15.1.0"
oxlint: "npm:0.0.22"
oxlint: "npm:0.2.14"
prettier: "npm:^3.2.5"
semver: "npm:^7.6.0"
serve: "npm:^14.2.1"
@ -9400,44 +9400,58 @@ __metadata:
languageName: node
linkType: hard
"@oxlint/darwin-arm64@npm:0.0.22":
version: 0.0.22
resolution: "@oxlint/darwin-arm64@npm:0.0.22"
"@oxlint/darwin-arm64@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/darwin-arm64@npm:0.2.14"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@oxlint/darwin-x64@npm:0.0.22":
version: 0.0.22
resolution: "@oxlint/darwin-x64@npm:0.0.22"
"@oxlint/darwin-x64@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/darwin-x64@npm:0.2.14"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@oxlint/linux-arm64@npm:0.0.22":
version: 0.0.22
resolution: "@oxlint/linux-arm64@npm:0.0.22"
conditions: os=linux & cpu=arm64
"@oxlint/linux-arm64-gnu@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/linux-arm64-gnu@npm:0.2.14"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@oxlint/linux-x64@npm:0.0.22":
version: 0.0.22
resolution: "@oxlint/linux-x64@npm:0.0.22"
conditions: os=linux & cpu=x64
"@oxlint/linux-arm64-musl@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/linux-arm64-musl@npm:0.2.14"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@oxlint/win32-arm64@npm:0.0.22":
version: 0.0.22
resolution: "@oxlint/win32-arm64@npm:0.0.22"
"@oxlint/linux-x64-gnu@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/linux-x64-gnu@npm:0.2.14"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@oxlint/linux-x64-musl@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/linux-x64-musl@npm:0.2.14"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@oxlint/win32-arm64@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/win32-arm64@npm:0.2.14"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@oxlint/win32-x64@npm:0.0.22":
version: 0.0.22
resolution: "@oxlint/win32-x64@npm:0.0.22"
"@oxlint/win32-x64@npm:0.2.14":
version: 0.2.14
resolution: "@oxlint/win32-x64@npm:0.2.14"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
@ -28953,24 +28967,30 @@ __metadata:
languageName: node
linkType: hard
"oxlint@npm:0.0.22":
version: 0.0.22
resolution: "oxlint@npm:0.0.22"
"oxlint@npm:0.2.14":
version: 0.2.14
resolution: "oxlint@npm:0.2.14"
dependencies:
"@oxlint/darwin-arm64": "npm:0.0.22"
"@oxlint/darwin-x64": "npm:0.0.22"
"@oxlint/linux-arm64": "npm:0.0.22"
"@oxlint/linux-x64": "npm:0.0.22"
"@oxlint/win32-arm64": "npm:0.0.22"
"@oxlint/win32-x64": "npm:0.0.22"
"@oxlint/darwin-arm64": "npm:0.2.14"
"@oxlint/darwin-x64": "npm:0.2.14"
"@oxlint/linux-arm64-gnu": "npm:0.2.14"
"@oxlint/linux-arm64-musl": "npm:0.2.14"
"@oxlint/linux-x64-gnu": "npm:0.2.14"
"@oxlint/linux-x64-musl": "npm:0.2.14"
"@oxlint/win32-arm64": "npm:0.2.14"
"@oxlint/win32-x64": "npm:0.2.14"
dependenciesMeta:
"@oxlint/darwin-arm64":
optional: true
"@oxlint/darwin-x64":
optional: true
"@oxlint/linux-arm64":
"@oxlint/linux-arm64-gnu":
optional: true
"@oxlint/linux-x64":
"@oxlint/linux-arm64-musl":
optional: true
"@oxlint/linux-x64-gnu":
optional: true
"@oxlint/linux-x64-musl":
optional: true
"@oxlint/win32-arm64":
optional: true
@ -28978,7 +28998,7 @@ __metadata:
optional: true
bin:
oxlint: bin/oxlint
checksum: 10/9d780f3293b08c83e45996187c8098e2ef8323ed02427c7a15d5cfa542f967b0e7862f76814ef3b8c4b94badd2f21eb92130de7f2f8f0dfec91e4a3a3797c63f
checksum: 10/18c46a5adfa7477d6aa0be095fd913efd5b6701873f98d31d95f28817b7bb6590e1f1bc1b774dd4aa2166290c51482921a7ada7d86d0aaf16d9ab8d804dde8cf
languageName: node
linkType: hard