@favorodera/eslint-config 0.0.8 → 0.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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <p>
5
5
  <a href="https://github.com/favorodera/eslint-config/blob/main/LICENSE"><img src="https://img.shields.io/github/license/favorodera/eslint-config.svg?style=plastic&label=License&color=blue" alt="License"></a>
6
6
  <a href="https://github.com/favorodera/eslint-config/stargazers"><img src="https://img.shields.io/github/stars/favorodera/eslint-config.svg?style=plastic&label=Stars&color=blue" alt="GitHub Stars"></a>
7
- <a href="https://www.npmjs.com/package/@favorodera/eslint-config"><img src="https://img.shields.io/npm/v/@favorodera/eslint-config.svg?style=plastic&label=Version&color=blue" alt="NPM Version"></a>
7
+ <a href="https://npmx.dev/package/@favorodera/eslint-config"><img src="https://img.shields.io/npm/v/@favorodera/eslint-config.svg?style=plastic&label=Version&color=blue" alt="NPM Version"></a>
8
8
  </p>
9
9
  </div>
10
10
 
@@ -87,7 +87,7 @@ import { factory } from '@favorodera/eslint-config'
87
87
 
88
88
  export default factory({
89
89
  // All configs are true by default!
90
-
90
+
91
91
  // Example: Customize specific rulesets
92
92
  stylistic: {
93
93
  settings: {
package/dist/index.mjs CHANGED
@@ -949,6 +949,7 @@ const stylisticDefaults = {
949
949
  vueGlob
950
950
  ],
951
951
  settings: {
952
+ braceStyle: "1tbs",
952
953
  experimental: false,
953
954
  indent: 2,
954
955
  jsx: false,
@@ -977,27 +978,24 @@ async function stylistic(options) {
977
978
  name: "favorodera/stylistic/rules",
978
979
  rules: {
979
980
  ...baseRules,
980
- "style/brace-style": "off",
981
- "style/generator-star-spacing": ["error", {
982
- after: true,
983
- before: false
984
- }],
985
- "style/no-multiple-empty-lines": ["error", {
986
- max: 2,
987
- maxBOF: 0,
988
- maxEOF: 2
989
- }],
990
- "style/no-trailing-spaces": ["error", { skipBlankLines: true }],
991
- "style/padded-blocks": "off",
992
- "style/quotes": [
993
- "error",
994
- "single",
995
- { avoidEscape: true }
996
- ],
997
- "style/yield-star-spacing": ["error", {
998
- after: true,
999
- before: false
1000
- }],
981
+ "style/array-bracket-newline": "error",
982
+ "style/array-element-newline": "error",
983
+ "style/curly-newline": ["error", "always"],
984
+ "style/function-call-argument-newline": ["error", "consistent"],
985
+ "style/function-call-spacing": "error",
986
+ "style/function-paren-newline": "error",
987
+ "style/implicit-arrow-linebreak": "error",
988
+ "style/line-comment-position": "error",
989
+ "style/linebreak-style": "error",
990
+ "style/multiline-comment-style": "error",
991
+ "style/newline-per-chained-call": "error",
992
+ "style/no-confusing-arrow": "error",
993
+ "style/no-extra-semi": "error",
994
+ "style/nonblock-statement-body-position": "error",
995
+ "style/object-curly-newline": "error",
996
+ "style/semi-style": "error",
997
+ "style/switch-colon-spacing": "error",
998
+ "style/wrap-regex": "error",
1001
999
  ...resolved.overrides
1002
1000
  }
1003
1001
  }];
@@ -1034,7 +1032,19 @@ async function tailwind(options) {
1034
1032
  name: "favorodera/tailwind/rules",
1035
1033
  rules: {
1036
1034
  ...renamePluginsInRules(baseRules, { "better-tailwindcss": "tailwind" }),
1035
+ "tailwind/enforce-consistent-class-order": ["error", {
1036
+ componentClassOrder: "asc",
1037
+ componentClassPosition: "start",
1038
+ order: "strict",
1039
+ unknownClassOrder: "asc",
1040
+ unknownClassPosition: "start"
1041
+ }],
1042
+ "tailwind/enforce-consistent-important-position": "off",
1037
1043
  "tailwind/enforce-consistent-line-wrapping": ["error", { group: "emptyLine" }],
1044
+ "tailwind/enforce-consistent-variable-syntax": "off",
1045
+ "tailwind/enforce-consistent-variant-order": "error",
1046
+ "tailwind/enforce-logical-properties": "error",
1047
+ "tailwind/enforce-shorthand-classes": "off",
1038
1048
  ...resolved.overrides
1039
1049
  }
1040
1050
  }];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@favorodera/eslint-config",
3
3
  "type": "module",
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "private": false,
6
6
  "description": "Opinionated, type-safe flat ESLint configuration factory for Vue, TypeScript, Tailwind, and more.",
7
7
  "author": "Favour Emeka <favorodera@gmail.com>",