@becklyn/prettier 1.0.2 → 2.0.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.
@@ -0,0 +1,24 @@
1
+ const config = {
2
+ "trailingComma": "es5",
3
+ "tabWidth": 4,
4
+ "semi": true,
5
+ "printWidth": 100,
6
+ "singleQuote": false,
7
+ "bracketSameLine": true,
8
+ "arrowParens": "avoid",
9
+ "importOrder": [
10
+ "^react$",
11
+ "^next(.*)$",
12
+ "^styled-components",
13
+ "^@fr(e|a)ym/(.*)$",
14
+ "^@mayd/(.*)$",
15
+ "^[^.@].*",
16
+ "^@(.*)$",
17
+ "^[./]"
18
+ ],
19
+ "importOrderSeparation": false,
20
+ "importOrderSortSpecifiers": true,
21
+ "plugins": [require.resolve("@trivago/prettier-plugin-sort-imports")]
22
+ }
23
+
24
+ export default config;
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ 2.0.1
2
+ =====
3
+
4
+ * (bc) Add sort imports via this project.
5
+
6
+ 2.0.0
7
+ =====
8
+
9
+ * (bc) Add sort imports.
10
+
11
+
1
12
  1.0.2
2
13
  =====
3
14
 
package/README.md CHANGED
@@ -8,7 +8,7 @@ Installation
8
8
  ------------
9
9
 
10
10
  ```
11
- npm install --save-dev @becklyn/prettier
11
+ npm install --save-dev prettier @becklyn/prettier @trivago/prettier-plugin-sort-imports
12
12
  ```
13
13
 
14
14
  In your `package.json` add the following line:
@@ -18,9 +18,3 @@ In your `package.json` add the following line:
18
18
  "prettier": "@becklyn/prettier"
19
19
  }
20
20
  ```
21
-
22
- You will have to install prettier as a dev dependency, too
23
-
24
- ```
25
- npm install --save-dev prettier
26
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@becklyn/prettier",
3
- "version": "1.0.2",
3
+ "version": "2.0.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",
@@ -11,8 +11,11 @@
11
11
  "scripts": {
12
12
  "test": "echo 'no tests defined' && exit 0"
13
13
  },
14
- "main": ".prettierrc.json",
14
+ "main": ".prettierrc.mjs",
15
15
  "publishConfig": {
16
16
  "access": "public"
17
+ },
18
+ "dependencies": {
19
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0"
17
20
  }
18
21
  }
package/.prettierrc.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 4,
4
- "semi": true,
5
- "printWidth": 100,
6
- "singleQuote": false,
7
- "bracketSameLine": true,
8
- "arrowParens": "avoid"
9
- }