@becklyn/prettier 2.1.0 → 2.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/README.md CHANGED
@@ -8,7 +8,7 @@ Installation
8
8
  ------------
9
9
 
10
10
  ```
11
- npm install --save-dev prettier @becklyn/prettier @trivago/prettier-plugin-sort-imports
11
+ npm install --save-dev @becklyn/prettier
12
12
  ```
13
13
 
14
14
  In your `package.json` add the following line:
package/index.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json.schemastore.org/prettierrc",
3
+ "trailingComma": "es5",
4
+ "tabWidth": 4,
5
+ "semi": true,
6
+ "printWidth": 100,
7
+ "singleQuote": false,
8
+ "bracketSameLine": true,
9
+ "arrowParens": "avoid",
10
+ "importOrder": [
11
+ "^react$",
12
+ "^next(.*)$",
13
+ "^styled-components",
14
+ "^@fr(e|a)ym/(.*)$",
15
+ "^@mayd/(.*)$",
16
+ "^[^.@].*",
17
+ "^@(.*)$",
18
+ "^[./]"
19
+ ],
20
+ "importOrderSeparation": false,
21
+ "importOrderSortSpecifiers": true,
22
+ "plugins": [
23
+ "@trivago/prettier-plugin-sort-imports",
24
+ "prettier-plugin-css-order"
25
+ ]
26
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@becklyn/prettier",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-0",
4
4
  "description": "The commonly used prettier configuration for projects at Becklyn",
5
5
  "license": "BSD-3-Clause",
6
6
  "homepage": "https://github.com/Becklyn/prettier",
@@ -10,9 +10,9 @@
10
10
  },
11
11
  "scripts": {
12
12
  "test": "echo 'no tests defined' && exit 0",
13
- "format": "prettier --write \"**/*.{ts,tsx,js,mjs,json}\""
13
+ "format": "prettier --write \"**/*.{ts,tsx,js,mjs,json,scss,css}\""
14
14
  },
15
- "main": ".prettierrc.mjs",
15
+ "main": "index.json",
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
package/.prettierrc.mjs DELETED
@@ -1,27 +0,0 @@
1
- import CssOrderConfig from "prettier-plugin-css-order";
2
- import SortImportConfig from "@trivago/prettier-plugin-sort-imports";
3
-
4
- const config = {
5
- trailingComma: "es5",
6
- tabWidth: 4,
7
- semi: true,
8
- printWidth: 100,
9
- singleQuote: false,
10
- bracketSameLine: true,
11
- arrowParens: "avoid",
12
- importOrder: [
13
- "^react$",
14
- "^next(.*)$",
15
- "^styled-components",
16
- "^@fr(e|a)ym/(.*)$",
17
- "^@mayd/(.*)$",
18
- "^[^.@].*",
19
- "^@(.*)$",
20
- "^[./]",
21
- ],
22
- importOrderSeparation: false,
23
- importOrderSortSpecifiers: true,
24
- plugins: [SortImportConfig, CssOrderConfig],
25
- };
26
-
27
- export default config;