@ngneers/prettier-config 1.0.0 → 1.1.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/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import type { Config } from "prettier";
2
+
3
+ declare const config: Config;
4
+
5
+ export default config;
package/index.js ADDED
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @see https://prettier.io/docs/configuration
3
+ * @type {import("prettier").Config}
4
+ */
5
+ const config = {
6
+ trailingComma: 'es5',
7
+ tabWidth: 2,
8
+ semi: true,
9
+ singleQuote: true,
10
+ printWidth: 100,
11
+ useTabs: false,
12
+ arrowParens: 'avoid',
13
+ jsxBracketSameLine: true,
14
+ jsxSingleQuote: true,
15
+ htmlWhitespaceSensitivity: 'css',
16
+ endOfLine: 'auto',
17
+ bracketSpacing: true,
18
+ };
19
+
20
+ export default config;
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@ngneers/prettier-config",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "homepage": "https://https://github.com/NGneers/dev",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/NGneers/dev.git"
8
8
  },
9
9
  "description": "Prettier configuration for projects in the NGneers Github organization",
10
- "main": ".prettierrc.json",
10
+ "type": "module",
11
+ "exports": "./index.js",
11
12
  "author": "NGneers",
12
13
  "license": "MIT",
13
14
  "peerDependencies": {
package/.prettierrc.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 2,
4
- "semi": true,
5
- "singleQuote": true,
6
- "printWidth": 100,
7
- "useTabs": false,
8
- "arrowParens": "avoid",
9
- "jsxBracketSameLine": true,
10
- "jsxSingleQuote": true,
11
- "htmlWhitespaceSensitivity": "css",
12
- "endOfLine": "auto",
13
- "bracketSpacing": true
14
- }