@lincy/eslint-config 4.2.0 → 4.2.2

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
@@ -742,7 +742,7 @@ async function stylistic(options = {}) {
742
742
  jsx,
743
743
  quotes,
744
744
  semi
745
- } = typeof stylistic2 === "boolean" ? StylisticConfigDefaults : stylistic2;
745
+ } = typeof stylistic2 === "boolean" ? StylisticConfigDefaults : { ...StylisticConfigDefaults, ...stylistic2 };
746
746
  const pluginStylistic = await interopDefault(import("@stylistic/eslint-plugin"));
747
747
  const config = pluginStylistic.configs.customize({
748
748
  flat: true,
@@ -765,6 +765,8 @@ async function stylistic(options = {}) {
765
765
  "antfu/if-newline": "error",
766
766
  "antfu/top-level-function": "error",
767
767
  "curly": ["error", "multi-or-nest", "consistent"],
768
+ // 覆盖`stylistic`默认规则
769
+ "style/member-delimiter-style": ["error", { multiline: { delimiter: "none" } }],
768
770
  "style/multiline-ternary": ["error", "never"],
769
771
  ...overrides
770
772
  }
package/dist/index.js CHANGED
@@ -656,7 +656,7 @@ async function stylistic(options = {}) {
656
656
  jsx,
657
657
  quotes,
658
658
  semi
659
- } = typeof stylistic2 === "boolean" ? StylisticConfigDefaults : stylistic2;
659
+ } = typeof stylistic2 === "boolean" ? StylisticConfigDefaults : { ...StylisticConfigDefaults, ...stylistic2 };
660
660
  const pluginStylistic = await interopDefault(import("@stylistic/eslint-plugin"));
661
661
  const config = pluginStylistic.configs.customize({
662
662
  flat: true,
@@ -679,6 +679,8 @@ async function stylistic(options = {}) {
679
679
  "antfu/if-newline": "error",
680
680
  "antfu/top-level-function": "error",
681
681
  "curly": ["error", "multi-or-nest", "consistent"],
682
+ // 覆盖`stylistic`默认规则
683
+ "style/member-delimiter-style": ["error", { multiline: { delimiter: "none" } }],
682
684
  "style/multiline-ternary": ["error", "never"],
683
685
  ...overrides
684
686
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lincy/eslint-config",
3
3
  "type": "module",
4
- "version": "4.2.0",
4
+ "version": "4.2.2",
5
5
  "packageManager": "pnpm@8.7.6",
6
6
  "description": "LinCenYing's ESLint config",
7
7
  "author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",