@azat-io/eslint-config 2.95.0 → 2.96.1
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/dist/core/index.js +14 -1
- package/package.json +13 -12
- package/readme.md +1 -0
package/dist/core/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import sonarjsPlugin from "eslint-plugin-sonarjs";
|
|
|
7
7
|
import unicornPlugin from "eslint-plugin-unicorn";
|
|
8
8
|
import regexpPlugin from "eslint-plugin-regexp";
|
|
9
9
|
import jsdocPlugin from "eslint-plugin-jsdoc";
|
|
10
|
+
import slopPlugin from "eslint-plugin-slop";
|
|
10
11
|
import globals from "globals";
|
|
11
12
|
function core(config) {
|
|
12
13
|
let files = [
|
|
@@ -44,6 +45,7 @@ function core(config) {
|
|
|
44
45
|
"prefer-let": preferLetPlugin,
|
|
45
46
|
promise: promisePlugin,
|
|
46
47
|
regexp: regexpPlugin,
|
|
48
|
+
slop: slopPlugin,
|
|
47
49
|
sonarjs: sonarjsPlugin,
|
|
48
50
|
unicorn: unicornPlugin
|
|
49
51
|
},
|
|
@@ -404,6 +406,14 @@ function core(config) {
|
|
|
404
406
|
"regexp/unicode-escape": "error",
|
|
405
407
|
"regexp/unicode-property": "error",
|
|
406
408
|
"regexp/use-ignore-case": "error",
|
|
409
|
+
"slop/max-comment-length": "error",
|
|
410
|
+
"slop/no-chained-type-assertions": "error",
|
|
411
|
+
"slop/no-em-dash": "error",
|
|
412
|
+
"slop/no-jargon": "error",
|
|
413
|
+
"slop/no-static-only-class": "error",
|
|
414
|
+
"slop/no-trivial-functions": "error",
|
|
415
|
+
"slop/no-trivial-type-aliases": "error",
|
|
416
|
+
"slop/prefer-jsdoc": "error",
|
|
407
417
|
"sonarjs/arguments-order": "error",
|
|
408
418
|
"sonarjs/array-callback-without-return": "error",
|
|
409
419
|
"sonarjs/for-in": "error",
|
|
@@ -492,7 +502,6 @@ function core(config) {
|
|
|
492
502
|
"unicorn/no-exports-in-scripts": "error",
|
|
493
503
|
"unicorn/no-for-each": "error",
|
|
494
504
|
"unicorn/no-for-loop": "error",
|
|
495
|
-
"unicorn/no-immediate-mutation": "error",
|
|
496
505
|
"unicorn/no-impossible-length-comparison": "error",
|
|
497
506
|
"unicorn/no-incorrect-query-selector": "error",
|
|
498
507
|
"unicorn/no-instanceof-builtins": "error",
|
|
@@ -542,6 +551,8 @@ function core(config) {
|
|
|
542
551
|
"unicorn/no-unsafe-dom-html": "error",
|
|
543
552
|
"unicorn/no-unsafe-promise-all-settled-values": "error",
|
|
544
553
|
"unicorn/no-unused-array-method-return": "error",
|
|
554
|
+
"unicorn/no-unused-builtin-method-return": "error",
|
|
555
|
+
"unicorn/no-unused-iterator-helper": "error",
|
|
545
556
|
"unicorn/no-unused-properties": "error",
|
|
546
557
|
"unicorn/no-useless-boolean-cast": "error",
|
|
547
558
|
"unicorn/no-useless-coercion": "error",
|
|
@@ -557,6 +568,7 @@ function core(config) {
|
|
|
557
568
|
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
558
569
|
"unicorn/no-useless-re-export": "error",
|
|
559
570
|
"unicorn/no-useless-recursion": "error",
|
|
571
|
+
"unicorn/no-useless-set-construction": "error",
|
|
560
572
|
"unicorn/no-useless-spread": "error",
|
|
561
573
|
"unicorn/no-useless-switch-case": "error",
|
|
562
574
|
"unicorn/no-useless-template-literals": "error",
|
|
@@ -608,6 +620,7 @@ function core(config) {
|
|
|
608
620
|
"unicorn/prefer-iterable-in-constructor": "error",
|
|
609
621
|
"unicorn/prefer-iterator-helpers": "error",
|
|
610
622
|
"unicorn/prefer-iterator-to-array": "error",
|
|
623
|
+
"unicorn/prefer-json-import": "error",
|
|
611
624
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
612
625
|
"unicorn/prefer-location-assign": "error",
|
|
613
626
|
"unicorn/prefer-logical-operator-over-ternary": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azat-io/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.96.1",
|
|
4
4
|
"description": "ESLint shareable config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"./dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.8.
|
|
30
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.8.1",
|
|
31
31
|
"@vitest/eslint-plugin": "1.6.27",
|
|
32
32
|
"astro-eslint-parser": "^3.1.0",
|
|
33
33
|
"eslint-config-flat-gitignore": "^2.4.0",
|
|
@@ -35,26 +35,27 @@
|
|
|
35
35
|
"eslint-plugin-de-morgan": "^2.1.3",
|
|
36
36
|
"eslint-plugin-depend": "^1.5.0",
|
|
37
37
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
38
|
-
"eslint-plugin-jsdoc": "^64.
|
|
38
|
+
"eslint-plugin-jsdoc": "^64.5.0",
|
|
39
39
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
40
40
|
"eslint-plugin-n": "^18.3.0",
|
|
41
|
-
"eslint-plugin-package-json": "^1.8.
|
|
42
|
-
"eslint-plugin-perfectionist": "^5.11.
|
|
41
|
+
"eslint-plugin-package-json": "^1.8.1",
|
|
42
|
+
"eslint-plugin-perfectionist": "^5.11.1",
|
|
43
43
|
"eslint-plugin-prefer-let": "^4.2.2",
|
|
44
44
|
"eslint-plugin-promise": "^7.3.0",
|
|
45
45
|
"eslint-plugin-qwik": "2.0.0-beta.21",
|
|
46
46
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
47
|
-
"eslint-plugin-react-dom": "^5.19.
|
|
47
|
+
"eslint-plugin-react-dom": "^5.19.1",
|
|
48
48
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
49
|
-
"eslint-plugin-react-jsx": "^5.19.
|
|
50
|
-
"eslint-plugin-react-naming-convention": "^5.19.
|
|
49
|
+
"eslint-plugin-react-jsx": "^5.19.1",
|
|
50
|
+
"eslint-plugin-react-naming-convention": "^5.19.1",
|
|
51
51
|
"eslint-plugin-react-perf": "^3.3.3",
|
|
52
|
-
"eslint-plugin-react-web-api": "^5.19.
|
|
53
|
-
"eslint-plugin-react-x": "^5.19.
|
|
52
|
+
"eslint-plugin-react-web-api": "^5.19.1",
|
|
53
|
+
"eslint-plugin-react-x": "^5.19.1",
|
|
54
54
|
"eslint-plugin-regexp": "^3.3.0",
|
|
55
|
-
"eslint-plugin-
|
|
55
|
+
"eslint-plugin-slop": "^0.1.3",
|
|
56
|
+
"eslint-plugin-sonarjs": "^4.2.1",
|
|
56
57
|
"eslint-plugin-svelte": "^3.23.0",
|
|
57
|
-
"eslint-plugin-unicorn": "^
|
|
58
|
+
"eslint-plugin-unicorn": "^75.0.0",
|
|
58
59
|
"eslint-plugin-vue": "^10.11.0",
|
|
59
60
|
"globals": "^17.12.0",
|
|
60
61
|
"jsonc-eslint-parser": "^3.3.0",
|
package/readme.md
CHANGED
|
@@ -158,6 +158,7 @@ This config uses the following plugins:
|
|
|
158
158
|
- [eslint-plugin-react-web-api](https://github.com/Rel1cx/eslint-react)
|
|
159
159
|
- [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react)
|
|
160
160
|
- [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp)
|
|
161
|
+
- [eslint-plugin-slop](https://github.com/antfu/eslint-plugin-slop)
|
|
161
162
|
- [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/tree/master/packages/jsts/src/rules)
|
|
162
163
|
- [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte)
|
|
163
164
|
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|