Skip to content

Commit

Permalink
fix(deps): update dependency ajv-cli to v5 (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts committed Dec 4, 2023
1 parent 41d183f commit 77446f2
Show file tree
Hide file tree
Showing 7 changed files with 320 additions and 321 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ name: Node.js CI

on:
pull_request:
branches:
- main
branches: [main]
push:
branches:
- main
branches: [main]
tags:
- '!*'
- '!*'

jobs:
test:
Expand All @@ -18,9 +16,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 20.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn format-check
- run: curl -sSL https://json.schemastore.org/prettierrc > schema.json
- run: yarn fetch-schema
- run: yarn migrate-schema
- run: yarn validate
5 changes: 2 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: release-please

on:
push:
branches:
- main
branches: [main]

jobs:
release-please:
Expand All @@ -24,7 +23,7 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
registry-url: https://registry.npmjs.org/
if: ${{ steps.release.outputs.release_created }}
- run: yarn install --frozen-lockfile
Expand Down
135 changes: 133 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,134 @@
/node_modules/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# schema
/legacy-schema.json
/schema.json
/yarn-error.log
137 changes: 137 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# schema
/legacy-schema.json
/schema.json

# changelog
/CHANGELOG.md
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ $ yarn add -D @inabagumi/prettier-config

Edit `package.json`:

```json5
```json
{
// ...
"prettier": "@inabagumi/prettier-config"
// ...
// ...
"prettier": "@inabagumi/prettier-config"
// ...
}
```

Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {},
"description": "A Prettier config for the Haneru Developers.",
"devDependencies": {
"ajv-cli": "^3.3.0",
"ajv-cli": "^5.0.0",
"prettier": "~3.1.0",
"standard-version": "^9.3.2"
},
Expand All @@ -22,12 +22,11 @@
"type": "git",
"url": "git+https://github.com/inabagumi/prettier-config.git"
},
"resolutions": {
"minimist": "^1.2.8"
},
"scripts": {
"format": "prettier --ignore-path .gitignore --write \"**/*.json\"",
"format-check": "prettier --ignore-path .gitignore --check \"**/*.json\"",
"fetch-schema": "curl -sSL https://json.schemastore.org/prettierrc > legacy-schema.json",
"format": "prettier --write .",
"format-check": "prettier --check .",
"migrate-schema": "ajv migrate --spec=draft7 -o schema.json -s legacy-schema.json",
"release": "standard-version",
"validate": "ajv validate -d index.json -s schema.json"
},
Expand Down
Loading

0 comments on commit 77446f2

Please sign in to comment.