@nokken65/prettier-config 1.0.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.
@@ -0,0 +1,21 @@
1
+ node_modules
2
+ dist
3
+ build
4
+ logs
5
+ coverage
6
+ .next
7
+ .turbo
8
+ .github
9
+ .angular
10
+ .svelte-kit
11
+ .vscode
12
+ *.log*
13
+ *.log
14
+ *.lock
15
+ *.sh
16
+ *.svg
17
+ *rc.*
18
+ *.htm
19
+ *.html
20
+ *.md
21
+ .*ignore
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/prettierrc",
3
+ "tabWidth": 2,
4
+ "printWidth": 80,
5
+ "semi": false,
6
+ "useTabs": false,
7
+ "singleQuote": true,
8
+ "bracketSpacing": true,
9
+ "bracketSameLine": false,
10
+ "singleAttributePerLine": true,
11
+ "arrowParens": "always",
12
+ "trailingComma": "none",
13
+ "quoteProps": "as-needed",
14
+ "endOfLine": "lf",
15
+ "overrides": [
16
+ {
17
+ "files": ".*rc",
18
+ "options": {
19
+ "parser": "json"
20
+ }
21
+ }
22
+ ],
23
+ "plugins": ["@ianvs/prettier-plugin-sort-imports"],
24
+ "importOrder": [
25
+ "<BUILTIN_MODULES>",
26
+ "^(react|next(.*))$",
27
+ "<THIRD_PARTY_MODULES>",
28
+ "<TYPES>",
29
+ "",
30
+ "^@/(.*)$",
31
+ "^~/(.*)$",
32
+ "",
33
+ "^[./]",
34
+ "<TYPES>^[.]",
35
+ "^(.*)(sass|css|scss)$"
36
+ ],
37
+ "importOrderParserPlugins": ["classProperties", "decorators-legacy", "jsx", "typescript"]
38
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Denis Ermolin
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.
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # `@nokken65/prettier-config`
2
+
3
+ > Here is my personal [Prettier](https://prettier.io) config.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @nokken65/prettier-config -D
9
+ ```
10
+
11
+ ```sh
12
+ yarn add @nokken65/prettier-config -D
13
+ ```
14
+
15
+ ```sh
16
+ pnpm add @nokken65/prettier-config -D
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```js
22
+ // .prettierrc.cjs
23
+ module.exports = require('@nokken65/prettier-config')
24
+ ```
25
+
26
+ ### Copy the ignore file to your project folder
27
+
28
+ If you want to extend the ignore file, copy `node_modules/@nokken65/prettier-config/.prettierignore` to the root of your project folder:
29
+
30
+ ### Scripts
31
+
32
+ Some commonly used scripts in `package.json`.
33
+
34
+ ```json
35
+ {
36
+ "scripts": {
37
+ "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json}\""
38
+ }
39
+ }
40
+ ```
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@nokken65/prettier-config",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "description": "prettier config",
7
+ "main": "./.prettierrc.json",
8
+ "prettier": "./.prettierrc.json",
9
+ "files": [
10
+ ".prettierignore",
11
+ ".prettierrc.cjs",
12
+ ".prettierrc.json"
13
+ ],
14
+ "scripts": {
15
+ "format": "prettier --write '**/*.{js,jsx,ts,tsx,json}'"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/nokken65/prettier-config.git"
20
+ },
21
+ "author": {
22
+ "name": "Denis Ermolin"
23
+ },
24
+ "license": "MIT",
25
+ "bugs": {
26
+ "url": "https://github.com/nokken65/prettier-config/issues"
27
+ },
28
+ "homepage": "https://github.com/nokken65/prettier-config#readme",
29
+ "keywords": [
30
+ "prettier",
31
+ "config"
32
+ ],
33
+ "devDependencies": {
34
+ "@ianvs/prettier-plugin-sort-imports": "4.1.0",
35
+ "prettier": "3.0.2"
36
+ },
37
+ "peerDependencies": {
38
+ "@ianvs/prettier-plugin-sort-imports": "4.1.0",
39
+ "prettier": "3.0.2"
40
+ }
41
+ }