Skip to content

Commit

Permalink
refactor: update pob with new prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed May 5, 2024
1 parent 2b81e84 commit 71e44f6
Show file tree
Hide file tree
Showing 232 changed files with 1,670 additions and 1,719 deletions.
8 changes: 4 additions & 4 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';
"use strict";

module.exports = function babelConfig(api) {
const isTest = api.env('test');
const isTest = api.env("test");

if (!isTest) return {};

return {
only: ['packages/*/src', 'packages/*/lib'],
presets: [['pob-babel/preset.js', { modules: false }]],
only: ["packages/*/src", "packages/*/lib"],
presets: [["pob-babel/preset.js", { modules: false }]],
};
};
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import createLintStagedConfig from '@pob/root/createLintStagedConfig';
import createLintStagedConfig from "@pob/root/createLintStagedConfig";

export default createLintStagedConfig();
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"devDependencies": {
"@babel/core": "7.24.5",
"@pob/commitlint-config": "6.3.3",
"@pob/eslint-config": "55.2.1",
"@pob/eslint-config-typescript": "55.2.1",
"@pob/root": "9.4.3",
"@pob/eslint-config": "56.0.0",
"@pob/eslint-config-typescript": "56.0.0",
"@pob/root": "10.0.0",
"@types/jest": "29.5.12",
"@types/node": "20.12.8",
"check-package-dependencies": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/nightingale-ansi-formatter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ npm install --save nightingale-ansi-formatter
## Usage

```js
import ansiFormatter from 'nightingale-ansi-formatter';
import ansiFormatter from "nightingale-ansi-formatter";
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Styles, LogRecord, Metadata } from 'nightingale-types';
export type { Styles } from 'nightingale-types';
import type { Styles, LogRecord, Metadata } from "nightingale-types";
export type { Styles } from "nightingale-types";
export declare function style(styles: Styles, string: string): string;
/**
* @param {Object} record
Expand Down
4 changes: 2 additions & 2 deletions packages/nightingale-ansi-formatter/dist/index-browser.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/nightingale-ansi-formatter/dist/index-node18.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const ansiStyles = {
open: ansi.color.ansi256(ansi.hexToAnsi256(styleToHexColor.orange)),
close: ansi.color.close
},
'gray-light': {
open: ansi.color.ansi256(ansi.hexToAnsi256(styleToHexColor['gray-light'])),
"gray-light": {
open: ansi.color.ansi256(ansi.hexToAnsi256(styleToHexColor["gray-light"])),
close: ansi.color.close
}
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/nightingale-ansi-formatter/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import createRollupConfig from 'pob-babel/createRollupConfig.js';
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
import createRollupConfig from "pob-babel/createRollupConfig.js";

export default createRollupConfig({
cwd: dirname(fileURLToPath(import.meta.url)),
outDirectory: 'dist',
outDirectory: "dist",
});
1 change: 0 additions & 1 deletion packages/nightingale-ansi-formatter/src/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"EXPERIMENTAL_useProjectService": true,
"project": "packages/nightingale-ansi-formatter/tsconfig.json"
},
"plugins": ["@typescript-eslint"],
Expand Down
Loading

0 comments on commit 71e44f6

Please sign in to comment.