@voiceflow/prettier-config 1.0.5 → 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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +27 -16
package/index.js CHANGED
@@ -1,10 +1,12 @@
1
+ 'use strict';
2
+
1
3
  module.exports = {
2
4
  printWidth: 150,
3
5
  tabWidth: 2,
4
6
  semi: true,
5
7
  singleQuote: true,
6
8
  quoteProps: 'as-needed',
7
- trailingComma: "es5",
9
+ trailingComma: 'es5',
8
10
  bracketSpacing: true,
9
11
  arrowParens: 'always',
10
12
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voiceflow/prettier-config",
3
3
  "description": "Prettier config",
4
- "version": "1.0.5",
4
+ "version": "1.1.0",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/storyflow/prettier-config/issues"
@@ -12,37 +12,48 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@commitlint/config-conventional": "^7.5.0",
16
- "commitizen": "^3.1.1",
17
- "commitlint": "^7.5.2",
18
- "cz-conventional-changelog": "^2.1.0",
19
- "fixpack": "^2.3.1",
20
- "husky": "^2.2.0"
15
+ "@commitlint/cli": "^11.0.0",
16
+ "@commitlint/config-conventional": "^11.0.0",
17
+ "@voiceflow/commitlint-config": "2.0.0",
18
+ "@voiceflow/eslint-config": "6.0.1",
19
+ "@voiceflow/git-branch-check": "1.2.3",
20
+ "@voiceflow/prettier-config": "1.0.6",
21
+ "commitizen": "^4.2.3",
22
+ "cz-conventional-changelog": "^3.3.0",
23
+ "depcheck": "^1.3.1",
24
+ "eslint": "^7.28.0",
25
+ "fixpack": "^4.0.0",
26
+ "husky": "^4.3.8",
27
+ "lint-staged": "^10.5.3",
28
+ "prettier": "^2.0.0",
29
+ "prettier-eslint-cli": "^5.0.0"
21
30
  },
22
31
  "files": [
23
32
  "index.js"
24
33
  ],
25
34
  "homepage": "https://github.com/storyflow/prettier-config#readme",
26
- "husky": {
27
- "hooks": {
28
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
29
- }
30
- },
31
35
  "keywords": [
32
36
  "prettier"
33
37
  ],
34
38
  "license": "MIT",
35
39
  "main": "index.js",
36
40
  "peerDependencies": {
37
- "prettier": "^1.19.1"
41
+ "prettier": "^1.19.1 || ^2.0.0"
38
42
  },
43
+ "prettier": "@voiceflow/prettier-config",
39
44
  "repository": {
40
45
  "type": "git",
41
- "url": "git+https://github.com/storyflow/prettier-config.git"
46
+ "url": "git+https://github.com/voiceflow/prettier-config.git"
42
47
  },
43
48
  "scripts": {
44
- "commit": "git-cz",
49
+ "commit": "cz",
50
+ "lint": "eslint \"./**/*.{js,ts}\"",
51
+ "lint:fix": "yarn lint --fix",
52
+ "lint:quiet": "yarn lint --quiet",
53
+ "lint:report": "yarn lint --format json -o sonar/report.json",
45
54
  "prepare": "fixpack",
46
- "test": "echo \"Error: no test specified\" && exit 1"
55
+ "test": "yarn test:run",
56
+ "test:dependencies": "depcheck",
57
+ "test:run": "echo \"Error: no test specified\" && exit 1"
47
58
  }
48
59
  }