@commencis/eslint-config 1.0.0 → 1.0.1

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.
@@ -125,10 +125,12 @@ var reactPluginConfig = {
125
125
 
126
126
  // src/plugins/vuePlugin.ts
127
127
  import vuePlugin from "eslint-plugin-vue";
128
- var vuePluginConfig = {
129
- ...vuePlugin.configs.recommended,
130
- name: "commencis/plugin:vue"
131
- };
128
+ var vuePluginConfig = [
129
+ ...vuePlugin.configs["flat/recommended"],
130
+ {
131
+ name: "commencis/plugin:vue"
132
+ }
133
+ ];
132
134
 
133
135
  // src/configs/base.ts
134
136
  var base_default = [
@@ -131,10 +131,12 @@ var reactPluginConfig = {
131
131
 
132
132
  // src/plugins/vuePlugin.ts
133
133
  import vuePlugin from "eslint-plugin-vue";
134
- var vuePluginConfig = {
135
- ...vuePlugin.configs.recommended,
136
- name: "commencis/plugin:vue"
137
- };
134
+ var vuePluginConfig = [
135
+ ...vuePlugin.configs["flat/recommended"],
136
+ {
137
+ name: "commencis/plugin:vue"
138
+ }
139
+ ];
138
140
 
139
141
  // src/configs/base.ts
140
142
  var base_default = [
@@ -131,10 +131,12 @@ var reactPluginConfig = {
131
131
 
132
132
  // src/plugins/vuePlugin.ts
133
133
  import vuePlugin from "eslint-plugin-vue";
134
- var vuePluginConfig = {
135
- ...vuePlugin.configs.recommended,
136
- name: "commencis/plugin:vue"
137
- };
134
+ var vuePluginConfig = [
135
+ ...vuePlugin.configs["flat/recommended"],
136
+ {
137
+ name: "commencis/plugin:vue"
138
+ }
139
+ ];
138
140
 
139
141
  // src/configs/base.ts
140
142
  var base_default = [
@@ -1,3 +1,6 @@
1
+ // src/configs/vue.ts
2
+ import tseslint2 from "typescript-eslint";
3
+
1
4
  // src/configs/base.ts
2
5
  import globals from "globals";
3
6
  import eslint from "@eslint/js";
@@ -131,10 +134,12 @@ var reactPluginConfig = {
131
134
 
132
135
  // src/plugins/vuePlugin.ts
133
136
  import vuePlugin from "eslint-plugin-vue";
134
- var vuePluginConfig = {
135
- ...vuePlugin.configs.recommended,
136
- name: "commencis/plugin:vue"
137
- };
137
+ var vuePluginConfig = [
138
+ ...vuePlugin.configs["flat/recommended"],
139
+ {
140
+ name: "commencis/plugin:vue"
141
+ }
142
+ ];
138
143
 
139
144
  // src/configs/base.ts
140
145
  var base_default = [
@@ -181,8 +186,20 @@ var typescript_default = [
181
186
  var vue_default = [
182
187
  ...base_default,
183
188
  ...typescript_default,
184
- vuePluginConfig,
189
+ ...vuePluginConfig,
185
190
  ...prettier_default,
191
+ {
192
+ plugins: {
193
+ "typescript-eslint": tseslint2.plugin
194
+ },
195
+ languageOptions: {
196
+ parserOptions: {
197
+ parser: tseslint2.parser,
198
+ extraFileExtensions: [".vue"],
199
+ sourceType: "module"
200
+ }
201
+ }
202
+ },
186
203
  { name: "commencis/vue" }
187
204
  ];
188
205
  export {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- import tseslint2 from "typescript-eslint";
2
+ import tseslint3 from "typescript-eslint";
3
3
 
4
4
  // src/configs/base.ts
5
5
  import globals from "globals";
@@ -134,10 +134,12 @@ var reactPluginConfig = {
134
134
 
135
135
  // src/plugins/vuePlugin.ts
136
136
  import vuePlugin from "eslint-plugin-vue";
137
- var vuePluginConfig = {
138
- ...vuePlugin.configs.recommended,
139
- name: "commencis/plugin:vue"
140
- };
137
+ var vuePluginConfig = [
138
+ ...vuePlugin.configs["flat/recommended"],
139
+ {
140
+ name: "commencis/plugin:vue"
141
+ }
142
+ ];
141
143
 
142
144
  // src/configs/base.ts
143
145
  var base_default = [
@@ -202,16 +204,29 @@ var react_default = [
202
204
  ];
203
205
 
204
206
  // src/configs/vue.ts
207
+ import tseslint2 from "typescript-eslint";
205
208
  var vue_default = [
206
209
  ...base_default,
207
210
  ...typescript_default,
208
- vuePluginConfig,
211
+ ...vuePluginConfig,
209
212
  ...prettier_default,
213
+ {
214
+ plugins: {
215
+ "typescript-eslint": tseslint2.plugin
216
+ },
217
+ languageOptions: {
218
+ parserOptions: {
219
+ parser: tseslint2.parser,
220
+ extraFileExtensions: [".vue"],
221
+ sourceType: "module"
222
+ }
223
+ }
224
+ },
210
225
  { name: "commencis/vue" }
211
226
  ];
212
227
 
213
228
  // src/index.ts
214
- var defineConfig = tseslint2.config;
229
+ var defineConfig = tseslint3.config;
215
230
  export {
216
231
  base_default as commencisBaseConfig,
217
232
  next_default as commencisNextConfig,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@commencis/eslint-config",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Commencis ESLint config",
5
5
  "author": "Commencis WEB Team",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
- "homepage": "https://github.com/Commencis/js-toolkit/packages/eslint-config#readme",
8
+ "homepage": "https://github.com/Commencis/js-toolkit/tree/main/packages/eslint-config#readme",
9
9
  "bugs": {
10
10
  "url": "https://github.com/Commencis/js-toolkit/issues"
11
11
  },