@nemigo/configs 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eslint.d.ts CHANGED
@@ -10,7 +10,6 @@ export interface EslintConfigOptions {
10
10
  export { includeIgnoreFile };
11
11
  /**
12
12
  * Универсальная сборка flat-конфига для 'eslint'.
13
- * Взята из `npx sv create`
14
13
  *
15
14
  * Включает в себя:
16
15
  * - .eslint.ignore
package/dist/eslint.js CHANGED
@@ -8,7 +8,6 @@ import tslint from "typescript-eslint";
8
8
  export { includeIgnoreFile };
9
9
  /**
10
10
  * Универсальная сборка flat-конфига для 'eslint'.
11
- * Взята из `npx sv create`
12
11
  *
13
12
  * Включает в себя:
14
13
  * - .eslint.ignore
@@ -73,6 +72,7 @@ service
73
72
  "@typescript-eslint/no-dynamic-delete": 0,
74
73
  "@typescript-eslint/no-empty-object-type": 0,
75
74
  "@typescript-eslint/no-explicit-any": 0,
75
+ "@typescript-eslint/no-invalid-void-type": 0,
76
76
  "@typescript-eslint/no-non-null-asserted-optional-chain": 0,
77
77
  "@typescript-eslint/no-non-null-assertion": 0,
78
78
  "@typescript-eslint/no-redundant-type-constituents": 0,
@@ -81,6 +81,7 @@ service
81
81
  "@typescript-eslint/no-unsafe-argument": 0,
82
82
  "@typescript-eslint/no-unsafe-assignment": 0,
83
83
  "@typescript-eslint/no-unsafe-call": 0,
84
+ "@typescript-eslint/no-unsafe-function-type": 0,
84
85
  "@typescript-eslint/no-unsafe-member-access": 0,
85
86
  "@typescript-eslint/no-unsafe-return": 0,
86
87
  "@typescript-eslint/no-unused-expressions": 0,
@@ -1,2 +1,3 @@
1
- import type { Config } from "prettier";
1
+ import type { Config, Options } from "prettier";
2
2
  export declare const defineConfig: () => Config;
3
+ export declare const pretty: (content: string, parser: Options["parser"]) => Promise<string>;
package/dist/prettier.js CHANGED
@@ -1,6 +1,7 @@
1
- import * as svelte from "prettier-plugin-svelte";
1
+ import { format } from "prettier";
2
2
  import * as css from "prettier-plugin-css-order";
3
3
  import * as arrays from "prettier-plugin-multiline-arrays";
4
+ import * as svelte from "prettier-plugin-svelte";
4
5
  import * as tailwind from "prettier-plugin-tailwindcss";
5
6
  export const defineConfig = () => ({
6
7
  tabWidth: 2,
@@ -24,3 +25,6 @@ export const defineConfig = () => ({
24
25
  },
25
26
  ],
26
27
  });
28
+ //...
29
+ const prettier = defineConfig();
30
+ export const pretty = (content, parser) => format(content, { ...prettier, parser });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemigo/configs",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Vlad Logvin",