@antfu/eslint-config 1.0.0-beta.2 → 1.0.0-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -683,6 +683,7 @@ var javascriptStylistic = [
683
683
  },
684
684
  rules: {
685
685
  "antfu/if-newline": "error",
686
+ "antfu/consistent-object-newline": "error",
686
687
  "comma-dangle": ["error", "always-multiline"],
687
688
  "curly": ["error", "multi-or-nest", "consistent"],
688
689
  "quotes": ["error", "single"],
@@ -745,7 +746,7 @@ var javascriptStylistic = [
745
746
  "style/no-tabs": "error",
746
747
  "style/no-trailing-spaces": "error",
747
748
  "style/no-whitespace-before-property": "error",
748
- "style/object-curly-newline": ["error", { consistent: true, multiline: true }],
749
+ "style/object-curly-newline": OFF,
749
750
  "style/object-curly-spacing": ["error", "always"],
750
751
  "style/object-property-newline": ["error", { allowMultiplePropertiesPerLine: true }],
751
752
  "style/operator-linebreak": ["error", "before"],
@@ -898,6 +899,7 @@ function typescript(options) {
898
899
  "ts/no-extra-parens": ["error", "functions"],
899
900
  "ts/no-invalid-this": "error",
900
901
  "ts/no-loss-of-precision": "error",
902
+ "ts/no-invalid-void-type": OFF,
901
903
  "ts/no-non-null-assertion": OFF,
902
904
  "ts/no-redeclare": "error",
903
905
  "ts/no-require-imports": "error",
@@ -1095,8 +1097,7 @@ function vue(options = {}) {
1095
1097
  "vue/no-unused-refs": "error",
1096
1098
  "vue/no-useless-v-bind": "error",
1097
1099
  "vue/no-v-html": OFF,
1098
- "vue/no-v-text-v-html-on-component": OFF,
1099
- "vue/object-curly-newline": ["error", { consistent: true, multiline: true }],
1100
+ "vue/object-curly-newline": OFF,
1100
1101
  "vue/object-curly-spacing": ["error", "always"],
1101
1102
  "vue/object-property-newline": ["error", { allowMultiplePropertiesPerLine: true }],
1102
1103
  "vue/object-shorthand": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.2",
4
+ "version": "1.0.0-beta.3",
5
5
  "packageManager": "pnpm@8.7.6",
6
6
  "description": "Anthony's ESLint config",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -36,7 +36,7 @@
36
36
  "@typescript-eslint/eslint-plugin": "^6.7.2",
37
37
  "@typescript-eslint/parser": "^6.7.2",
38
38
  "eslint-define-config": "^1.23.0",
39
- "eslint-plugin-antfu": "^1.0.0-beta.2",
39
+ "eslint-plugin-antfu": "^1.0.0-beta.3",
40
40
  "eslint-plugin-eslint-comments": "^3.2.0",
41
41
  "eslint-plugin-i": "^2.28.1",
42
42
  "eslint-plugin-jsdoc": "^46.8.2",