@shun-shobon/style-guide 0.1.0-next.0
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/LICENSE +22 -0
- package/README.md +53 -0
- package/dist/eslint/index.cjs +888 -0
- package/dist/eslint/index.cjs.map +1 -0
- package/dist/eslint/index.d.cts +131 -0
- package/dist/eslint/index.d.ts +131 -0
- package/dist/eslint/index.js +836 -0
- package/dist/eslint/index.js.map +1 -0
- package/dist/prettier/index.cjs +158 -0
- package/dist/prettier/index.cjs.map +1 -0
- package/dist/prettier/index.d.cts +53 -0
- package/dist/prettier/index.d.ts +53 -0
- package/dist/prettier/index.js +121 -0
- package/dist/prettier/index.js.map +1 -0
- package/package.json +82 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 NISHIZAWA Shuntaro
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# shun-shobon's Style Guide
|
|
2
|
+
|
|
3
|
+
## Introduction
|
|
4
|
+
|
|
5
|
+
This repository is a collection of style guides for web application development, which includes configs for popular tools linting and styling tools.
|
|
6
|
+
|
|
7
|
+
The following configs are available:
|
|
8
|
+
|
|
9
|
+
- [ESLint](#ESLint)
|
|
10
|
+
- [Prettier](#Prettier)
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
All of the configs are contained in one package, `@shun-shobon/style-guide`. To install:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# If you use npm
|
|
18
|
+
npm install --save-dev @shun-shobon/style-guide
|
|
19
|
+
|
|
20
|
+
# If you use yarn
|
|
21
|
+
yarn add --save-dev @shun-shobon/style-guide
|
|
22
|
+
|
|
23
|
+
# If you use pnpm
|
|
24
|
+
pnpm add --dev @shun-shobon/style-guide
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Some of the configs require peer dependencies.
|
|
28
|
+
|
|
29
|
+
## ESLint
|
|
30
|
+
|
|
31
|
+
> [!NOTE]
|
|
32
|
+
> ESLint is a peer-dependency of this package, and should be installed at the root of your project.
|
|
33
|
+
|
|
34
|
+
To use the shared ESLint config, set the following in `eslint.config.js`:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
import { shun_shobon } from "@shun-shobon/style-guide/eslint";
|
|
38
|
+
|
|
39
|
+
export default shun_shobon();
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Prettier
|
|
43
|
+
|
|
44
|
+
> [!NOTE]
|
|
45
|
+
> Prettier is a peer-dependency of this package, and should be installed at the root of your project.
|
|
46
|
+
|
|
47
|
+
To use the shared Prettier config, set the following in `prettier.config.js`:
|
|
48
|
+
|
|
49
|
+
```js
|
|
50
|
+
import { shun_shobon } from "@shun-shobon/style-guide/prettier";
|
|
51
|
+
|
|
52
|
+
export default shun_shobon();
|
|
53
|
+
```
|