vue-linters-config 0.3.6 → 0.3.7

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/README.md +3 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -34,7 +34,7 @@ import vueParser from 'vue-eslint-parser';
34
34
  import eslintPluginImportX from 'eslint-plugin-import-x';
35
35
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
36
36
  import globals from 'globals';
37
- import { ignores, settings, rules } from 'vue-linters-config';
37
+ import { parser, options, ignores, settings, rules } from 'vue-linters-config';
38
38
 
39
39
  export default tseslint.config(
40
40
  js.configs.recommended,
@@ -44,26 +44,8 @@ export default tseslint.config(
44
44
  eslintPluginImportX.flatConfigs.typescript,
45
45
 
46
46
  ignores,
47
-
48
- {
49
- files: ['**/*.{ts,tsx,vue}'],
50
- languageOptions: { parser: tseslint.parser },
51
- },
52
- {
53
- files: ['**/*.vue'],
54
- languageOptions: { parser: vueParser, parserOptions: { parser: tseslint.parser } },
55
- },
56
-
57
- {
58
- languageOptions: {
59
- ecmaVersion: 2022,
60
- sourceType: 'module',
61
- globals: { ...globals.browser, ...globals.node, ymaps: 'writable' },
62
- },
63
-
64
- ...settings,
65
- ...rules,
66
- },
47
+ parser(vueParser, tseslint.parser),
48
+ { ...options(globals), ...settings, ...rules },
67
49
 
68
50
  eslintPluginPrettierRecommended
69
51
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-linters-config",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "type": "module",
5
5
  "description": "Vue 3 linters config for eslint, prettier, stylelint",
6
6
  "author": "Aleksandr Dergunov <dergunovs@mail.ru>",