eslint-plugin-th-rules 1.9.0 → 1.11.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.
- package/.yarn/releases/yarn-4.4.0.cjs +925 -0
- package/.yarnrc.yml +1 -1
- package/CHANGELOG.md +14 -0
- package/bun.lockb +0 -0
- package/package.json +23 -20
- package/src/index.js +13 -1
- package/.yarn/releases/yarn-4.3.0.cjs +0 -894
package/.yarnrc.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [1.11.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.10.0...v1.11.0) (2024-08-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* added no comments ([8fcc0b7](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/8fcc0b7f7d0e0866584d478093aa835cf55acef1))
|
|
7
|
+
|
|
8
|
+
# [1.10.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.9.0...v1.10.0) (2024-08-02)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Added eslint-plugin-security ([37ec7d1](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/37ec7d1267c18452199fa9a4c5810f1eb1246201))
|
|
14
|
+
|
|
1
15
|
# [1.9.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.8.1...v1.9.0) (2024-06-15)
|
|
2
16
|
|
|
3
17
|
|
package/bun.lockb
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-th-rules",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "A List of custom ESLint rules created by Tomer Horowitz",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -19,44 +19,47 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"eslint-config-jsdoc": "^15.4.0",
|
|
22
|
-
"eslint-config-xo": "^0.
|
|
22
|
+
"eslint-config-xo": "^0.46.0",
|
|
23
23
|
"eslint-config-xo-react": "^0.27.0",
|
|
24
|
-
"eslint-plugin-jsdoc": "^
|
|
25
|
-
"eslint-plugin-
|
|
24
|
+
"eslint-plugin-jsdoc": "^50.2.2",
|
|
25
|
+
"eslint-plugin-no-comments": "^1.1.10",
|
|
26
|
+
"eslint-plugin-react": "^7.35.0",
|
|
26
27
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
27
28
|
"eslint-plugin-react-native": "^4.1.0",
|
|
28
|
-
"eslint-plugin-
|
|
29
|
+
"eslint-plugin-security": "^3.0.1",
|
|
30
|
+
"eslint-plugin-sonarjs": "^1.0.4",
|
|
29
31
|
"requireindex": "^1.2.0"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
34
|
"@codedependant/semantic-release-docker": "^5.0.3",
|
|
33
|
-
"@eslint/js": "^9.
|
|
35
|
+
"@eslint/js": "^9.9.0",
|
|
34
36
|
"@semantic-release/changelog": "^6.0.3",
|
|
35
37
|
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
36
38
|
"@semantic-release/git": "^10.0.1",
|
|
37
|
-
"@semantic-release/github": "^10.
|
|
39
|
+
"@semantic-release/github": "^10.1.6",
|
|
38
40
|
"@semantic-release/npm": "^12.0.1",
|
|
39
|
-
"@semantic-release/release-notes-generator": "^14.0.
|
|
41
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
42
|
+
"@types/eslint-plugin-security": "^3.0.0",
|
|
40
43
|
"@types/eslint__js": "^8.42.3",
|
|
41
44
|
"@types/requireindex": "^1.2.4",
|
|
42
|
-
"@types/xo": "^0.39.
|
|
45
|
+
"@types/xo": "^0.39.9",
|
|
43
46
|
"bun-types": "latest",
|
|
44
|
-
"eslint": "^9.
|
|
47
|
+
"eslint": "^9.9.0",
|
|
45
48
|
"eslint-doc-generator": "^1.7.1",
|
|
46
|
-
"eslint-plugin-eslint-plugin": "^6.
|
|
49
|
+
"eslint-plugin-eslint-plugin": "^6.2.0",
|
|
47
50
|
"eslint-plugin-node": "^11.1.0",
|
|
48
|
-
"eslint-plugin-sonarjs": "^1.0.
|
|
49
|
-
"eslint-plugin-unicorn": "^
|
|
50
|
-
"mocha": "^10.
|
|
51
|
+
"eslint-plugin-sonarjs": "^1.0.4",
|
|
52
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
53
|
+
"mocha": "^10.7.3",
|
|
51
54
|
"npm-run-all": "^4.1.5",
|
|
52
|
-
"typescript": "^5.4
|
|
53
|
-
"typescript-eslint": "^
|
|
54
|
-
"xo": "^0.
|
|
55
|
+
"typescript": "^5.5.4",
|
|
56
|
+
"typescript-eslint": "^8.1.0",
|
|
57
|
+
"xo": "^0.59.3"
|
|
55
58
|
},
|
|
56
59
|
"peerDependencies": {
|
|
57
|
-
"eslint": ">=9.
|
|
58
|
-
"typescript": "^5.4
|
|
60
|
+
"eslint": ">=9.9.0",
|
|
61
|
+
"typescript": "^5.5.4"
|
|
59
62
|
},
|
|
60
63
|
"license": "ISC",
|
|
61
|
-
"packageManager": "yarn@4.
|
|
64
|
+
"packageManager": "yarn@4.4.0"
|
|
62
65
|
}
|
package/src/index.js
CHANGED
|
@@ -6,9 +6,14 @@ const requireIndex = require('requireindex');
|
|
|
6
6
|
|
|
7
7
|
const configs = {};
|
|
8
8
|
configs.recommended = {
|
|
9
|
-
plugins: [
|
|
9
|
+
plugins: [
|
|
10
|
+
'th-rules',
|
|
11
|
+
'sonarjs',
|
|
12
|
+
'no-comments',
|
|
13
|
+
],
|
|
10
14
|
extends: [
|
|
11
15
|
'plugin:sonarjs/recommended-legacy',
|
|
16
|
+
'plugin:security/recommended-legacy',
|
|
12
17
|
],
|
|
13
18
|
rules: {
|
|
14
19
|
'th-rules/no-destructuring': 'error',
|
|
@@ -22,6 +27,13 @@ configs.recommended = {
|
|
|
22
27
|
'new-cap': 'off',
|
|
23
28
|
'no-await-in-loop': 'off',
|
|
24
29
|
camelcase: 'warn',
|
|
30
|
+
'no-comments/disallowComments': [
|
|
31
|
+
'error',
|
|
32
|
+
{
|
|
33
|
+
allow: ['TODO', 'FIXME', 'NOTE', 'DEBUG'],
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
|
|
25
37
|
},
|
|
26
38
|
env: {
|
|
27
39
|
node: true,
|