@so1ve/eslint-config 1.5.1 → 1.5.3

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.
package/dist/index.cjs CHANGED
@@ -160,6 +160,7 @@ const formatting = (options) => {
160
160
  },
161
161
  {
162
162
  rules: {
163
+ "curly": ["error", "all"],
163
164
  "so1ve/no-useless-template-string": "error",
164
165
  "so1ve/no-negated-comparison": "error",
165
166
  "so1ve/no-import-promises-as": "error",
package/dist/index.d.ts CHANGED
@@ -198,7 +198,7 @@ declare const yaml: ({ overrides }?: OptionsOverrides) => ConfigItem[];
198
198
  /**
199
199
  * Construct an array of ESLint flat config items.
200
200
  */
201
- declare function so1ve(options?: Options, ...userConfigs: (ConfigItem | ConfigItem[])[]): ConfigItem[];
201
+ declare function so1ve(options?: Options & ConfigItem, ...userConfigs: (ConfigItem | ConfigItem[])[]): ConfigItem[];
202
202
  type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
203
203
  declare const resolveSubOptions: <K extends keyof Options>(options: Options & ConfigItem, key: K) => ResolvedOptions<Options[K]>;
204
204
  declare function getOverrides<K extends keyof Options>(options: Options, key: K): any;
package/dist/index.mjs CHANGED
@@ -170,6 +170,7 @@ const formatting = (options) => {
170
170
  },
171
171
  {
172
172
  rules: {
173
+ "curly": ["error", "all"],
173
174
  "so1ve/no-useless-template-string": "error",
174
175
  "so1ve/no-negated-comparison": "error",
175
176
  "so1ve/no-import-promises-as": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-config",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
5
5
  "description": "Ray's eslint config.",
6
6
  "keywords": [
@@ -71,8 +71,8 @@
71
71
  "typescript-eslint": "^7.1.0",
72
72
  "vue-eslint-parser": "^9.4.2",
73
73
  "yaml-eslint-parser": "^1.2.2",
74
- "@so1ve/eslint-plugin": "1.5.1",
75
- "@so1ve/eslint-plugin-sort-imports": "1.5.1"
74
+ "@so1ve/eslint-plugin-sort-imports": "1.5.3",
75
+ "@so1ve/eslint-plugin": "1.5.3"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@typescript-eslint/utils": "^7.1.0",