@saasmakers/eslint 0.1.11 → 0.1.13

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.
@@ -1,249 +1,5 @@
1
- import antfu from '@antfu/eslint-config';
2
- import saasmakers from '@saasmakers/eslint';
3
- import packageJson from 'eslint-plugin-package-json';
4
- import storybook from 'eslint-plugin-storybook';
1
+ import { Linter } from 'eslint';
5
2
 
6
- var eslint_config = antfu(
7
- {
8
- regexp: false,
9
- typescript: true,
10
- unocss: true,
11
- vue: true,
12
- ignores: [
13
- "*.md",
14
- "**/.nuxt",
15
- "**/.turbo",
16
- "**/android",
17
- "**/build",
18
- "**/dbschema",
19
- "**/dist",
20
- "**/dumps/*.json",
21
- "**/ios",
22
- "node_modules"
23
- ]
24
- },
25
- {
26
- languageOptions: {
27
- globals: {
28
- $FPROM: true,
29
- $nuxt: true,
30
- chrome: true,
31
- gapi: true
32
- }
33
- },
34
- plugins: {
35
- "package-json": packageJson,
36
- saasmakers,
37
- storybook
38
- },
39
- rules: {
40
- "array-bracket-newline": [
41
- "error",
42
- {
43
- minItems: 3,
44
- multiline: true
45
- }
46
- ],
47
- "brace-style": [
48
- "error",
49
- "stroustrup",
50
- { allowSingleLine: false }
51
- ],
52
- "curly": ["error", "all"],
53
- "id-length": [
54
- "error",
55
- {
56
- exceptions: [
57
- "_",
58
- "t",
59
- "x",
60
- "y"
61
- ],
62
- min: 2
63
- }
64
- ],
65
- "no-use-before-define": "off",
66
- "node/prefer-global/buffer": ["error", "always"],
67
- "node/prefer-global/process": ["error", "always"],
68
- "object-curly-newline": [
69
- "error",
70
- {
71
- ExportDeclaration: {
72
- minProperties: 2,
73
- multiline: true
74
- },
75
- ImportDeclaration: "never",
76
- ObjectExpression: {
77
- minProperties: 2,
78
- multiline: true
79
- },
80
- ObjectPattern: { multiline: true }
81
- }
82
- ],
83
- "object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
84
- "package-json/sort-collections": "error",
85
- "padding-line-between-statements": [
86
- "error",
87
- {
88
- blankLine: "always",
89
- next: "*",
90
- prev: [
91
- "const",
92
- "let",
93
- "var"
94
- ]
95
- },
96
- {
97
- blankLine: "any",
98
- next: [
99
- "const",
100
- "let",
101
- "var"
102
- ],
103
- prev: [
104
- "const",
105
- "let",
106
- "var"
107
- ]
108
- },
109
- {
110
- blankLine: "always",
111
- next: "return",
112
- prev: "*"
113
- },
114
- {
115
- blankLine: "always",
116
- next: "let",
117
- prev: "const"
118
- },
119
- {
120
- blankLine: "always",
121
- next: "const",
122
- prev: "let"
123
- }
124
- ],
125
- "perfectionist/sort-array-includes": ["error", { type: "natural" }],
126
- "perfectionist/sort-classes": [
127
- "error",
128
- {
129
- groups: [
130
- "index-signature",
131
- "static-property",
132
- "private-property",
133
- "property",
134
- "constructor",
135
- "static-method",
136
- "private-method",
137
- "method"
138
- ],
139
- type: "natural"
140
- }
141
- ],
142
- "perfectionist/sort-enums": ["error", { type: "natural" }],
143
- "perfectionist/sort-exports": ["error", { type: "natural" }],
144
- "perfectionist/sort-interfaces": ["error", { type: "natural" }],
145
- "perfectionist/sort-maps": ["error", { type: "natural" }],
146
- "perfectionist/sort-named-exports": ["error", { type: "natural" }],
147
- "perfectionist/sort-named-imports": ["error", { type: "natural" }],
148
- "perfectionist/sort-object-types": ["error", { type: "natural" }],
149
- "perfectionist/sort-objects": [
150
- "error",
151
- {
152
- partitionByNewLine: true,
153
- type: "natural"
154
- }
155
- ],
156
- "perfectionist/sort-union-types": ["error", { type: "natural" }],
157
- "quotes": [
158
- "error",
159
- "single",
160
- {
161
- allowTemplateLiterals: false,
162
- avoidEscape: true
163
- }
164
- ],
165
- "saasmakers/ts-multiline-ternary": "error",
166
- "saasmakers/ts-multiline-union": "error",
167
- "saasmakers/ts-sort-tests": "error",
168
- "saasmakers/vue-i18n-consistent-locales": [
169
- "error",
170
- {
171
- locales: [
172
- "en",
173
- "fr",
174
- "ja"
175
- ]
176
- }
177
- ],
178
- "saasmakers/vue-i18n-consistent-t": "error",
179
- "saasmakers/vue-i18n-sort-keys": "error",
180
- "saasmakers/vue-i18n-unused-strings": "error",
181
- "saasmakers/vue-script-format-computed": "error",
182
- "saasmakers/vue-script-format-emits": "error",
183
- "saasmakers/vue-script-format-props": "error",
184
- "saasmakers/vue-script-order": "error",
185
- "saasmakers/vue-template-format-classes": "error",
186
- "saasmakers/vue-template-format-props": "error",
187
- "saasmakers/vue-template-remove-comments": "error",
188
- "saasmakers/vue-template-remove-true-attributes": "error",
189
- "vue/attributes-order": [
190
- "error",
191
- {
192
- alphabetical: true,
193
- order: [
194
- "DEFINITION",
195
- "LIST_RENDERING",
196
- "CONDITIONALS",
197
- "RENDER_MODIFIERS",
198
- "GLOBAL",
199
- ["UNIQUE", "SLOT"],
200
- "TWO_WAY_BINDING",
201
- "OTHER_DIRECTIVES",
202
- "OTHER_ATTR",
203
- "EVENTS",
204
- "CONTENT"
205
- ]
206
- }
207
- ],
208
- "vue/component-name-in-template-casing": [
209
- "error",
210
- "PascalCase",
211
- { registeredComponentsOnly: false }
212
- ],
213
- "vue/first-attribute-linebreak": [
214
- "error",
215
- {
216
- multiline: "below",
217
- singleline: "beside"
218
- }
219
- ],
220
- "vue/max-attributes-per-line": [
221
- "error",
222
- {
223
- multiline: 1,
224
- singleline: 1
225
- }
226
- ],
227
- "vue/multiline-html-element-content-newline": [
228
- "error",
229
- {
230
- allowEmptyLines: false,
231
- ignores: ["pre", "textarea"],
232
- ignoreWhenEmpty: true
233
- }
234
- ],
235
- "vue/padding-line-between-tags": [
236
- "error",
237
- [
238
- {
239
- blankLine: "always",
240
- next: "*",
241
- prev: "*"
242
- }
243
- ]
244
- ]
245
- }
246
- }
247
- );
3
+ declare const config: Linter.Config[];
248
4
 
249
- export = eslint_config;
5
+ export = config;
@@ -1,249 +1,5 @@
1
- import antfu from '@antfu/eslint-config';
2
- import saasmakers from '@saasmakers/eslint';
3
- import packageJson from 'eslint-plugin-package-json';
4
- import storybook from 'eslint-plugin-storybook';
1
+ import { Linter } from 'eslint';
5
2
 
6
- var eslint_config = antfu(
7
- {
8
- regexp: false,
9
- typescript: true,
10
- unocss: true,
11
- vue: true,
12
- ignores: [
13
- "*.md",
14
- "**/.nuxt",
15
- "**/.turbo",
16
- "**/android",
17
- "**/build",
18
- "**/dbschema",
19
- "**/dist",
20
- "**/dumps/*.json",
21
- "**/ios",
22
- "node_modules"
23
- ]
24
- },
25
- {
26
- languageOptions: {
27
- globals: {
28
- $FPROM: true,
29
- $nuxt: true,
30
- chrome: true,
31
- gapi: true
32
- }
33
- },
34
- plugins: {
35
- "package-json": packageJson,
36
- saasmakers,
37
- storybook
38
- },
39
- rules: {
40
- "array-bracket-newline": [
41
- "error",
42
- {
43
- minItems: 3,
44
- multiline: true
45
- }
46
- ],
47
- "brace-style": [
48
- "error",
49
- "stroustrup",
50
- { allowSingleLine: false }
51
- ],
52
- "curly": ["error", "all"],
53
- "id-length": [
54
- "error",
55
- {
56
- exceptions: [
57
- "_",
58
- "t",
59
- "x",
60
- "y"
61
- ],
62
- min: 2
63
- }
64
- ],
65
- "no-use-before-define": "off",
66
- "node/prefer-global/buffer": ["error", "always"],
67
- "node/prefer-global/process": ["error", "always"],
68
- "object-curly-newline": [
69
- "error",
70
- {
71
- ExportDeclaration: {
72
- minProperties: 2,
73
- multiline: true
74
- },
75
- ImportDeclaration: "never",
76
- ObjectExpression: {
77
- minProperties: 2,
78
- multiline: true
79
- },
80
- ObjectPattern: { multiline: true }
81
- }
82
- ],
83
- "object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
84
- "package-json/sort-collections": "error",
85
- "padding-line-between-statements": [
86
- "error",
87
- {
88
- blankLine: "always",
89
- next: "*",
90
- prev: [
91
- "const",
92
- "let",
93
- "var"
94
- ]
95
- },
96
- {
97
- blankLine: "any",
98
- next: [
99
- "const",
100
- "let",
101
- "var"
102
- ],
103
- prev: [
104
- "const",
105
- "let",
106
- "var"
107
- ]
108
- },
109
- {
110
- blankLine: "always",
111
- next: "return",
112
- prev: "*"
113
- },
114
- {
115
- blankLine: "always",
116
- next: "let",
117
- prev: "const"
118
- },
119
- {
120
- blankLine: "always",
121
- next: "const",
122
- prev: "let"
123
- }
124
- ],
125
- "perfectionist/sort-array-includes": ["error", { type: "natural" }],
126
- "perfectionist/sort-classes": [
127
- "error",
128
- {
129
- groups: [
130
- "index-signature",
131
- "static-property",
132
- "private-property",
133
- "property",
134
- "constructor",
135
- "static-method",
136
- "private-method",
137
- "method"
138
- ],
139
- type: "natural"
140
- }
141
- ],
142
- "perfectionist/sort-enums": ["error", { type: "natural" }],
143
- "perfectionist/sort-exports": ["error", { type: "natural" }],
144
- "perfectionist/sort-interfaces": ["error", { type: "natural" }],
145
- "perfectionist/sort-maps": ["error", { type: "natural" }],
146
- "perfectionist/sort-named-exports": ["error", { type: "natural" }],
147
- "perfectionist/sort-named-imports": ["error", { type: "natural" }],
148
- "perfectionist/sort-object-types": ["error", { type: "natural" }],
149
- "perfectionist/sort-objects": [
150
- "error",
151
- {
152
- partitionByNewLine: true,
153
- type: "natural"
154
- }
155
- ],
156
- "perfectionist/sort-union-types": ["error", { type: "natural" }],
157
- "quotes": [
158
- "error",
159
- "single",
160
- {
161
- allowTemplateLiterals: false,
162
- avoidEscape: true
163
- }
164
- ],
165
- "saasmakers/ts-multiline-ternary": "error",
166
- "saasmakers/ts-multiline-union": "error",
167
- "saasmakers/ts-sort-tests": "error",
168
- "saasmakers/vue-i18n-consistent-locales": [
169
- "error",
170
- {
171
- locales: [
172
- "en",
173
- "fr",
174
- "ja"
175
- ]
176
- }
177
- ],
178
- "saasmakers/vue-i18n-consistent-t": "error",
179
- "saasmakers/vue-i18n-sort-keys": "error",
180
- "saasmakers/vue-i18n-unused-strings": "error",
181
- "saasmakers/vue-script-format-computed": "error",
182
- "saasmakers/vue-script-format-emits": "error",
183
- "saasmakers/vue-script-format-props": "error",
184
- "saasmakers/vue-script-order": "error",
185
- "saasmakers/vue-template-format-classes": "error",
186
- "saasmakers/vue-template-format-props": "error",
187
- "saasmakers/vue-template-remove-comments": "error",
188
- "saasmakers/vue-template-remove-true-attributes": "error",
189
- "vue/attributes-order": [
190
- "error",
191
- {
192
- alphabetical: true,
193
- order: [
194
- "DEFINITION",
195
- "LIST_RENDERING",
196
- "CONDITIONALS",
197
- "RENDER_MODIFIERS",
198
- "GLOBAL",
199
- ["UNIQUE", "SLOT"],
200
- "TWO_WAY_BINDING",
201
- "OTHER_DIRECTIVES",
202
- "OTHER_ATTR",
203
- "EVENTS",
204
- "CONTENT"
205
- ]
206
- }
207
- ],
208
- "vue/component-name-in-template-casing": [
209
- "error",
210
- "PascalCase",
211
- { registeredComponentsOnly: false }
212
- ],
213
- "vue/first-attribute-linebreak": [
214
- "error",
215
- {
216
- multiline: "below",
217
- singleline: "beside"
218
- }
219
- ],
220
- "vue/max-attributes-per-line": [
221
- "error",
222
- {
223
- multiline: 1,
224
- singleline: 1
225
- }
226
- ],
227
- "vue/multiline-html-element-content-newline": [
228
- "error",
229
- {
230
- allowEmptyLines: false,
231
- ignores: ["pre", "textarea"],
232
- ignoreWhenEmpty: true
233
- }
234
- ],
235
- "vue/padding-line-between-tags": [
236
- "error",
237
- [
238
- {
239
- blankLine: "always",
240
- next: "*",
241
- prev: "*"
242
- }
243
- ]
244
- ]
245
- }
246
- }
247
- );
3
+ declare const config: Linter.Config[];
248
4
 
249
- export { eslint_config as default };
5
+ export { config as default };