@azat-io/eslint-config 2.13.0 → 2.14.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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxA11y = require("eslint-plugin-jsx-a11y");
4
4
  let a11y = (config) => {
5
- if (!(config.react || config.qwik)) {
5
+ if (!config.react && !config.qwik) {
6
6
  return {};
7
7
  }
8
8
  let files = ["**/*.jsx"];
@@ -1,6 +1,6 @@
1
1
  import jsxA11y from "eslint-plugin-jsx-a11y";
2
2
  let a11y = (config) => {
3
- if (!(config.react || config.qwik)) {
3
+ if (!config.react && !config.qwik) {
4
4
  return {};
5
5
  }
6
6
  let files = ["**/*.jsx"];
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const eslintCommentsPlugin = require("@eslint-community/eslint-plugin-eslint-comments");
4
4
  const preferArrowPlugin = require("eslint-plugin-prefer-arrow");
5
5
  const preferLetPlugin = require("eslint-plugin-prefer-let");
6
+ const deMorganPlugin = require("eslint-plugin-de-morgan");
6
7
  const importXPlugin = require("eslint-plugin-import-x");
7
8
  const promisePlugin = require("eslint-plugin-promise");
8
9
  const sonarjsPlugin = require("eslint-plugin-sonarjs");
@@ -45,6 +46,7 @@ let core = (config) => {
45
46
  }
46
47
  },
47
48
  plugins: {
49
+ "de-morgan": deMorganPlugin,
48
50
  "eslint-comments": eslintCommentsPlugin,
49
51
  "import-x": importXPlugin,
50
52
  jsdoc: jsdocPlugin,
@@ -316,6 +318,8 @@ let core = (config) => {
316
318
  }
317
319
  ],
318
320
  yoda: ["error", "never"],
321
+ "de-morgan/no-negated-conjunction": "error",
322
+ "de-morgan/no-negated-disjunction": "error",
319
323
  "eslint-comments/disable-enable-pair": "error",
320
324
  "eslint-comments/no-aggregating-enable": "error",
321
325
  "eslint-comments/no-duplicate-disable": "error",
@@ -1,6 +1,7 @@
1
1
  import eslintCommentsPlugin from "@eslint-community/eslint-plugin-eslint-comments";
2
2
  import preferArrowPlugin from "eslint-plugin-prefer-arrow";
3
3
  import preferLetPlugin from "eslint-plugin-prefer-let";
4
+ import deMorganPlugin from "eslint-plugin-de-morgan";
4
5
  import importXPlugin from "eslint-plugin-import-x";
5
6
  import promisePlugin from "eslint-plugin-promise";
6
7
  import sonarjsPlugin from "eslint-plugin-sonarjs";
@@ -43,6 +44,7 @@ let core = (config) => {
43
44
  }
44
45
  },
45
46
  plugins: {
47
+ "de-morgan": deMorganPlugin,
46
48
  "eslint-comments": eslintCommentsPlugin,
47
49
  "import-x": importXPlugin,
48
50
  jsdoc: jsdocPlugin,
@@ -314,6 +316,8 @@ let core = (config) => {
314
316
  }
315
317
  ],
316
318
  yoda: ["error", "never"],
319
+ "de-morgan/no-negated-conjunction": "error",
320
+ "de-morgan/no-negated-disjunction": "error",
317
321
  "eslint-comments/disable-enable-pair": "error",
318
322
  "eslint-comments/no-aggregating-enable": "error",
319
323
  "eslint-comments/no-duplicate-disable": "error",
@@ -27,6 +27,9 @@ let packageJson = (_config) => ({
27
27
  }
28
28
  ],
29
29
  "package-json/require-author": "error",
30
+ "package-json/require-keywords": "error",
31
+ "package-json/require-name": "error",
32
+ "package-json/require-version": "error",
30
33
  "package-json/sort-collections": "error",
31
34
  "package-json/unique-dependencies": "error",
32
35
  "package-json/valid-local-dependency": "error",
@@ -25,6 +25,9 @@ let packageJson = (_config) => ({
25
25
  }
26
26
  ],
27
27
  "package-json/require-author": "error",
28
+ "package-json/require-keywords": "error",
29
+ "package-json/require-name": "error",
30
+ "package-json/require-version": "error",
28
31
  "package-json/sort-collections": "error",
29
32
  "package-json/unique-dependencies": "error",
30
33
  "package-json/valid-local-dependency": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azat-io/eslint-config",
3
- "version": "2.13.0",
3
+ "version": "2.14.0",
4
4
  "description": "ESLint shareable config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -28,16 +28,17 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
31
- "@vitest/eslint-plugin": "^1.1.25",
31
+ "@vitest/eslint-plugin": "^1.1.28",
32
32
  "astro-eslint-parser": "^1.2.1",
33
33
  "eslint-import-resolver-typescript": "^3.7.0",
34
34
  "eslint-plugin-astro": "^1.3.1",
35
+ "eslint-plugin-de-morgan": "^1.0.0",
35
36
  "eslint-plugin-import-x": "^4.6.1",
36
37
  "eslint-plugin-jsdoc": "^50.6.3",
37
38
  "eslint-plugin-jsx-a11y": "^6.10.2",
38
39
  "eslint-plugin-n": "^17.15.1",
39
- "eslint-plugin-package-json": "^0.22.0",
40
- "eslint-plugin-perfectionist": "^4.7.0",
40
+ "eslint-plugin-package-json": "^0.25.0",
41
+ "eslint-plugin-perfectionist": "^4.8.0",
41
42
  "eslint-plugin-prefer-arrow": "^1.2.3",
42
43
  "eslint-plugin-prefer-let": "^4.0.0",
43
44
  "eslint-plugin-promise": "^7.2.1",
@@ -54,7 +55,7 @@
54
55
  "globals": "^15.14.0",
55
56
  "jsonc-eslint-parser": "^2.4.0",
56
57
  "svelte-eslint-parser": "^0.43.0",
57
- "typescript-eslint": "^8.23.0",
58
+ "typescript-eslint": "^8.24.0",
58
59
  "vue-eslint-parser": "^9.4.3"
59
60
  },
60
61
  "peerDependencies": {