@keeex/eslint-config 1.12.0 → 1.12.2

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.
package/README.md CHANGED
@@ -169,3 +169,8 @@ If React Native is enabled, `eslint-plugin-react-native` must be installed.
169
169
  Promise support requires `eslint-plugin-promise`.
170
170
  If mocha is used as the testsuite, `eslint-plugin-mocha` must be installed.
171
171
  Import support requires `eslint-plugin-i`.
172
+
173
+ ### Automatic dependency check
174
+ You can run the binary `npx eslint-depcheck` to check if all the currently required dependencies are
175
+ installed.
176
+ Add the flag `auto` to automatically install missing one/remove old ones.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@keeex/eslint-config",
3
3
  "description": "Common eslint configuration",
4
- "version": "1.12.0",
4
+ "version": "1.12.2",
5
5
  "main": "src/index.js",
6
6
  "files": [
7
7
  "src/**/*.js"
@@ -7,7 +7,7 @@ const {dependencyReportKey} = require("../consts.js");
7
7
 
8
8
  /** List of previously used dependencies that could be removed */
9
9
  const removedDependencies = [
10
- "eslint-plugin-imports",
10
+ "eslint-plugin-import",
11
11
  "eslint-import-resolver-typescript",
12
12
  "eslint-plugin-chai-friendly",
13
13
  ];
@@ -42,6 +42,7 @@ const runOn = (pkgJson, eslintConfigPath) => {
42
42
  process.env[dependencyReportKey] = "1";
43
43
  // eslint-disable-next-line global-require, i/no-dynamic-require
44
44
  const requiredDependencies = require(eslintConfigPath);
45
+ requiredDependencies.add("@keeex/eslint-config");
45
46
  const report = {};
46
47
  console.log("Checking dependencies status");
47
48
  for (const dep of requiredDependencies) {
@@ -34,6 +34,7 @@ module.exports = {
34
34
  "prefer-arrow-callback": "off",
35
35
  "mocha/prefer-arrow-callback": ["warn", {"allowUnboundThis": false}],
36
36
  "func-names": "off",
37
+ "no-invalid-this": "off",
37
38
  },
38
39
  };
39
40
  if (config.expectHelper) {
@@ -218,6 +218,7 @@ const rulesBase = {
218
218
  },
219
219
  ],
220
220
  "no-shadow": "off",
221
+ "no-invalid-this": "off",
221
222
  "@typescript-eslint/no-shadow": ["warn"],
222
223
  "@typescript-eslint/no-non-null-asserted-optional-chain": ["error"],
223
224
  "@typescript-eslint/parameter-properties": ["error"],