@sektek/prettier-config 1.1.3 → 2.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.
Files changed (3) hide show
  1. package/README.md +4 -2
  2. package/index.js +2 -2
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -10,8 +10,10 @@ npm install --save-dev prettier @sektek/prettier-config
10
10
 
11
11
  ## Setup
12
12
 
13
- Create a `.prettier.js` in the root of your project with the following:
13
+ Create a `.prettierrc.js` in the root of your project with the following:
14
14
 
15
15
  ```javascript
16
- module.exports = require('@sektek/prettier-config');
16
+ import prettierConfig from '@sektek/prettier-config';
17
+
18
+ export default prettierConfig;
17
19
  ```
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- module.exports = {
1
+ export default {
2
2
  printWidth: 80,
3
3
  tabWidth: 2,
4
4
  useTabs: false,
@@ -14,4 +14,4 @@ module.exports = {
14
14
  endOfLine: 'lf',
15
15
  embeddedLanguageFormatting: 'auto',
16
16
  arrowParens: 'avoid',
17
- }
17
+ };
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@sektek/prettier-config",
3
- "version": "1.1.3",
3
+ "version": "2.0.0",
4
4
  "description": "Prettier config used for @sektek projects",
5
5
  "author": "Edward Kelly <eddie@sektek.net>",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "scripts": {},
9
- "type": "commonjs",
9
+ "type": "module",
10
10
  "main": "index.js",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/sektek/prettier-config.git"
14
14
  },
15
15
  "peerDependencies": {
16
- "prettier": "^3.1.1"
16
+ "prettier": "^3"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@semantic-release/git": "^10.0.1",
20
- "semantic-release": "^23.0.8"
20
+ "semantic-release": "^25.0.2"
21
21
  }
22
22
  }