Skip to content

Commit 9604cc2

Browse files
Lisi LinhartLisi Linhart
authored andcommitted
fix(prefer-single-store): disable this rule by default (can be enabled on demand)
1 parent 5f3074f commit 9604cc2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ To use the all configuration, extend it in your `.eslintrc` file:
7777
| Name                                  | Description | 💼 | ⚠️ |
7878
| :------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------- | :- | :- |
7979
| [prefer-single-store-per-file](docs/rules/prefer-single-store-per-file.md) | Encourages defining each store in a separate file. | | 🌐 |
80-
| [prefer-use-store-naming-convention](docs/rules/prefer-use-store-naming-convention.md) | Enforces the convention of naming stores with the prefix `use` followed by the store name. | | 🌐 |
80+
| [prefer-use-store-naming-convention](docs/rules/prefer-use-store-naming-convention.md) | Enforces the convention of naming stores with the prefix `use` followed by the store name. | | |
8181
| [require-setup-store-properties-export](docs/rules/require-setup-store-properties-export.md) | In setup stores all state properties must be exported. || 🌐 |
8282

8383
<!-- end auto-generated rules list -->

docs/rules/prefer-single-store-per-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Encourages defining each store in a separate file (`pinia/prefer-single-store-per-file`)
22

3-
⚠️ This rule _warns_ in the 🌐 `all` config.
3+
🚫 This rule is _disabled_ in the 🌐 `all` config.
44

55
<!-- end auto-generated rule header -->
66

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const createConfig = (rules: Record<string, string>) => ({
2222
const allRules = {
2323
[requireSetupStorePropsName]: 'warn',
2424
[preferNamingConventionName]: 'warn',
25-
[preferSingleStoreName]: 'warn'
25+
[preferSingleStoreName]: 'off'
2626
}
2727

2828
const recommended = {

0 commit comments

Comments
 (0)