@@ -4,27 +4,20 @@ import type { Linter } from "eslint";
44 * Rules for managing spacing within brackets.
55 */
66const config : Linter . Config = {
7- files : [ "**/*.{js,mjs,cjs,ts,jsx,tsx}" ] ,
7+ files : [ "**/*.{js,mjs,cjs,ts,jsx,tsx}" ] ,
88 rules : {
99 /**
1010 * Requires spacing inside curly braces.
1111 * Aligned with Prettier (bracketSpacing: true).
1212 * @see {@link https://eslint.org/docs/latest/rules/object-curly-spacing object-curly-spacing }
1313 */
14- "object-curly-spacing" : [ "warn" , "always" ] ,
15-
16- /**
17- * Requires spacing inside square brackets.
18- * Note: Prettier does not support this and always removes spacing for arrays.
19- * @see {@link https://eslint.org/docs/latest/rules/array-bracket-spacing array-bracket-spacing }
20- */
21- "array-bracket-spacing" : [ "warn" , "always" ] ,
14+ "object-curly-spacing" : [ "warn" , "always" ] ,
2215
2316 /**
2417 * Requires spacing inside computed properties.
2518 * @see {@link https://eslint.org/docs/latest/rules/computed-property-spacing computed-property-spacing }
2619 */
27- "computed-property-spacing" : [ "warn" , "always" ] ,
20+ "computed-property-spacing" : [ "warn" , "always" ] ,
2821
2922 /**
3023 * Requires a blank line between constants and blocks.
@@ -34,13 +27,13 @@ const config: Linter.Config = {
3427 "warn" ,
3528 {
3629 blankLine : "always" ,
37- prev : [ "const" , "let" , "var" ] ,
38- next : [ "if" , "for" , "while" , "switch" , "try" , "do" , "block" , "block-like" ]
30+ prev : [ "const" , "let" , "var" ] ,
31+ next : [ "if" , "for" , "while" , "switch" , "try" , "do" , "block" , "block-like" ]
3932 } ,
4033 {
4134 blankLine : "always" ,
42- prev : [ "if" , "for" , "while" , "switch" , "try" , "do" , "block" , "block-like" ] ,
43- next : [ "const" , "let" , "var" ]
35+ prev : [ "if" , "for" , "while" , "switch" , "try" , "do" , "block" , "block-like" ] ,
36+ next : [ "const" , "let" , "var" ]
4437 }
4538 ]
4639 }
0 commit comments