@keeex/eslint-config 1.12.1 → 1.12.4
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/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.
|
|
4
|
+
"version": "1.12.4",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"src/**/*.js"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"eslint": "^8.
|
|
30
|
+
"eslint": "^8.57.0",
|
|
31
31
|
"eslint-plugin-i": "^2.29.1",
|
|
32
32
|
"eslint-plugin-promise": "^6.1.1"
|
|
33
33
|
},
|
|
@@ -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/jsx.js
CHANGED
|
@@ -61,7 +61,7 @@ module.exports = {
|
|
|
61
61
|
"react/no-unused-state": ["warn"],
|
|
62
62
|
"react/no-will-update-set-state": ["error"],
|
|
63
63
|
"react/prefer-es6-class": ["warn"],
|
|
64
|
-
"react/require-default-props": ["
|
|
64
|
+
"react/require-default-props": ["off"],
|
|
65
65
|
"react/self-closing-comp": ["warn"],
|
|
66
66
|
"react/sort-comp": [
|
|
67
67
|
"warn",
|
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"],
|