Skip to content

Commit

Permalink
feat: ktlint 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Sep 8, 2023
1 parent 947e337 commit 898693d
Show file tree
Hide file tree
Showing 5 changed files with 877 additions and 1,050 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"devDependencies": {
"@naturalcycles/dev-lib": "^13.0.1",
"@naturalcycles/js-lib": "^14.149.1",
"@types/node": "^18.0.0"
"@types/node": "^20.5.9"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![ktlint](https://img.shields.io/badge/code%20style-%E2%9D%A4-FF4081.svg)](https://ktlint.github.io/)

Current ktlint version: `0.49.0`
Current ktlint version: `1.0.0`

# Quick start

Expand Down
Binary file modified resources/ktlint
Binary file not shown.
8 changes: 4 additions & 4 deletions scripts/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ yarn tsn install
*/

import * as fs from 'node:fs'
import { pipeline } from 'node:stream/promises'
import fs from 'node:fs'
import { Readable } from 'node:stream'
import { pipeline } from 'node:stream/promises'
import { _hb, getFetcher } from '@naturalcycles/js-lib'
import { ktlintPath } from '../src/paths'

Expand All @@ -22,7 +22,7 @@ void (async () => {
// https://github.com/pinterest/ktlint/issues/1195
// Hence, reverting to 0.40.0
// const ktlintVersion = '0.43.2'
const ktlintVersion = '0.49.0'
const ktlintVersion = '1.0.0'
console.log(`downloading ktlint ${ktlintVersion} from github, may take some time...`)

const url = `https://github.com/pinterest/ktlint/releases/download/${ktlintVersion}/ktlint`
Expand Down Expand Up @@ -51,6 +51,6 @@ void (async () => {
chmod()
})()

function chmod() {
function chmod(): void {
fs.chmodSync(ktlintPath, '775')
}
Loading

0 comments on commit 898693d

Please sign in to comment.