vue-linters-config 0.4.10 → 0.4.11
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 +6 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
21
|
+
projectService: !0,
|
|
22
22
|
tsconfigRootDir: o,
|
|
23
23
|
extraFileExtensions: [".vue"]
|
|
24
24
|
}
|