Skip to content

Commit

Permalink
♻️ Update prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed Nov 15, 2024
1 parent 79475bc commit 47b9108
Show file tree
Hide file tree
Showing 57 changed files with 3,412 additions and 3,897 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ tmp/
packages/*/dist
packages/*/lib

.yarn
.yarn
tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packages/*/src/**/*.(ts|tsx)": "yarn lint",
"packages/*/(src|test)/**/*.(ts|tsx)": "yarn prettier"
"packages/*/(src|test)/**/*.(ts|tsx)": "yarn format"
}
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

88 changes: 44 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"private": true,
"name": "@lokse/workspace",
"packageManager": "yarn@4.5.1",
"workspaces": [
"example",
"docs/web",
"packages/*"
],
"engines": {
"node": ">=20"
},
"scripts": {
"bootstrap": "lerna bootstrap --use-workspaces",
"build": "lerna run build",
"clean": "lerna exec --ignore example -- rm -r lib",
"changelog": "yarn update-gitmoji-config && npx gitmoji-changelog --preset generic",
"lint": "eslint packages/*/src/ --ext .ts --config ./.eslintrc",
"prettier": "prettier --write --config ./.prettierrc \"packages/*/(src|test)/**/*.(ts|tsx)\"",
"publish:ci": "lerna publish from-package --yes",
"release": "lerna version $1",
"version": "yarn changelog && code --wait CHANGELOG.md && git add CHANGELOG.md .gitmoji-changelogrc",
"test": "jest",
"test:watch": "jest --watchAll",
"update-gitmoji-config": "node ./scripts/update-gitmoji-config.js"
},
"devDependencies": {
"@types/glob": "^8.0.1",
"chai": "^4.2.0",
"eslint": "^7.32.0",
"eslint-config-oclif": "^4.0.0",
"eslint-config-oclif-typescript": "^1.0.2",
"eslint-config-prettier": "^8.3.0",
"glob": "^8.1.0",
"husky": "^4.3.0",
"lint-staged": "^10.5.1",
"prettier": "3.3.3",
"typescript": "5.6.3"
},
"dependencies": {
"@types/jest": "29.5.14",
"jest": "29.7.0",
"lerna": "4",
"ts-jest": "29.2.5"
}
"private": true,
"name": "@lokse/workspace",
"packageManager": "yarn@4.5.1",
"workspaces": [
"example",
"docs/web",
"packages/*"
],
"engines": {
"node": ">=20"
},
"scripts": {
"bootstrap": "lerna bootstrap --use-workspaces",
"build": "lerna run build",
"clean": "lerna exec --ignore example -- rm -r lib",
"changelog": "yarn update-gitmoji-config && npx gitmoji-changelog --preset generic",
"lint": "eslint packages/*/src/ --ext .ts --config ./.eslintrc",
"format": "prettier --write --config prettier.config.mjs \"packages/*/(src|test)/**/*.(ts|tsx)\"",
"publish:ci": "lerna publish from-package --yes",
"release": "lerna version $1",
"version": "yarn changelog && code --wait CHANGELOG.md && git add CHANGELOG.md .gitmoji-changelogrc",
"test": "jest",
"test:watch": "jest --watchAll",
"update-gitmoji-config": "node ./scripts/update-gitmoji-config.js"
},
"devDependencies": {
"@types/glob": "^8.0.1",
"chai": "^4.2.0",
"eslint": "^7.32.0",
"eslint-config-oclif": "^4.0.0",
"eslint-config-oclif-typescript": "^1.0.2",
"eslint-config-prettier": "^8.3.0",
"glob": "^8.1.0",
"husky": "^4.3.0",
"lint-staged": "^10.5.1",
"prettier": "3.3.3",
"typescript": "5.6.3"
},
"dependencies": {
"@types/jest": "29.5.14",
"jest": "29.7.0",
"lerna": "4",
"ts-jest": "29.2.5"
}
}
30 changes: 15 additions & 15 deletions packages/cli/src/base.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import { Command } from "@oclif/command";
import * as updateNotifier from "update-notifier";
import { Command } from '@oclif/command';
import * as updateNotifier from 'update-notifier';

import { getConfig } from "@lokse/core";
import type { LokseConfig } from "@lokse/core";
import { getConfig } from '@lokse/core';
import type { LokseConfig } from '@lokse/core';

const pkg = require("../package.json");
const pkg = require('../package.json');

export default abstract class Base extends Command {
protected conf: undefined | null | LokseConfig;
protected conf: undefined | null | LokseConfig;

async init(): Promise<void> {
const notifier = updateNotifier({
pkg,
updateCheckInterval: 1000,
shouldNotifyInNpmScript: true,
});
notifier.notify();
async init(): Promise<void> {
const notifier = updateNotifier({
pkg,
updateCheckInterval: 1000,
shouldNotifyInNpmScript: true,
});
notifier.notify();

this.conf = getConfig();
}
this.conf = getConfig();
}
}
Loading

0 comments on commit 47b9108

Please sign in to comment.