vue-linters-config 0.4.8 → 0.4.10

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.
Files changed (2) hide show
  1. package/dist/index.js +39 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,13 +1,32 @@
1
- function o(e, r) {
2
- return {
3
- files: ["**/*.vue"],
4
- languageOptions: {
5
- parser: e,
6
- parserOptions: { parser: r, projectService: !0 }
1
+ function t(e, r, n) {
2
+ const o = n || import.meta.dirname;
3
+ return [
4
+ {
5
+ files: ["**/*.{ts,tsx,vue}"],
6
+ languageOptions: {
7
+ parser: r,
8
+ parserOptions: {
9
+ project: ["./tsconfig.json"],
10
+ tsconfigRootDir: o,
11
+ extraFileExtensions: [".vue"]
12
+ }
13
+ }
14
+ },
15
+ {
16
+ files: ["**/*.vue"],
17
+ languageOptions: {
18
+ parser: e,
19
+ parserOptions: {
20
+ parser: r,
21
+ project: ["./tsconfig.json"],
22
+ tsconfigRootDir: o,
23
+ extraFileExtensions: [".vue"]
24
+ }
25
+ }
7
26
  }
8
- };
27
+ ];
9
28
  }
10
- function n(e) {
29
+ function s(e) {
11
30
  return {
12
31
  languageOptions: {
13
32
  ecmaVersion: 2022,
@@ -16,7 +35,7 @@ function n(e) {
16
35
  }
17
36
  };
18
37
  }
19
- const t = {
38
+ const i = {
20
39
  ignores: [
21
40
  "**/dist/",
22
41
  "**/dev-dist/",
@@ -27,13 +46,13 @@ const t = {
27
46
  "**/package-lock.json",
28
47
  "**/android/"
29
48
  ]
30
- }, s = {
49
+ }, a = {
31
50
  settings: {
32
51
  "import-x/resolver": { node: { extensions: [".js", ".ts", ".mjs", ".d.ts"] } },
33
52
  "import-x/ignore": "vue",
34
53
  "import-x/external-module-folders": ["node_modules", "node_modules/@types"]
35
54
  }
36
- }, i = {
55
+ }, l = {
37
56
  rules: {
38
57
  "vue/attribute-hyphenation": ["error", "never", { ignore: ["hide-details"] }],
39
58
  "vue/block-lang": ["error", { script: { lang: "ts" } }],
@@ -278,7 +297,7 @@ const t = {
278
297
  }
279
298
  ]
280
299
  }
281
- }, a = {
300
+ }, p = {
282
301
  arrayBracketSpacing: !1,
283
302
  arrowParens: "always",
284
303
  bracketSameLine: !1,
@@ -295,7 +314,7 @@ const t = {
295
314
  tabWidth: 2,
296
315
  trailingComma: "es5",
297
316
  useTabs: !1
298
- }, l = {
317
+ }, c = {
299
318
  plugins: ["stylelint-prettier"],
300
319
  extends: [
301
320
  "stylelint-config-recommended-scss",
@@ -382,11 +401,11 @@ const t = {
382
401
  }
383
402
  };
384
403
  export {
385
- t as ignores,
386
- n as options,
387
- o as parser,
388
- a as prettier,
389
- i as rules,
390
- s as settings,
391
- l as stylelint
404
+ i as ignores,
405
+ s as options,
406
+ t as parser,
407
+ p as prettier,
408
+ l as rules,
409
+ a as settings,
410
+ c as stylelint
392
411
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-linters-config",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "type": "module",
5
5
  "description": "Vue 3 linters config for eslint, prettier, stylelint",
6
6
  "author": "Aleksandr Dergunov <dergunovs@mail.ru>",