@absc_company/prettier 1.0.0

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/.prettierrc.js ADDED
@@ -0,0 +1,3 @@
1
+ import { prettier } from './index.js';
2
+
3
+ export default prettier();
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # :milky_way: ABSC-company prettier-config
2
+
3
+ ## Установить конфиг
4
+ ```sh
5
+ pnpm add -D @absc_company/prettier
6
+ ```
7
+
8
+ ## Как использовать
9
+ Создать файл `.prettierrc.js` и добавить в него содержимое:
10
+
11
+ ```js
12
+ import { prettier } from '@absc_company/prettier';
13
+
14
+ export default prettier();
15
+ ```
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @type {(params?: import("prettier").Config) => import("prettier").Config}
3
+ */
4
+ export const prettier = (params = {}) => ({
5
+ printWidth: 100,
6
+ tabWidth: 2,
7
+ singleQuote: true,
8
+ trailingComma: 'none',
9
+ arrowParens: 'always',
10
+ semi: true,
11
+ jsxSingleQuote: true,
12
+ useTabs: false,
13
+ ...params
14
+ });
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@absc_company/prettier",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "license": "MIT",
6
+ "description": "@absc_company/prettier",
7
+ "main": "index.js",
8
+ "scripts": {
9
+ "format": "prettier --write \"../../**/*.{js,ts,tsx,json,md}\""
10
+ },
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "repository": {
15
+ "url": "https://github.com/ABSC-company/synapse-config-package"
16
+ },
17
+ "dependencies": {
18
+ "prettier": "^3.8.1"
19
+ },
20
+ "peerDependencies": {
21
+ "prettier": "^3.8.1"
22
+ }
23
+ }