eslint-plugin-th-rules 1.5.2 → 1.5.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/.yarnrc.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  nodeLinker: node-modules
2
2
 
3
- yarnPath: .yarn/releases/yarn-4.1.0.cjs
3
+ yarnPath: .yarn/releases/yarn-4.3.0.cjs
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [1.5.4](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.5.3...v1.5.4) (2024-06-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed unused configs ([cbac1d8](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/cbac1d8bb207c612d93f9cd895829fe12368a77d))
7
+ * Update eslint and related dependencies to latest versions ([a39e785](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/a39e78548b32ee6edd344166cc406e2139a6dcfd))
8
+ * Update eslint and related dependencies, disable specific rules, and fix linting issues ([69d2814](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/69d281416b8366c670ef9cd9051e39edf49f0731))
9
+
10
+ ## [1.5.3](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.5.2...v1.5.3) (2024-02-26)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Update devDependencies and peerDependencies in package.json ([5fd3210](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/5fd3210ea359915312fced3f65b57ae3f2a8d2c8))
16
+
1
17
  ## [1.5.2](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.5.1...v1.5.2) (2024-02-26)
2
18
 
3
19
 
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.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "A List of custom ESLint rules created by Tomer Horowitz",
5
5
  "keywords": [
6
6
  "eslint",
@@ -19,40 +19,38 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "eslint-config-jsdoc": "^15.4.0",
22
- "eslint-config-xo": "^0.44.0",
22
+ "eslint-config-xo": "^0.45.0",
23
23
  "eslint-config-xo-react": "^0.27.0",
24
- "eslint-plugin-jsdoc": "^48.2.0",
25
- "eslint-plugin-react": "^7.33.2",
26
- "eslint-plugin-react-hooks": "^4.6.0",
24
+ "eslint-plugin-jsdoc": "^48.2.12",
25
+ "eslint-plugin-react": "^7.34.2",
26
+ "eslint-plugin-react-hooks": "^4.6.2",
27
27
  "eslint-plugin-react-native": "^4.1.0",
28
28
  "requireindex": "^1.2.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@codedependant/semantic-release-docker": "^4.4.0",
31
+ "@codedependant/semantic-release-docker": "^5.0.3",
32
32
  "@semantic-release/changelog": "^6.0.3",
33
- "@semantic-release/commit-analyzer": "^11.0.0",
33
+ "@semantic-release/commit-analyzer": "^13.0.0",
34
34
  "@semantic-release/git": "^10.0.1",
35
- "@semantic-release/github": "^9.2.1",
36
- "@semantic-release/npm": "^11.0.0",
37
- "@semantic-release/release-notes-generator": "^12.0.0",
38
- "@types/xo": "^0",
35
+ "@semantic-release/github": "^10.0.6",
36
+ "@semantic-release/npm": "^12.0.1",
37
+ "@semantic-release/release-notes-generator": "^14.0.0",
38
+ "@types/requireindex": "^1.2.4",
39
+ "@types/xo": "^0.39.8",
39
40
  "bun-types": "latest",
40
- "eslint": "^8.19.0",
41
- "eslint-doc-generator": "^1.0.0",
42
- "eslint-plugin-eslint-plugin": "^5.0.0",
41
+ "eslint": "^9.5.0",
42
+ "eslint-doc-generator": "^1.7.1",
43
+ "eslint-plugin-eslint-plugin": "^6.1.0",
43
44
  "eslint-plugin-node": "^11.1.0",
44
- "eslint-plugin-unicorn": "^51.0.1",
45
- "mocha": "^10.0.0",
45
+ "eslint-plugin-unicorn": "^54.0.0",
46
+ "mocha": "^10.4.0",
46
47
  "npm-run-all": "^4.1.5",
47
- "xo": "^0.57.0"
48
- },
49
- "engines": {
50
- "node": ">= 20.11.0"
48
+ "xo": "^0.58.0"
51
49
  },
52
50
  "peerDependencies": {
53
- "eslint": ">=7",
54
- "typescript": "^5.0.0"
51
+ "eslint": ">=9.5.0",
52
+ "typescript": "^5.4.5"
55
53
  },
56
54
  "license": "ISC",
57
- "packageManager": "yarn@4.1.0"
55
+ "packageManager": "yarn@4.3.0"
58
56
  }
package/src/configs.js ADDED
File without changes
package/src/index.js CHANGED
@@ -1,94 +1,37 @@
1
1
  /* eslint-disable n/no-path-concat */
2
2
  /* eslint-disable unicorn/prefer-module */
3
3
 
4
- /**
5
- * @fileoverview A List of custom ESLint rules created by Tomer Horowitz
6
- * @author Tomer Horowitz
7
- */
8
4
  'use strict';
9
5
  const requireIndex = require('requireindex');
10
6
 
11
- /**
12
- * Represents a basic configuration object.
13
- *
14
- * @type {Object}
15
- * @property {string[]} plugins - The list of plugins.
16
- * @property {string[]} extends - The list of extended configurations.
17
- * @property {Object} rules - The rules configuration.
18
- * @property {Object} env - The environment configuration.
19
- */
20
- const basic = {
7
+ const base = {
21
8
  plugins: ['th-rules'],
22
- extends: [],
23
9
  rules: {
24
10
  'th-rules/no-destructuring': 'error',
25
11
  'th-rules/no-default-export': 'error',
12
+ 'unicorn/prefer-module': 'warn',
13
+ '@typescript-eslint/naming-convention': 'warn',
14
+ 'unicorn/filename-case': 'off',
15
+ 'unicorn/no-array-callback-reference': 'off',
16
+ 'import/extensions': 'off',
17
+ '@typescript-eslint/consistent-type-definitions': 'off',
18
+ 'unicorn/no-static-only-class': 'off',
19
+ '@typescript-eslint/no-extraneous-class': 'off',
20
+ 'unicorn/no-await-expression-member': 'off',
21
+ '@typescript-eslint/no-duplicate-type-constituents': 'off',
22
+ 'new-cap': 'off',
23
+ camelcase: 'warn',
26
24
  },
27
- env: {},
28
- };
29
-
30
- /**
31
- * Represents the recommended ESLint configuration.
32
- * @type {Object}
33
- */
34
- const recommended = {
35
- ...basic,
36
25
  env: {
37
26
  node: true,
38
- ES2024: true,
27
+ es2024: true,
39
28
  jest: true,
40
29
  },
41
- rules: {
42
- ...basic.rules,
43
- 'unicorn/filename-case': 'off',
44
- 'unicorn/prefer-module': 'warn',
45
- 'import/extensions': 'off',
46
- camelcase: 'warn',
47
- },
48
- };
49
-
50
- /**
51
- * Represents an object containing all the configurations.
52
- * @type {Object}
53
- */
54
- const all = {
55
- ...recommended,
56
- plugins: [...recommended.plugins, 'jsdoc'],
57
- extends: [...recommended.extends, 'plugin:jsdoc/recommended-error'],
58
- };
59
-
60
- /**
61
- * Represents an object containing all React-related configurations.
62
- * @typedef {Object} allReact
63
- * @property {Object} env - The environment configurations.
64
- * @property {boolean} env.browser - Indicates if the browser environment is enabled.
65
- * @property {Object} rules - The rule configurations.
66
- * @property {string} rules['react/no-array-index-key'] - The configuration for the 'react/no-array-index-key' rule.
67
- * @property {string[]} extends - The list of extended configurations.
68
- */
69
- const allReact = {
70
- ...all,
71
- env: {...all.env, node: false, browser: true},
72
- rules: {...all.rules, 'react/no-array-index-key': 'off'},
73
- extends: [...all.extends, 'xo-react'],
74
- };
75
-
76
- /**
77
- * Object representing all React Native configurations.
78
- * @type {Object}
79
- */
80
- const allReactNative = {
81
- ...allReact,
82
- extends: [...allReact.extends, 'plugin:react-native/all'],
83
30
  };
84
31
 
85
32
  module.exports = {
86
33
  rules: requireIndex(`${__dirname}/rules`),
87
34
  configs: {
88
- basic,
89
- recommended,
90
- all,
91
- 'all-react': allReact,
92
- 'all-react-native': allReactNative,
35
+ base,
93
36
  },
94
37
  };