@iqrf/eslint-config 0.1.1 → 0.1.2

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/index.d.ts CHANGED
@@ -52,11 +52,11 @@ declare const cypress: Linter.FlatConfig[];
52
52
  * limitations under the License.
53
53
  */
54
54
 
55
- interface Options$2 {
55
+ interface Options$3 {
56
56
  typescript: boolean;
57
57
  vue: boolean;
58
58
  }
59
- declare const imports: (options: Options$2) => Linter.FlatConfig[];
59
+ declare const imports: (options: Options$3) => Linter.FlatConfig[];
60
60
 
61
61
  /**
62
62
  * Copyright 2024 MICRORISC s.r.o.
@@ -74,7 +74,13 @@ declare const imports: (options: Options$2) => Linter.FlatConfig[];
74
74
  * limitations under the License.
75
75
  */
76
76
 
77
- declare const javascript: Linter.FlatConfig[];
77
+ /**
78
+ * JavaScript config options
79
+ */
80
+ interface Options$2 {
81
+ typescript: boolean;
82
+ }
83
+ declare const javascript: (options: Options$2) => Linter.FlatConfig[];
78
84
 
79
85
  /**
80
86
  * Copyright 2024 MICRORISC s.r.o.
package/dist/index.js CHANGED
@@ -117,7 +117,7 @@ var imports = (options) => [
117
117
  // src/configs/javascript.ts
118
118
  import pluginEslint from "@eslint/js";
119
119
  import globals from "globals";
120
- var javascript = [
120
+ var javascript = (options) => [
121
121
  {
122
122
  languageOptions: {
123
123
  ecmaVersion: 2022,
@@ -152,7 +152,7 @@ var javascript = [
152
152
  "error",
153
153
  "unix"
154
154
  ],
155
- "no-unused-vars": "warn",
155
+ "no-unused-vars": options.typescript ? "off" : "warn",
156
156
  "prefer-const": "error",
157
157
  "quotes": [
158
158
  "error",
@@ -662,7 +662,9 @@ function iqrfEslint(options = {}, config = []) {
662
662
  if (ignoreFiles.length > 0) {
663
663
  configs3.push(configGitignore({ files: ignoreFiles }));
664
664
  }
665
- configs3.push(...javascript);
665
+ configs3.push(...javascript({
666
+ typescript: enableTypescript
667
+ }));
666
668
  configs3.push(...comments);
667
669
  if (enableTypescript) {
668
670
  configs3.push(...typescript);
package/package.json CHANGED
@@ -19,12 +19,13 @@
19
19
  "@eslint/js": "^9.7.0",
20
20
  "@intlify/eslint-plugin-vue-i18n": "^3.0.0",
21
21
  "@stylistic/eslint-plugin": "^2.3.0",
22
+ "@typescript-eslint/parser": "^7.17.0",
22
23
  "eslint-config-flat-gitignore": "^0.1.8",
23
24
  "eslint-import-resolver-typescript": "^3.6.1",
24
- "eslint-plugin-cypress": "^3.3.0",
25
+ "eslint-plugin-cypress": "^3.4.0",
25
26
  "eslint-plugin-deprecation": "^3.0.0",
26
27
  "eslint-plugin-eslint-comments": "^3.2.0",
27
- "eslint-plugin-import-x": "^3.0.1",
28
+ "eslint-plugin-import-x": "^3.1.0",
28
29
  "eslint-plugin-jsdoc": "^48.8.3",
29
30
  "eslint-plugin-jsonc": "^2.16.0",
30
31
  "eslint-plugin-markdown": "^5.1.0",
@@ -41,20 +42,20 @@
41
42
  "globals": "^15.8.0",
42
43
  "jsonc-eslint-parser": "^2.4.0",
43
44
  "local-pkg": "^0.5.0",
44
- "typescript-eslint": "^7.16.1",
45
+ "typescript-eslint": "^7.17.0",
45
46
  "vue-eslint-parser": "^9.4.3"
46
47
  },
47
48
  "devDependencies": {
48
- "@types/eslint": "^8.56.10",
49
+ "@types/eslint": "^8.56.11",
49
50
  "@types/eslint-plugin-markdown": "^2.0.2",
50
51
  "@types/eslint__js": "^8.42.3",
51
- "@types/node": "^20.14.11",
52
+ "@types/node": "^20.14.12",
52
53
  "bumpp": "^9.4.1",
53
54
  "eslint": "^9.7.0",
54
55
  "eslint-plugin-eslint-plugin": "^6.2.0",
55
- "tsup": "^8.2.2",
56
+ "tsup": "^8.2.3",
56
57
  "tsx": "^4.16.2",
57
- "typescript": "^5.5.3"
58
+ "typescript": "^5.5.4"
58
59
  },
59
60
  "engines": {
60
61
  "node": "^18.18.0 || >=20.0.0"
@@ -84,7 +85,7 @@
84
85
  },
85
86
  "type": "module",
86
87
  "types": "dist/index.d.ts",
87
- "version": "0.1.1",
88
+ "version": "0.1.2",
88
89
  "scripts": {
89
90
  "build": "tsup",
90
91
  "lint": "eslint .",