@egs33/eslint-config 2.0.1 → 2.0.2

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/package.json +1 -1
  2. package/vue3.js +5 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@egs33/eslint-config",
3
3
  "description": "eslint config for me",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "author": "egs33",
6
6
  "type": "module",
7
7
  "dependencies": {
package/vue3.js CHANGED
@@ -108,7 +108,9 @@ const config = [
108
108
  ];
109
109
 
110
110
  // default name '.vue' is invalid processer name in flat config
111
- config.plugins.vue.processors.vue = config.plugins.vue.processors['.vue'];
112
- config.processor = 'vue/vue';
111
+ const vueConfig = config.find((c) => c?.plugins?.vue);
112
+ if (vueConfig) {
113
+ vueConfig.plugins.vue.processors.vue = vueConfig.plugins.vue.processors['.vue'];
114
+ }
113
115
 
114
- export default config;
116
+ export default [...config, { processor: 'vue/vue' }];