@coderwyd/eslint-config 4.10.1 → 4.10.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/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.2";
13
13
  var devDependencies = {
14
14
  "@eslint-react/eslint-plugin": "catalog:peer",
15
15
  "@eslint/config-inspector": "catalog:dev",
package/dist/index.mjs CHANGED
@@ -1612,6 +1612,25 @@ async function vue(options = {}) {
1612
1612
  };
1613
1613
  }, {});
1614
1614
  return [{
1615
+ languageOptions: { globals: {
1616
+ computed: "readonly",
1617
+ defineEmits: "readonly",
1618
+ defineExpose: "readonly",
1619
+ defineProps: "readonly",
1620
+ onMounted: "readonly",
1621
+ onUnmounted: "readonly",
1622
+ reactive: "readonly",
1623
+ ref: "readonly",
1624
+ shallowReactive: "readonly",
1625
+ shallowRef: "readonly",
1626
+ toRef: "readonly",
1627
+ toRefs: "readonly",
1628
+ watch: "readonly",
1629
+ watchEffect: "readonly"
1630
+ } },
1631
+ name: "coderwyd/vue/setup",
1632
+ plugins: { vue: pluginVue }
1633
+ }, {
1615
1634
  files,
1616
1635
  languageOptions: {
1617
1636
  parser: parserVue,
@@ -1623,7 +1642,6 @@ async function vue(options = {}) {
1623
1642
  }
1624
1643
  },
1625
1644
  name: "coderwyd/vue/rules",
1626
- plugins: { vue: pluginVue },
1627
1645
  processor: pluginVue.processors[".vue"],
1628
1646
  rules: {
1629
1647
  ...pluginVue.configs["flat/base"].rules,
@@ -1650,10 +1668,14 @@ async function vue(options = {}) {
1650
1668
  "defineEmits",
1651
1669
  "defineSlots"
1652
1670
  ] }],
1671
+ "vue/dot-location": ["error", "property"],
1672
+ "vue/dot-notation": ["error", { allowKeywords: true }],
1653
1673
  "vue/eqeqeq": ["error", "smart"],
1674
+ "vue/html-quotes": ["error", "double"],
1654
1675
  "vue/max-attributes-per-line": "off",
1655
1676
  "vue/multi-word-component-names": "off",
1656
1677
  "vue/no-constant-condition": "warn",
1678
+ "vue/no-dupe-keys": "off",
1657
1679
  "vue/no-duplicate-attr-inheritance": "warn",
1658
1680
  "vue/no-empty-pattern": "error",
1659
1681
  "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.2",
5
5
  "description": "Donny's ESLint config",
6
6
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
7
7
  "license": "MIT",