vue-linters-config 0.4.10 → 0.4.12

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/README.md CHANGED
@@ -27,10 +27,12 @@ _Легко принимать свободу как должное, если н
27
27
  eslint.config.js:
28
28
 
29
29
  ```
30
+ import path from 'node:path';
31
+ import { fileURLToPath } from 'node:url';
30
32
  import js from '@eslint/js';
31
33
  import tseslint from 'typescript-eslint';
32
- import vueParser from 'vue-eslint-parser';
33
34
  import pluginVue from 'eslint-plugin-vue';
35
+ import vueParser from 'vue-eslint-parser';
34
36
  import pluginImportX from 'eslint-plugin-import-x';
35
37
  import pluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
36
38
  import pluginSonar from 'eslint-plugin-sonarjs';
@@ -38,6 +40,8 @@ import pluginUnicorn from 'eslint-plugin-unicorn';
38
40
  import globals from 'globals';
39
41
  import { parser, options, ignores, settings, rules } from 'vue-linters-config';
40
42
 
43
+ const dirname = path.dirname(fileURLToPath(import.meta.url));
44
+
41
45
  export default tseslint.config(
42
46
  js.configs.recommended,
43
47
  ...tseslint.configs.recommended,
@@ -48,7 +52,7 @@ export default tseslint.config(
48
52
  pluginImportX.flatConfigs.typescript,
49
53
 
50
54
  ignores,
51
- parser(vueParser, tseslint.parser),
55
+ parser(vueParser, tseslint.parser, dirname),
52
56
  { ...options(globals), ...settings, ...rules },
53
57
 
54
58
  pluginPrettierRecommended
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ function t(e, r, n) {
6
6
  languageOptions: {
7
7
  parser: r,
8
8
  parserOptions: {
9
- project: ["./tsconfig.json"],
9
+ projectService: !0,
10
10
  tsconfigRootDir: o,
11
11
  extraFileExtensions: [".vue"]
12
12
  }
@@ -18,7 +18,7 @@ function t(e, r, n) {
18
18
  parser: e,
19
19
  parserOptions: {
20
20
  parser: r,
21
- project: ["./tsconfig.json"],
21
+ projectService: !0,
22
22
  tsconfigRootDir: o,
23
23
  extraFileExtensions: [".vue"]
24
24
  }
@@ -232,6 +232,7 @@ const i = {
232
232
  "sonarjs/no-duplicated-branches": "off",
233
233
  "sonarjs/no-invariant-returns": "off",
234
234
  "sonarjs/pseudo-random": "off",
235
+ "sonarjs/no-misleading-array-reverse": "off",
235
236
  "unicorn/prevent-abbreviations": "off",
236
237
  "unicorn/no-null": "off",
237
238
  "unicorn/filename-case": ["error", { cases: { camelCase: !0, pascalCase: !0 } }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-linters-config",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "type": "module",
5
5
  "description": "Vue 3 linters config for eslint, prettier, stylelint",
6
6
  "author": "Aleksandr Dergunov <dergunovs@mail.ru>",