Skip to content

Commit 0eea581

Browse files
committed
fix: correct configuration structure for legacy and flat rules in createConfigs function
1 parent 68e7c1a commit 0eea581

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://img.shields.io/github/actions/workflow/status/andrewmolyuk/eslint-plugin-vue-modular/release.yml)](https://github.com/andrewmolyuk/eslint-plugin-vue-modular/actions/workflows/release.yml)
44
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/819ccf509a694fcc8204bca4a78c634d)](https://app.codacy.com/gh/andrewmolyuk/eslint-plugin-vue-modular/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
5+
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/819ccf509a694fcc8204bca4a78c634d)](https://app.codacy.com/gh/andrewmolyuk/eslint-plugin-vue-modular/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
56
[![Issues](https://img.shields.io/github/issues/andrewmolyuk/eslint-plugin-vue-modular)](https://github.com/andrewmolyuk/eslint-plugin-vue-modular/issues)
67
[![NPM downloads](https://img.shields.io/npm/dw/eslint-plugin-vue-modular.svg?style=flat)](https://www.npmjs.com/package/eslint-plugin-vue-modular)
78
[![semantic-release: conventional](https://img.shields.io/badge/semantic--release-conventional-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
@@ -66,7 +67,7 @@ export default [...vueModular.configs.recommended]
6667
```javascript
6768
// .eslintrc.js
6869
module.exports = {
69-
extends: ['plugin:vue-modular/legacy-all'],
70+
extends: ['plugin:vue-modular/legacy/all'],
7071
}
7172
```
7273

src/configs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const createConfigs = (plugin) => {
1919
}
2020

2121
return {
22-
'flat/recommended': [{ ...flatPluginBlock, rules: recommendedRules }],
23-
'flat/all': [{ ...flatPluginBlock, rules: allRules }],
24-
recommended: { ...legacyPluginBlock, rules: recommendedRules },
25-
all: { ...legacyPluginBlock, rules: allRules },
22+
recommended: [{ ...flatPluginBlock, rules: recommendedRules }],
23+
all: [{ ...flatPluginBlock, rules: allRules }],
24+
'legacy/recommended': { ...legacyPluginBlock, rules: recommendedRules },
25+
'legacy/all': { ...legacyPluginBlock, rules: allRules },
2626
}
2727
}
2828

0 commit comments

Comments
 (0)