@voiceflow/eslint-config 7.3.3 → 7.4.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/package.json +10 -3
  2. package/src/formatter.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@voiceflow/eslint-config",
3
- "version": "7.3.3",
3
+ "version": "7.4.0",
4
+ "exports": {
5
+ ".": "./src/index.js",
6
+ "./formatter": "./src/formatter.js"
7
+ },
4
8
  "main": "src/index.js",
5
9
  "files": [
6
10
  "src"
@@ -10,13 +14,16 @@
10
14
  "lint:eslint": "yarn g:eslint",
11
15
  "lint:fix": "yarn g:run-p -c \"lint:eslint --fix\" \"lint:prettier --write\"",
12
16
  "lint:prettier": "yarn g:prettier --check",
13
- "test:dependencies": "yarn g:depcruise"
17
+ "test": "yarn test:dependencies",
18
+ "test:dependencies": "yarn g:depcruise --ignore-known"
14
19
  },
15
20
  "dependencies": {
16
21
  "@typescript-eslint/eslint-plugin": "7.6.0",
17
22
  "@typescript-eslint/parser": "7.6.0",
18
23
  "eslint-config-airbnb-base": "15.0.0",
19
24
  "eslint-config-prettier": "9.1.0",
25
+ "eslint-formatter-junit": "8.40.0",
26
+ "eslint-formatter-stylish": "8.40.0",
20
27
  "eslint-import-resolver-typescript": "3.6.1",
21
28
  "eslint-plugin-eslint-comments": "3.2.0",
22
29
  "eslint-plugin-import": "2.29.1",
@@ -36,5 +43,5 @@
36
43
  "volta": {
37
44
  "extends": "../../package.json"
38
45
  },
39
- "gitHead": "965cbd0a4ea31683240ac25b9bbb2ec707a8b674"
46
+ "gitHead": "38a22cf1ac1c819e7fd252b9883a2133c8929f11"
40
47
  }
@@ -0,0 +1,10 @@
1
+ const fs = require('fs/promises');
2
+ const junit = require('eslint-formatter-junit');
3
+ const stylish = require('eslint-formatter-stylish');
4
+
5
+ module.exports = async function (results, context) {
6
+ await fs.mkdir('reports', { recursive: true });
7
+ await fs.writeFile('reports/lint.report.xml', junit(results, context));
8
+
9
+ return stylish(results, context);
10
+ };