@snowyyd/eslint-config 2.2.5 → 2.2.6

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,323 +1,3 @@
1
- declare const _default: {
2
- name: string;
3
- rules: {
4
- '@stylistic/array-bracket-newline': ["off", string];
5
- '@stylistic/array-element-newline': ["off", {
6
- multiline: boolean;
7
- minItems: number;
8
- }];
9
- '@stylistic/array-bracket-spacing': ["error", string];
10
- '@stylistic/block-spacing': ["error", string];
11
- '@stylistic/brace-style': ["error", string, {
12
- allowSingleLine: boolean;
13
- }];
14
- camelcase: ["error", {
15
- properties: string;
16
- ignoreDestructuring: boolean;
17
- }];
18
- 'capitalized-comments': ["off", string, {
19
- line: {
20
- ignorePattern: string;
21
- ignoreInlineComments: boolean;
22
- ignoreConsecutiveComments: boolean;
23
- };
24
- block: {
25
- ignorePattern: string;
26
- ignoreInlineComments: boolean;
27
- ignoreConsecutiveComments: boolean;
28
- };
29
- }];
30
- '@stylistic/comma-dangle': ["error", {
31
- arrays: string;
32
- objects: string;
33
- imports: string;
34
- exports: string;
35
- functions: string;
36
- }];
37
- '@stylistic/comma-spacing': ["error", {
38
- before: boolean;
39
- after: boolean;
40
- }];
41
- '@stylistic/comma-style': ["error", string, {
42
- exceptions: {
43
- ArrayExpression: boolean;
44
- ArrayPattern: boolean;
45
- ArrowFunctionExpression: boolean;
46
- CallExpression: boolean;
47
- FunctionDeclaration: boolean;
48
- FunctionExpression: boolean;
49
- ImportDeclaration: boolean;
50
- ObjectExpression: boolean;
51
- ObjectPattern: boolean;
52
- VariableDeclaration: boolean;
53
- NewExpression: boolean;
54
- };
55
- }];
56
- '@stylistic/computed-property-spacing': ["error", string];
57
- 'consistent-this': "off";
58
- '@stylistic/eol-last': ["error", string];
59
- '@stylistic/function-call-argument-newline': ["error", string];
60
- '@stylistic/function-call-spacing': ["error", string];
61
- 'func-name-matching': ["off", string, {
62
- includeCommonJSModuleExports: boolean;
63
- considerPropertyDescriptor: boolean;
64
- }];
65
- 'func-names': "warn";
66
- 'func-style': ["off", string];
67
- '@stylistic/function-paren-newline': ["error", string];
68
- 'id-denylist': "off";
69
- 'id-length': "off";
70
- 'id-match': "off";
71
- '@stylistic/implicit-arrow-linebreak': ["error", string];
72
- '@stylistic/indent': ["error", number, {
73
- SwitchCase: number;
74
- VariableDeclarator: number;
75
- outerIIFEBody: number;
76
- FunctionDeclaration: {
77
- parameters: number;
78
- body: number;
79
- };
80
- FunctionExpression: {
81
- parameters: number;
82
- body: number;
83
- };
84
- CallExpression: {
85
- arguments: number;
86
- };
87
- ArrayExpression: number;
88
- ObjectExpression: number;
89
- ImportDeclaration: number;
90
- flatTernaryExpressions: boolean;
91
- ignoredNodes: string[];
92
- ignoreComments: boolean;
93
- }];
94
- '@stylistic/jsx-quotes': ["off", string];
95
- '@stylistic/key-spacing': ["error", {
96
- beforeColon: boolean;
97
- afterColon: boolean;
98
- }];
99
- '@stylistic/keyword-spacing': ["error", {
100
- before: boolean;
101
- after: boolean;
102
- overrides: {
103
- return: {
104
- after: boolean;
105
- };
106
- throw: {
107
- after: boolean;
108
- };
109
- case: {
110
- after: boolean;
111
- };
112
- };
113
- }];
114
- '@stylistic/line-comment-position': ["off", {
115
- position: string;
116
- ignorePattern: string;
117
- applyDefaultPatterns: boolean;
118
- }];
119
- '@stylistic/linebreak-style': ["error", string];
120
- '@stylistic/lines-between-class-members': ["error", string, {
121
- exceptAfterSingleLine: boolean;
122
- }];
123
- '@stylistic/lines-around-comment': "off";
124
- '@stylistic/padding-line-between-statements': ["error", {
125
- blankLine: string;
126
- prev: string;
127
- next: string;
128
- }, {
129
- blankLine: string;
130
- prev: string;
131
- next: string;
132
- }, {
133
- blankLine: string;
134
- prev: string;
135
- next: string;
136
- }];
137
- 'logical-assignment-operators': ["off", string, {
138
- enforceForIfStatements: boolean;
139
- }];
140
- 'max-depth': ["off", number];
141
- '@stylistic/max-len': ["error", number, number, {
142
- ignoreUrls: boolean;
143
- ignoreComments: boolean;
144
- ignoreRegExpLiterals: boolean;
145
- ignoreStrings: boolean;
146
- ignoreTemplateLiterals: boolean;
147
- }];
148
- 'max-lines': ["off", {
149
- max: number;
150
- skipBlankLines: boolean;
151
- skipComments: boolean;
152
- }];
153
- 'max-lines-per-function': ["off", {
154
- max: number;
155
- skipBlankLines: boolean;
156
- skipComments: boolean;
157
- IIFEs: boolean;
158
- }];
159
- 'max-nested-callbacks': "off";
160
- 'max-params': ["off", number];
161
- 'max-statements': ["off", number];
162
- '@stylistic/max-statements-per-line': ["off", {
163
- max: number;
164
- }];
165
- '@stylistic/multiline-comment-style': ["off", string];
166
- '@stylistic/multiline-ternary': ["off", string];
167
- 'new-cap': ["error", {
168
- newIsCap: boolean;
169
- newIsCapExceptions: never[];
170
- capIsNew: boolean;
171
- capIsNewExceptions: string[];
172
- }];
173
- '@stylistic/new-parens': "error";
174
- '@stylistic/newline-per-chained-call': ["error", {
175
- ignoreChainWithDepth: number;
176
- }];
177
- 'no-array-constructor': "error";
178
- 'no-bitwise': "error";
179
- 'no-continue': "error";
180
- 'no-inline-comments': "off";
181
- 'no-lonely-if': "error";
182
- '@stylistic/no-mixed-operators': ["error", {
183
- groups: string[][];
184
- allowSamePrecedence: boolean;
185
- }];
186
- '@stylistic/no-mixed-spaces-and-tabs': "error";
187
- 'no-multi-assign': ["error"];
188
- '@stylistic/no-multiple-empty-lines': ["error", {
189
- max: number;
190
- maxBOF: number;
191
- maxEOF: number;
192
- }];
193
- 'no-negated-condition': "off";
194
- 'no-nested-ternary': "error";
195
- 'no-plusplus': "error";
196
- 'no-restricted-syntax': ["error", {
197
- selector: string;
198
- message: string;
199
- }, {
200
- selector: string;
201
- message: string;
202
- }, {
203
- selector: string;
204
- message: string;
205
- }, {
206
- selector: string;
207
- message: string;
208
- }];
209
- '@stylistic/no-tabs': "error";
210
- 'no-ternary': "off";
211
- '@stylistic/no-trailing-spaces': ["error", {
212
- skipBlankLines: boolean;
213
- ignoreComments: boolean;
214
- }];
215
- 'no-underscore-dangle': ["error", {
216
- allow: never[];
217
- allowAfterThis: boolean;
218
- allowAfterSuper: boolean;
219
- enforceInMethodNames: boolean;
220
- }];
221
- 'no-unneeded-ternary': ["error", {
222
- defaultAssignment: boolean;
223
- }];
224
- '@stylistic/no-whitespace-before-property': "error";
225
- '@stylistic/nonblock-statement-body-position': ["error", string, {
226
- overrides: {};
227
- }];
228
- '@stylistic/object-curly-spacing': ["error", string];
229
- '@stylistic/object-curly-newline': ["error", {
230
- ObjectExpression: {
231
- minProperties: number;
232
- multiline: boolean;
233
- consistent: boolean;
234
- };
235
- ObjectPattern: {
236
- minProperties: number;
237
- multiline: boolean;
238
- consistent: boolean;
239
- };
240
- ImportDeclaration: {
241
- minProperties: number;
242
- multiline: boolean;
243
- consistent: boolean;
244
- };
245
- ExportDeclaration: {
246
- minProperties: number;
247
- multiline: boolean;
248
- consistent: boolean;
249
- };
250
- }];
251
- '@stylistic/object-property-newline': ["error", {
252
- allowAllPropertiesOnSameLine: boolean;
253
- }];
254
- 'one-var': ["error", string];
255
- '@stylistic/one-var-declaration-per-line': ["error", string];
256
- 'operator-assignment': ["error", string];
257
- '@stylistic/operator-linebreak': ["error", string, {
258
- overrides: {
259
- '=': string;
260
- };
261
- }];
262
- '@stylistic/padded-blocks': ["error", {
263
- blocks: string;
264
- classes: string;
265
- switches: string;
266
- }, {
267
- allowSingleLineBlocks: boolean;
268
- }];
269
- 'prefer-exponentiation-operator': "error";
270
- 'prefer-object-spread': "error";
271
- '@stylistic/quote-props': ["error", string, {
272
- keywords: boolean;
273
- unnecessary: boolean;
274
- numbers: boolean;
275
- }];
276
- '@stylistic/quotes': ["error", string, {
277
- avoidEscape: boolean;
278
- }];
279
- '@stylistic/semi': ["error", string];
280
- '@stylistic/semi-spacing': ["error", {
281
- before: boolean;
282
- after: boolean;
283
- }];
284
- '@stylistic/semi-style': ["error", string];
285
- 'sort-keys': ["off", string, {
286
- caseSensitive: boolean;
287
- natural: boolean;
288
- }];
289
- 'sort-vars': "off";
290
- '@stylistic/space-before-blocks': "error";
291
- '@stylistic/space-before-function-paren': ["error", {
292
- anonymous: string;
293
- named: string;
294
- asyncArrow: string;
295
- }];
296
- '@stylistic/space-in-parens': ["error", string];
297
- '@stylistic/space-infix-ops': "error";
298
- '@stylistic/space-unary-ops': ["error", {
299
- words: boolean;
300
- nonwords: boolean;
301
- overrides: {};
302
- }];
303
- '@stylistic/spaced-comment': ["error", string, {
304
- line: {
305
- exceptions: string[];
306
- markers: string[];
307
- };
308
- block: {
309
- exceptions: string[];
310
- markers: string[];
311
- balanced: boolean;
312
- };
313
- }];
314
- '@stylistic/switch-colon-spacing': ["error", {
315
- after: boolean;
316
- before: boolean;
317
- }];
318
- '@stylistic/template-tag-spacing': ["error", string];
319
- 'unicode-bom': ["error", string];
320
- '@stylistic/wrap-regex': "off";
321
- };
322
- };
323
- export default _default;
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ declare const config: FlatConfig.Config;
3
+ export default config;
@@ -1,4 +1,4 @@
1
- export default {
1
+ const config = {
2
2
  name: '@snowyyd/eslint-config-x/rules/airbnb-base/style',
3
3
  rules: {
4
4
  // TODO: enable? semver-major
@@ -270,3 +270,4 @@ export default {
270
270
  '@stylistic/wrap-regex': 'off',
271
271
  },
272
272
  };
273
+ export default config;
@@ -1,34 +1,3 @@
1
- declare const _default: {
2
- name: string;
3
- rules: {
4
- 'init-declarations': "off";
5
- 'no-delete-var': "error";
6
- 'no-label-var': "error";
7
- 'no-restricted-globals': ["error", {
8
- name: string;
9
- message: string;
10
- }, {
11
- name: string;
12
- message: string;
13
- }, ...{
14
- name: "self" | "location" | "external" | "name" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "status" | "statusbar" | "stop" | "toolbar" | "top";
15
- message: string;
16
- }[]];
17
- 'no-shadow': "error";
18
- 'no-shadow-restricted-names': "error";
19
- 'no-undef': "error";
20
- 'no-undef-init': "error";
21
- 'no-undefined': "off";
22
- 'no-unused-vars': ["error", {
23
- vars: string;
24
- args: string;
25
- ignoreRestSiblings: boolean;
26
- }];
27
- 'no-use-before-define': ["error", {
28
- functions: boolean;
29
- classes: boolean;
30
- variables: boolean;
31
- }];
32
- };
33
- };
34
- export default _default;
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ declare const config: FlatConfig.Config;
3
+ export default config;
@@ -1,5 +1,5 @@
1
1
  import confusingBrowserGlobals from 'confusing-browser-globals';
2
- export default {
2
+ const config = {
3
3
  name: '@snowyyd/eslint-config-x/rules/airbnb-base/variables',
4
4
  rules: {
5
5
  'init-declarations': 'off',
@@ -30,3 +30,4 @@ export default {
30
30
  'no-use-before-define': ['error', { functions: true, classes: true, variables: true }],
31
31
  },
32
32
  };
33
+ export default config;
@@ -1,13 +1,3 @@
1
- declare const _default: {
2
- name: string;
3
- rules: {
4
- 'no-restricted-globals': ["error", {
5
- name: string;
6
- message: string;
7
- }, {
8
- name: string;
9
- message: string;
10
- }];
11
- };
12
- };
13
- export default _default;
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ declare const config: FlatConfig.Config;
3
+ export default config;
@@ -1,5 +1,5 @@
1
1
  // import variables from '../airbnb-base/variables.ts';
2
- export default {
2
+ const config = {
3
3
  name: '@snowyyd/eslint-config-x/rules/personal/shared',
4
4
  rules: {
5
5
  'no-restricted-globals': [
@@ -16,3 +16,4 @@ export default {
16
16
  ],
17
17
  },
18
18
  };
19
+ export default config;
package/package.json CHANGED
@@ -1,36 +1,35 @@
1
1
  {
2
2
  "name": "@snowyyd/eslint-config",
3
3
  "description": "Personal TypeScript ESLint configs",
4
- "version": "2.2.5",
4
+ "version": "2.2.6",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/snowyyd/eslint-config-x#readme",
7
7
  "repository": "https://github.com/snowyyd/eslint-config-x.git",
8
8
  "bugs": "https://github.com/snowyyd/eslint-config-x/issues",
9
- "author": "snowyyd <snowyyd@proton.me>",
10
9
  "license": "MIT",
11
10
  "exports": {
12
11
  "types": "./dist/index.d.ts",
13
12
  "default": "./dist/index.js"
14
13
  },
15
14
  "devDependencies": {
16
- "@eslint/config-inspector": "^1.2.0",
17
- "@eslint/js": "^9.35.0",
18
- "@stylistic/eslint-plugin": "^5.3.1",
15
+ "@eslint/config-inspector": "^1.4.2",
16
+ "@eslint/js": "^9.39.2",
17
+ "@stylistic/eslint-plugin": "^5.7.1",
19
18
  "@types/confusing-browser-globals": "^1.0.3",
20
- "@types/lodash": "^4.17.20",
21
- "@types/node": "^24.3.3",
22
- "@typescript-eslint/eslint-plugin": "^8.43.0",
23
- "@typescript-eslint/utils": "^8.43.0",
19
+ "@types/lodash": "^4.17.23",
20
+ "@types/node": "^25.2.0",
21
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
22
+ "@typescript-eslint/utils": "^8.54.0",
24
23
  "chalk": "^5.6.2",
25
24
  "confusing-browser-globals": "^1.0.11",
26
- "eslint": "^9.35.0",
25
+ "eslint": "^9.39.2",
27
26
  "eslint-plugin-import-x": "^4.16.1",
28
- "eslint-plugin-n": "^17.22.0",
29
- "globals": "^16.4.0",
30
- "lodash": "^4.17.21",
31
- "tsx": "^4.20.5",
32
- "typescript": "^5.9.2",
33
- "typescript-eslint": "^8.43.0"
27
+ "eslint-plugin-n": "^17.23.2",
28
+ "globals": "^17.3.0",
29
+ "lodash": "^4.17.23",
30
+ "tsx": "^4.21.0",
31
+ "typescript": "^5.9.3",
32
+ "typescript-eslint": "^8.54.0"
34
33
  },
35
34
  "peerDependencies": {
36
35
  "@eslint/js": "^9.35.0",