@iqrf/eslint-config 0.2.2 → 0.2.3

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
@@ -139,6 +139,24 @@ interface Options$1 {
139
139
  }
140
140
  declare const markdown: (options: Options$1) => Linter.Config[];
141
141
 
142
+ /**
143
+ * Copyright 2024 MICRORISC s.r.o.
144
+ *
145
+ * Licensed under the Apache License, Version 2.0 (the "License");
146
+ * you may not use this file except in compliance with the License.
147
+ * You may obtain a copy of the License at
148
+ *
149
+ * http://www.apache.org/licenses/LICENSE-2.0
150
+ *
151
+ * Unless required by applicable law or agreed to in writing, software
152
+ * distributed under the License is distributed on an "AS IS" BASIS,
153
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
154
+ * See the License for the specific language governing permissions and
155
+ * limitations under the License.
156
+ */
157
+
158
+ declare const math: Linter.Config[];
159
+
142
160
  /**
143
161
  * Copyright 2024 MICRORISC s.r.o.
144
162
  *
@@ -455,4 +473,4 @@ interface IqrfEslintOptions {
455
473
  */
456
474
  declare function iqrfEslint(options?: Partial<IqrfEslintOptions>, config?: Linter.Config | Linter.Config[]): Linter.Config[];
457
475
 
458
- export { type IqrfEslintOptions, comments, cypress, getVueVersion, hasCypress, hasPinia, hasTypescript, hasVitest, hasVue, hasVueI18n, hasVuetify, imports, iqrfEslint, isInEditor, javascript, jsDoc, json, markdown, node, perfectionist, pinia, promise, regexp, stylistic, typescript, unicorn, versionVue, vitest, vue, vueI18n };
476
+ export { type IqrfEslintOptions, comments, cypress, getVueVersion, hasCypress, hasPinia, hasTypescript, hasVitest, hasVue, hasVueI18n, hasVuetify, imports, iqrfEslint, isInEditor, javascript, jsDoc, json, markdown, math, node, perfectionist, pinia, promise, regexp, stylistic, typescript, unicorn, versionVue, vitest, vue, vueI18n };
package/dist/index.js CHANGED
@@ -260,6 +260,12 @@ var markdown = (options) => [
260
260
  ] : []
261
261
  ];
262
262
 
263
+ // src/configs/math.ts
264
+ import pluginMath from "eslint-plugin-math";
265
+ var math = [
266
+ pluginMath.configs.recommended
267
+ ];
268
+
263
269
  // src/configs/node.ts
264
270
  import pluginNode from "eslint-plugin-n";
265
271
  var node = [
@@ -608,7 +614,6 @@ var vitest = [
608
614
  ];
609
615
 
610
616
  // src/configs/vue.ts
611
- import { fixupPluginRules } from "@eslint/compat";
612
617
  import pluginVue from "eslint-plugin-vue";
613
618
  import pluginVueScopedCSS from "eslint-plugin-vue-scoped-css";
614
619
  import pluginVuetify from "eslint-plugin-vuetify";
@@ -629,15 +634,17 @@ var configs2 = getVueVersion() === 3 ? [
629
634
  ...pluginVue.configs["flat/vue2-recommended"],
630
635
  ...pluginVueScopedCSS.configs["flat/vue2-recommended"]
631
636
  ];
637
+ var vuetifyConfigs = [
638
+ ...pluginVuetify.configs["flat/base"],
639
+ ...pluginVuetify.configs["flat/recommended"]
640
+ ];
632
641
  var vue = (options) => [
633
642
  ...configs2,
643
+ ...options.vuetify ? vuetifyConfigs : [],
634
644
  {
635
645
  files: ["**/*.vue"],
636
646
  plugins: {
637
- vue: pluginVue,
638
- ...options.vuetify ? {
639
- vuetify: fixupPluginRules(pluginVuetify)
640
- } : {}
647
+ vue: pluginVue
641
648
  },
642
649
  languageOptions: {
643
650
  ecmaVersion: 2022,
@@ -690,15 +697,7 @@ var vue = (options) => [
690
697
  "always"
691
698
  ],
692
699
  "vue/prefer-template": "error",
693
- "vue/space-unary-ops": "error",
694
- "vue/valid-v-slot": [
695
- "error",
696
- { allowModifiers: options.vuetify }
697
- ],
698
- ...options.vuetify ? {
699
- ...pluginVuetify.configs.base.rules,
700
- ...pluginVuetify.configs.recommended.rules
701
- } : {}
700
+ "vue/space-unary-ops": "error"
702
701
  }
703
702
  }
704
703
  ];
@@ -802,6 +801,7 @@ function iqrfEslint(options = {}, config = []) {
802
801
  configs3.push(...json);
803
802
  configs3.push(...stylistic);
804
803
  configs3.push(...unicorn);
804
+ configs3.push(...math);
805
805
  if (Object.keys(config).length > 0) {
806
806
  configs3.push(...Array.isArray(config) ? config : [config]);
807
807
  }
@@ -825,6 +825,7 @@ export {
825
825
  jsDoc,
826
826
  json,
827
827
  markdown,
828
+ math,
828
829
  node,
829
830
  perfectionist,
830
831
  pinia,
package/package.json CHANGED
@@ -15,7 +15,6 @@
15
15
  ],
16
16
  "description": "ESLint configuration for IQRF projects",
17
17
  "dependencies": {
18
- "@eslint/compat": "^1.2.3",
19
18
  "@eslint/js": "^9.15.0",
20
19
  "@intlify/eslint-plugin-vue-i18n": "^3.0.0",
21
20
  "@stylistic/eslint-plugin": "^2.10.1",
@@ -27,7 +26,7 @@
27
26
  "eslint-plugin-eslint-comments": "^3.2.0",
28
27
  "eslint-plugin-import-x": "^4.4.2",
29
28
  "eslint-plugin-jsdoc": "^50.5.0",
30
- "eslint-plugin-jsonc": "^2.18.1",
29
+ "eslint-plugin-jsonc": "^2.18.2",
31
30
  "eslint-plugin-markdown": "^5.1.0",
32
31
  "eslint-plugin-math": "^0.6.0",
33
32
  "eslint-plugin-n": "^17.13.2",
@@ -38,9 +37,8 @@
38
37
  "eslint-plugin-unicorn": "^56.0.0",
39
38
  "eslint-plugin-vue": "^9.31.0",
40
39
  "eslint-plugin-vue-scoped-css": "^2.8.1",
41
- "eslint-plugin-vuetify": "^2.4.0",
40
+ "eslint-plugin-vuetify": "^2.5.1",
42
41
  "globals": "^15.12.0",
43
- "jsonc-eslint-parser": "^2.4.0",
44
42
  "local-pkg": "^0.5.0",
45
43
  "typescript-eslint": "^8.14.0",
46
44
  "vue-eslint-parser": "^9.4.3"
@@ -52,7 +50,7 @@
52
50
  "@types/node": "^22.9.0",
53
51
  "bumpp": "^9.8.1",
54
52
  "eslint": "^9.15.0",
55
- "eslint-plugin-eslint-plugin": "^6.3.1",
53
+ "eslint-plugin-eslint-plugin": "^6.3.2",
56
54
  "tsup": "^8.3.5",
57
55
  "tsx": "^4.19.2",
58
56
  "typescript": "^5.6.3"
@@ -85,7 +83,7 @@
85
83
  },
86
84
  "type": "module",
87
85
  "types": "dist/index.d.ts",
88
- "version": "0.2.2",
86
+ "version": "0.2.3",
89
87
  "scripts": {
90
88
  "build": "tsup",
91
89
  "lint": "eslint .",