@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 +5 -0
- package/package.json +1 -1
- package/src/bin/eslint-depcheck.js +2 -1
- package/src/config/mocha.js +1 -0
- package/src/config/typescript.js +1 -0
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
|
@@ -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-
|
|
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) {
|
package/src/config/mocha.js
CHANGED
package/src/config/typescript.js
CHANGED
|
@@ -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"],
|