@favorodera/eslint-config 0.0.12 → 0.0.14

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
@@ -81,7 +81,9 @@ bun add -D eslint @favorodera/eslint-config
81
81
 
82
82
  ### Configure
83
83
 
84
- Create an `eslint.config.ts` file in the root of your project. Since all configurations are enabled by default, you only need to pass options if you want to disable or customize something:
84
+ Create an `eslint.config.ts` file in the root of your project. Since all configurations are enabled by default, you only need to pass options if you want to disable or customize something.
85
+
86
+ The `factory()` function returns a `FlatConfigComposer` instance (powered by [`eslint-flat-config-utils`](https://github.com/antfu/eslint-flat-config-utils)), which acts as a powerful composer. This makes it incredibly easy to append your own configurations, override existing rules, or insert plugins seamlessly.
85
87
 
86
88
  ```ts
87
89
  import { factory } from '@favorodera/eslint-config'
@@ -100,6 +102,19 @@ export default factory({
100
102
  // Example: Disable tailwind if you aren't using it
101
103
  tailwind: false,
102
104
  })
105
+ // You can seamlessly chain methods to compose your config
106
+ .append({
107
+ // Add your own custom ESLint configs
108
+ ignores: ['src/types/rules.d.ts'],
109
+ })
110
+ .overrides({
111
+ // Easily override predefined rules by their name
112
+ 'favorodera/typescript/rules': {
113
+ rules: {
114
+ 'ts/no-explicit-any': 'off',
115
+ },
116
+ },
117
+ })
103
118
  ```
104
119
 
105
120
  ## Development
package/dist/index.mjs CHANGED
@@ -1286,7 +1286,6 @@ async function vue(options) {
1286
1286
  "vue/prefer-single-event-payload": "error",
1287
1287
  "vue/prefer-use-template-ref": "error",
1288
1288
  "vue/require-explicit-slots": "error",
1289
- "vue/require-macro-variable-name": "error",
1290
1289
  "vue/slot-name-casing": ["error", "kebab-case"],
1291
1290
  "vue/v-for-delimiter-style": ["error", "in"],
1292
1291
  ...resolved.overrides
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@favorodera/eslint-config",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.14",
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>",