@agilebot/eslint-config 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.4.3
2
+ * @license @agilebot/eslint-config v0.4.4
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -75,7 +75,8 @@ function cli() {
75
75
  config: false,
76
76
  strict: false,
77
77
  checkIntl: false,
78
- progress: false
78
+ progress: false,
79
+ showWarningsInCI: false
79
80
  };
80
81
  const pkg = require.resolve("eslint/package.json");
81
82
  const bin = import_node_path.default.join(pkg, "..", "bin", "eslint.js");
@@ -86,6 +87,7 @@ function cli() {
86
87
  has.strict = has.strict || arg === "--strict";
87
88
  has.checkIntl = has.checkIntl || arg === "--check-intl";
88
89
  has.progress = has.progress || arg === "--progress";
90
+ has.showWarningsInCI = has.showWarningsInCI || arg === "--show-warnings-in-ci";
89
91
  });
90
92
  if (!has.fix) {
91
93
  process.argv.splice(2, 0, "--fix");
@@ -103,6 +105,12 @@ function cli() {
103
105
  "file-progress/activate: 1"
104
106
  );
105
107
  }
108
+ if (!has.showWarningsInCI && (0, import_eslint_utils.isCI)()) {
109
+ console.warn(
110
+ "Warning: eslint-agilebot will report errors only in CI environment"
111
+ );
112
+ process.argv.splice(2, 0, "--quiet");
113
+ }
106
114
  if (has.checkIntl) {
107
115
  process.argv.splice(process.argv.indexOf("--check-intl"), 1);
108
116
  process.argv.splice(2, 0, "--rule", "@agilebot/intl-id-unused: 1");
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.4.3
2
+ * @license @agilebot/eslint-config v0.4.4
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilebot/eslint-config",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Agilebot's ESLint config",
5
5
  "bin": {
6
6
  "eslint-agilebot": "bin/eslint-agilebot"
@@ -43,14 +43,14 @@
43
43
  "eslint-plugin-vue": "^9.27.0",
44
44
  "eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
45
45
  "vue-eslint-parser": "^9.4.3",
46
- "@agilebot/eslint-utils": "0.4.3"
46
+ "@agilebot/eslint-utils": "0.4.4"
47
47
  },
48
48
  "devDependencies": {
49
49
  "eslint-config-love": "^63.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0",
53
- "@agilebot/eslint-plugin": "0.4.3"
53
+ "@agilebot/eslint-plugin": "0.4.4"
54
54
  },
55
55
  "files": [
56
56
  "bin",