arui-presets-lint 9.1.4 → 9.2.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.
@@ -1,4 +1,5 @@
1
1
  import { type Linter } from 'eslint';
2
+ import deMorgan from 'eslint-plugin-de-morgan';
2
3
  import unicornPlugin from 'eslint-plugin-unicorn';
3
4
 
4
5
  export const bestPracticesConfig: Linter.Config = {
@@ -6,6 +7,7 @@ export const bestPracticesConfig: Linter.Config = {
6
7
  name: 'arui-presets-lint/best-practices',
7
8
  plugins: {
8
9
  unicorn: unicornPlugin,
10
+ 'de-morgan': deMorgan,
9
11
  },
10
12
  rules: {
11
13
  // https://github.com/sindresorhus/eslint-plugin-unicorn/tree/main?tab=readme-ov-file#rules
@@ -619,5 +621,13 @@ export const bestPracticesConfig: Linter.Config = {
619
621
  // Предпочитать top-level await вместо верхнеуровневых промисов
620
622
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-top-level-await.md
621
623
  'unicorn/prefer-top-level-await': 'off',
624
+
625
+ // Улучшает логические выражения согласно первому закону де Моргана
626
+ // https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-conjunction.md
627
+ 'de-morgan/no-negated-conjunction': 'warn',
628
+
629
+ // Улучшает логические выражения согласно второму закону де Моргана
630
+ // https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-disjunction.md
631
+ 'de-morgan/no-negated-disjunction': 'warn',
622
632
  },
623
633
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-presets-lint",
3
- "version": "9.1.4",
3
+ "version": "9.2.0",
4
4
  "description": "Config files for arui-apps",
5
5
  "author": "core-ds contributors",
6
6
  "license": "MIT",
@@ -12,18 +12,19 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@alfalab/stylelint-core-vars": "2.0.0",
15
- "@commitlint/cli": "20.4.1",
16
- "@commitlint/config-conventional": "20.4.1",
17
- "@eslint/js": "9.39.2",
15
+ "@commitlint/cli": "20.4.3",
16
+ "@commitlint/config-conventional": "20.4.3",
17
+ "@eslint/js": "9.39.4",
18
18
  "@types/eslint-plugin-jsx-a11y": "6.10.1",
19
- "@typescript-eslint/utils": "8.55.0",
20
- "eslint": "9.39.2",
21
- "eslint-config-flat-gitignore": "2.1.0",
19
+ "@typescript-eslint/utils": "8.57.0",
20
+ "eslint": "9.39.4",
21
+ "eslint-config-flat-gitignore": "2.2.1",
22
22
  "eslint-import-resolver-typescript": "4.4.4",
23
23
  "eslint-plugin-check-file": "3.3.1",
24
+ "eslint-plugin-de-morgan": "1.3.1",
24
25
  "eslint-plugin-import-x": "4.16.1",
25
26
  "eslint-plugin-jsx-a11y": "6.10.2",
26
- "eslint-plugin-n": "17.23.2",
27
+ "eslint-plugin-n": "17.24.0",
27
28
  "eslint-plugin-react": "7.37.5",
28
29
  "eslint-plugin-react-hooks": "7.0.1",
29
30
  "eslint-plugin-simple-import-sort": "12.1.1",
@@ -31,18 +32,18 @@
31
32
  "execa": "^9.6.1",
32
33
  "globals": "^17.0.0",
33
34
  "jiti": "^2.6.1",
34
- "lefthook": "2.1.1",
35
+ "lefthook": "2.1.3",
35
36
  "prettier": "3.8.1",
36
37
  "stylelint": "16.26.1",
37
- "typescript-eslint": "8.55.0"
38
+ "typescript-eslint": "8.57.0"
38
39
  },
39
40
  "engines": {
40
41
  "node": ">=18.18.0"
41
42
  },
42
43
  "devDependencies": {
43
- "@alfalab/core-components": "49.14.0",
44
- "@changesets/changelog-github": "0.5.2",
45
- "@changesets/cli": "2.29.8",
44
+ "@alfalab/core-components": "50.4.0",
45
+ "@changesets/changelog-github": "0.6.0",
46
+ "@changesets/cli": "2.30.0",
46
47
  "@types/node": "24.6.2",
47
48
  "@types/react": "18.3.27",
48
49
  "es-toolkit": "1.44.0",