Skip to content

Commit f4d498a

Browse files
committed
feat(stylelint-config): Change package name
1 parent 54c0ace commit f4d498a

File tree

6 files changed

+15
-20
lines changed

6 files changed

+15
-20
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The main scripts used during development are:
8181

8282
- Code according to[Prettier](/prettier.config.js) and the following ESLint rules:
8383
- **eslint-config-moneyforward**: [eslint.config.mjs](/packages/eslint-config/eslint.config.mjs)
84-
- **@moneyforward/stylelint-config**: [stylelint.config.js](/packages/stylelint-config/eslint.config.js)
84+
- **stylelint-config-moneyforward**: [stylelint.config.js](/packages/stylelint-config/eslint.config.js)
8585
- Keep your code in a consistent style.
8686

8787
### Testing

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Money Forward's frontend tools as an extensible shared config.
55
| Package | Workspace |
66
| ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
77
| [eslint-config-moneyforward - npm](https://www.npmjs.com/package/eslint-config-moneyforward) | [/packages/eslint-config](/packages/eslint-config/) |
8-
| [@moneyforward/stylelint-config - npm](https://www.npmjs.com/package/@moneyforward/stylelint-config) | [/packages/stylelint-config](/packages/stylelint-config/) |
8+
| [stylelint-config-moneyforward - npm](https://www.npmjs.com/package/stylelint-config-moneyforward) | [/packages/stylelint-config](/packages/stylelint-config/) |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"format": "prettier -c './**/*.@(js|cjs|ts|tsx|md)' -w",
1515
"eslint-config": " pnpm -F 'eslint-config-moneyforward'",
16-
"stylelint-config": "pnpm -F '@moneyforward/stylelint-config'"
16+
"stylelint-config": "pnpm -F 'stylelint-config-moneyforward'"
1717
},
1818
"repository": {
1919
"type": "git",

packages/stylelint-config/CHANGELOG.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/stylelint-config/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @moneyforward/stylelint-config
1+
# stylelint-config-moneyforward
22

33
The Stylelint rules of Money Forward, Inc as an extensible shared config.
44

@@ -7,7 +7,7 @@ The Stylelint rules of Money Forward, Inc as an extensible shared config.
77
### 1. Install dependencies (and peer dependencies)
88

99
```bash
10-
npm install --save-dev stylelint @moneyforward/stylelint-config
10+
npm install --save-dev stylelint stylelint-config-moneyforward
1111
```
1212

1313
### 2. Configure Stylelint
@@ -16,16 +16,16 @@ Within your Stylelint config file (`stylelint.config.js` or `.stylelintrc.js`):
1616

1717
```js
1818
export default {
19-
extends: ['@moneyforward/stylelint-config/essentials'],
19+
extends: ['stylelint-config-moneyforward/essentials'],
2020
};
2121
```
2222

2323
If you need CSS Modules support:
2424

2525
```diff
2626
export default {
27-
- extends: ['@moneyforward/stylelint-config/essentials'],
28-
+ extends: ['@moneyforward/stylelint-config/essentials', '@moneyforward/stylelint-config/css-modules'],
27+
- extends: ['stylelint-config-moneyforward/essentials'],
28+
+ extends: ['stylelint-config-moneyforward/essentials', 'stylelint-config-moneyforward/css-modules'],
2929
};
3030
```
3131

@@ -36,9 +36,9 @@ We also provide various other rule sets that you can configure to suit your proj
3636
```json
3737
{
3838
"extends": [
39-
"@moneyforward/stylelint-config/essentials",
40-
"@moneyforward/stylelint-config/css-modules",
41-
"@moneyforward/stylelint-config/scss"
39+
"stylelint-config-moneyforward/essentials",
40+
"stylelint-config-moneyforward/css-modules",
41+
"stylelint-config-moneyforward/scss"
4242
]
4343
}
4444
```
@@ -57,7 +57,7 @@ If the value of a rule does not suit you, specify that rule in the "rules" secti
5757

5858
```diff
5959
export default {
60-
extends: ['@moneyforward/stylelint-config/essentials'],
60+
extends: ['stylelint-config-moneyforward/essentials'],
6161
+ rules: {
6262
+ value-keyword-case': null,
6363
+ },
@@ -66,7 +66,7 @@ export default {
6666

6767
## Migrate from an existing configuration
6868

69-
@moneyforward/stylelint-config contains various plugins related to different rule sets. Therefore, users don't need to install them separately. If you have installed them in your existing configuration, we recommend uninstalling them.
69+
stylelint-config-moneyforward contains various plugins related to different rule sets. Therefore, users don't need to install them separately. If you have installed them in your existing configuration, we recommend uninstalling them.
7070

7171
```bash
7272
npm uninstall stylelint-config-standard \

packages/stylelint-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@moneyforward/stylelint-config",
3-
"version": "1.0.0",
2+
"name": "stylelint-config-moneyforward",
3+
"version": "0.1.0",
44
"description": "Money Forward's Stylelint rules as an extensible shared config.",
55
"type": "module",
66
"exports": {

0 commit comments

Comments
 (0)