@saasmakers/eslint 0.1.12 → 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,250 +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
- "ts/no-use-before-define": "off",
190
- "vue/attributes-order": [
191
- "error",
192
- {
193
- alphabetical: true,
194
- order: [
195
- "DEFINITION",
196
- "LIST_RENDERING",
197
- "CONDITIONALS",
198
- "RENDER_MODIFIERS",
199
- "GLOBAL",
200
- ["UNIQUE", "SLOT"],
201
- "TWO_WAY_BINDING",
202
- "OTHER_DIRECTIVES",
203
- "OTHER_ATTR",
204
- "EVENTS",
205
- "CONTENT"
206
- ]
207
- }
208
- ],
209
- "vue/component-name-in-template-casing": [
210
- "error",
211
- "PascalCase",
212
- { registeredComponentsOnly: false }
213
- ],
214
- "vue/first-attribute-linebreak": [
215
- "error",
216
- {
217
- multiline: "below",
218
- singleline: "beside"
219
- }
220
- ],
221
- "vue/max-attributes-per-line": [
222
- "error",
223
- {
224
- multiline: 1,
225
- singleline: 1
226
- }
227
- ],
228
- "vue/multiline-html-element-content-newline": [
229
- "error",
230
- {
231
- allowEmptyLines: false,
232
- ignores: ["pre", "textarea"],
233
- ignoreWhenEmpty: true
234
- }
235
- ],
236
- "vue/padding-line-between-tags": [
237
- "error",
238
- [
239
- {
240
- blankLine: "always",
241
- next: "*",
242
- prev: "*"
243
- }
244
- ]
245
- ]
246
- }
247
- }
248
- );
3
+ declare const config: Linter.Config[];
249
4
 
250
- export = eslint_config;
5
+ export = config;
@@ -1,250 +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
- "ts/no-use-before-define": "off",
190
- "vue/attributes-order": [
191
- "error",
192
- {
193
- alphabetical: true,
194
- order: [
195
- "DEFINITION",
196
- "LIST_RENDERING",
197
- "CONDITIONALS",
198
- "RENDER_MODIFIERS",
199
- "GLOBAL",
200
- ["UNIQUE", "SLOT"],
201
- "TWO_WAY_BINDING",
202
- "OTHER_DIRECTIVES",
203
- "OTHER_ATTR",
204
- "EVENTS",
205
- "CONTENT"
206
- ]
207
- }
208
- ],
209
- "vue/component-name-in-template-casing": [
210
- "error",
211
- "PascalCase",
212
- { registeredComponentsOnly: false }
213
- ],
214
- "vue/first-attribute-linebreak": [
215
- "error",
216
- {
217
- multiline: "below",
218
- singleline: "beside"
219
- }
220
- ],
221
- "vue/max-attributes-per-line": [
222
- "error",
223
- {
224
- multiline: 1,
225
- singleline: 1
226
- }
227
- ],
228
- "vue/multiline-html-element-content-newline": [
229
- "error",
230
- {
231
- allowEmptyLines: false,
232
- ignores: ["pre", "textarea"],
233
- ignoreWhenEmpty: true
234
- }
235
- ],
236
- "vue/padding-line-between-tags": [
237
- "error",
238
- [
239
- {
240
- blankLine: "always",
241
- next: "*",
242
- prev: "*"
243
- }
244
- ]
245
- ]
246
- }
247
- }
248
- );
3
+ declare const config: Linter.Config[];
249
4
 
250
- export { eslint_config as default };
5
+ export { config as default };