Skip to content

Commit

Permalink
chore: up deps and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
chantouchsek committed Aug 23, 2024
1 parent 2a0076f commit 2e77636
Show file tree
Hide file tree
Showing 9 changed files with 190 additions and 216 deletions.
2 changes: 1 addition & 1 deletion __tests__/lang.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Validator } from '../src/main'
import type { SimpleObject } from '../src/types'

interface Language {
input: SimpleObject | null
input: null | SimpleObject
locale: LangTypes
message: string
rules: Record<RuleType, any>
Expand Down
15 changes: 5 additions & 10 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ export default config({}, {
'perfectionist/sort-array-includes': [
'error',
{
'order': 'asc',
'spread-last': true,
'type': 'natural',
order: 'asc',
type: 'natural',
},
],
'perfectionist/sort-classes': [
Expand Down Expand Up @@ -60,13 +59,9 @@ export default config({}, {
'perfectionist/sort-objects': [
'error',
{
'custom-groups': {
id: 'id',
},
'groups': ['id', 'unknown'],
'order': 'asc',
'partition-by-comment': 'Part:**',
'type': 'natural',
groups: ['id', 'unknown'],
order: 'asc',
type: 'natural',
},
],
'perfectionist/sort-union-types': [
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@chantouchsek/validatorjs",
"type": "module",
"version": "2.2.1",
"packageManager": "pnpm@9.1.4",
"packageManager": "pnpm@9.8.0",
"description": "The validator.js library makes data validation in JavaScript very easy in both the browser and Node.js.",
"author": {
"name": "Chantouch Sek",
Expand Down Expand Up @@ -54,21 +54,21 @@
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@antfu/eslint-config": "^2.19.1",
"@commitlint/cli": "^19.3.0",
"@antfu/eslint-config": "^2.27.1",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.12.13",
"@vitest/coverage-v8": "^2.0.2",
"eslint": "^9.3.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"@types/node": "^22.5.0",
"@vitest/coverage-v8": "^2.0.5",
"eslint": "^9.9.0",
"husky": "^9.1.5",
"lint-staged": "^15.2.9",
"node-notifier": "^10.0.1",
"standard-version": "^9.5.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
"vitest": "^2.0.2"
"vitest": "^2.0.5"
},
"lint-staged": {
"*.{js,ts}": "eslint . --fix"
Expand Down
Loading

0 comments on commit 2e77636

Please sign in to comment.