@jiakun-zhao/eslint-config 4.0.9 → 4.0.10

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.mjs +39 -5
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -373,7 +373,7 @@ function jsonc() {
373
373
  ];
374
374
  }
375
375
 
376
- const version = "4.0.9";
376
+ const version = "4.0.10";
377
377
 
378
378
  const name$3 = "astro-multi-top-level-element-indent";
379
379
  const _astroMultiTopLevelElementIndent = createRule({
@@ -874,19 +874,29 @@ function unicorn() {
874
874
  },
875
875
  rules: {
876
876
  "unicorn/consistent-empty-array-spread": "warn",
877
+ "unicorn/empty-brace-spaces": "warn",
877
878
  "unicorn/error-message": "warn",
878
879
  "unicorn/escape-case": "warn",
880
+ "unicorn/explicit-length-check": "warn",
879
881
  "unicorn/new-for-builtins": "warn",
880
882
  "unicorn/no-instanceof-builtins": "warn",
883
+ "unicorn/no-negation-in-equality-check": "warn",
881
884
  "unicorn/no-new-array": "warn",
882
885
  "unicorn/no-new-buffer": "warn",
886
+ "unicorn/no-useless-length-check": "warn",
883
887
  "unicorn/number-literal-case": "warn",
888
+ "unicorn/prefer-array-flat-map": "warn",
884
889
  "unicorn/prefer-dom-node-text-content": "warn",
885
890
  "unicorn/prefer-includes": "warn",
891
+ "unicorn/prefer-logical-operator-over-ternary": "warn",
886
892
  "unicorn/prefer-node-protocol": "warn",
887
893
  "unicorn/prefer-number-properties": "warn",
888
894
  "unicorn/prefer-string-starts-ends-with": "warn",
895
+ "unicorn/prefer-string-trim-start-end": "warn",
896
+ "unicorn/prefer-ternary": "warn",
889
897
  "unicorn/prefer-type-error": "warn",
898
+ "unicorn/string-content": "warn",
899
+ "unicorn/switch-case-braces": "warn",
890
900
  "unicorn/throw-new-error": "warn"
891
901
  }
892
902
  };
@@ -916,7 +926,7 @@ function unusedImports() {
916
926
 
917
927
  async function vue() {
918
928
  const pluginVue = await findDynamicPlugin("eslint-plugin-vue");
919
- return pluginVue && {
929
+ return pluginVue && [{
920
930
  files: [
921
931
  "**/*.vue"
922
932
  ],
@@ -996,16 +1006,40 @@ async function vue() {
996
1006
  "vue/require-macro-variable-name": "warn",
997
1007
  "vue/require-typed-ref": "warn",
998
1008
  "vue/slot-name-casing": ["warn", "kebab-case"],
999
- "vue/static-class-names-order": "warn",
1009
+ // 'vue/static-class-names-order': 'warn',
1000
1010
  // 'vue/v-bind-style': ['warn', 'shorthand', { sameNameShorthand: 'always' }],
1001
1011
  "vue/v-bind-style": "warn",
1002
1012
  "vue/v-for-delimiter-style": ["warn", "of"],
1003
1013
  "vue/v-on-event-hyphenation": "warn",
1004
- "vue/v-on-handler-style": "warn",
1014
+ // 'vue/v-on-handler-style': 'warn',
1005
1015
  "vue/v-on-style": "warn",
1006
1016
  "vue/v-slot-style": "warn"
1007
1017
  }
1008
- };
1018
+ }, {
1019
+ files: [
1020
+ "**/*.vue"
1021
+ ],
1022
+ name: "vue/extension",
1023
+ rules: {
1024
+ "vue/array-bracket-newline": ["warn", "consistent"],
1025
+ "vue/array-bracket-spacing": "warn",
1026
+ "vue/arrow-spacing": "warn",
1027
+ "vue/block-spacing": "warn",
1028
+ "vue/comma-dangle": ["warn", "always-multiline"],
1029
+ "vue/comma-spacing": "warn",
1030
+ "vue/comma-style": "warn",
1031
+ "vue/key-spacing": "warn",
1032
+ "vue/keyword-spacing": "warn",
1033
+ "vue/no-multi-spaces": "warn",
1034
+ "vue/object-curly-newline": ["warn", { consistent: true }],
1035
+ "vue/object-curly-spacing": ["warn", "always"],
1036
+ "vue/operator-linebreak": ["warn", "before"],
1037
+ "vue/quote-props": ["warn", "consistent-as-needed"],
1038
+ "vue/space-in-parens": "warn",
1039
+ "vue/space-infix-ops": "warn",
1040
+ "vue/space-unary-ops": "warn"
1041
+ }
1042
+ }];
1009
1043
  }
1010
1044
 
1011
1045
  function index(options = {}) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jiakun-zhao/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.9",
4
+ "version": "4.0.10",
5
5
  "description": "Jiakun Zhao's ESLint config.",
6
6
  "author": "Jiakun Zhao <hi@zhaojiakun.com>",
7
7
  "license": "MIT",