@coderwyd/eslint-config 4.10.1 → 4.10.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/cli.mjs CHANGED
@@ -9,7 +9,7 @@ import prompts from "prompts";
9
9
  import { execSync } from "node:child_process";
10
10
 
11
11
  //#region package.json
12
- var version = "4.10.1";
12
+ var version = "4.10.3";
13
13
  var devDependencies = {
14
14
  "@eslint-react/eslint-plugin": "catalog:peer",
15
15
  "@eslint/config-inspector": "catalog:dev",
package/dist/index.mjs CHANGED
@@ -646,12 +646,13 @@ async function pnpm() {
646
646
 
647
647
  //#endregion
648
648
  //#region src/configs/prettier.ts
649
- const { rules: eslintRules } = prettierRules;
649
+ const rules = prettierRules.rules;
650
+ delete rules["vue/html-self-closing"];
650
651
  function prettier() {
651
652
  return [{
652
653
  name: "coderwyd/prettier/rules",
653
654
  rules: {
654
- ...eslintRules,
655
+ ...rules,
655
656
  "arrow-body-style": "off",
656
657
  "prefer-arrow-callback": "off"
657
658
  }
@@ -1612,6 +1613,25 @@ async function vue(options = {}) {
1612
1613
  };
1613
1614
  }, {});
1614
1615
  return [{
1616
+ languageOptions: { globals: {
1617
+ computed: "readonly",
1618
+ defineEmits: "readonly",
1619
+ defineExpose: "readonly",
1620
+ defineProps: "readonly",
1621
+ onMounted: "readonly",
1622
+ onUnmounted: "readonly",
1623
+ reactive: "readonly",
1624
+ ref: "readonly",
1625
+ shallowReactive: "readonly",
1626
+ shallowRef: "readonly",
1627
+ toRef: "readonly",
1628
+ toRefs: "readonly",
1629
+ watch: "readonly",
1630
+ watchEffect: "readonly"
1631
+ } },
1632
+ name: "coderwyd/vue/setup",
1633
+ plugins: { vue: pluginVue }
1634
+ }, {
1615
1635
  files,
1616
1636
  languageOptions: {
1617
1637
  parser: parserVue,
@@ -1623,7 +1643,6 @@ async function vue(options = {}) {
1623
1643
  }
1624
1644
  },
1625
1645
  name: "coderwyd/vue/rules",
1626
- plugins: { vue: pluginVue },
1627
1646
  processor: pluginVue.processors[".vue"],
1628
1647
  rules: {
1629
1648
  ...pluginVue.configs["flat/base"].rules,
@@ -1650,10 +1669,14 @@ async function vue(options = {}) {
1650
1669
  "defineEmits",
1651
1670
  "defineSlots"
1652
1671
  ] }],
1672
+ "vue/dot-location": ["error", "property"],
1673
+ "vue/dot-notation": ["error", { allowKeywords: true }],
1653
1674
  "vue/eqeqeq": ["error", "smart"],
1675
+ "vue/html-quotes": ["error", "double"],
1654
1676
  "vue/max-attributes-per-line": "off",
1655
1677
  "vue/multi-word-component-names": "off",
1656
1678
  "vue/no-constant-condition": "warn",
1679
+ "vue/no-dupe-keys": "off",
1657
1680
  "vue/no-duplicate-attr-inheritance": "warn",
1658
1681
  "vue/no-empty-pattern": "error",
1659
1682
  "vue/no-extra-parens": ["error", "functions"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderwyd/eslint-config",
3
3
  "type": "module",
4
- "version": "4.10.1",
4
+ "version": "4.10.3",
5
5
  "description": "Donny's ESLint config",
6
6
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
7
7
  "license": "MIT",