@meteorlxy/prettier-config 2.3.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 +19 -0
- package/lib/index.js +67 -0
- package/package.json +28 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2020-present meteorlxy
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prettier Config
|
|
3
|
+
*
|
|
4
|
+
* @see https://prettier.io/docs/en/configuration.html
|
|
5
|
+
*/
|
|
6
|
+
module.exports = {
|
|
7
|
+
// Maximum line length
|
|
8
|
+
printWidth: 80,
|
|
9
|
+
|
|
10
|
+
// Specify the number of spaces per indentation-level
|
|
11
|
+
tabWidth: 2,
|
|
12
|
+
|
|
13
|
+
// Indent lines with tabs instead of spaces
|
|
14
|
+
useTabs: false,
|
|
15
|
+
|
|
16
|
+
// Use semicolons or not
|
|
17
|
+
semi: true,
|
|
18
|
+
|
|
19
|
+
// Use single quotes instead of double quotes
|
|
20
|
+
singleQuote: true,
|
|
21
|
+
|
|
22
|
+
// Change when properties in objects are quoted
|
|
23
|
+
quoteProps: 'consistent',
|
|
24
|
+
|
|
25
|
+
// Use single quotes instead of double quotes in JSX
|
|
26
|
+
jsxSingleQuote: false,
|
|
27
|
+
|
|
28
|
+
// Print trailing commas wherever possible when multi-line
|
|
29
|
+
trailingComma: 'all',
|
|
30
|
+
|
|
31
|
+
// Print spaces between brackets in object literals.
|
|
32
|
+
bracketSpacing: true,
|
|
33
|
+
|
|
34
|
+
// Put the `>` of a multi-line HTML element at the end of the last line instead of being alone on the next line (does not apply to self closing elements)
|
|
35
|
+
bracketSameLine: false,
|
|
36
|
+
|
|
37
|
+
// Include parentheses around a sole arrow function parameter
|
|
38
|
+
arrowParens: 'always',
|
|
39
|
+
|
|
40
|
+
// Format only a segment of a file.
|
|
41
|
+
rangeStart: 0,
|
|
42
|
+
rangeEnd: Infinity,
|
|
43
|
+
|
|
44
|
+
// Specify which parser to use.
|
|
45
|
+
// parser: undefined,
|
|
46
|
+
|
|
47
|
+
// Specify the file name to use to infer which parser to use.
|
|
48
|
+
// filepath: undefined,
|
|
49
|
+
|
|
50
|
+
// Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file.
|
|
51
|
+
requirePragma: false,
|
|
52
|
+
|
|
53
|
+
// Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier.
|
|
54
|
+
insertPragma: false,
|
|
55
|
+
|
|
56
|
+
// By default, Prettier will wrap markdown text as-is since some services use a line-break-sensitive renderer, e.g. GitHub comment and BitBucket.
|
|
57
|
+
proseWrap: 'preserve',
|
|
58
|
+
|
|
59
|
+
// Specify the global whitespace sensitivity for HTML files
|
|
60
|
+
htmlWhitespaceSensitivity: 'css',
|
|
61
|
+
|
|
62
|
+
// Whether or not to indent the code inside <script> and <style> tags in Vue files
|
|
63
|
+
vueIndentScriptAndStyle: false,
|
|
64
|
+
|
|
65
|
+
// End of line
|
|
66
|
+
endOfLine: 'lf',
|
|
67
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@meteorlxy/prettier-config",
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"description": "meteorlxy prettier config",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"config",
|
|
7
|
+
"prettier",
|
|
8
|
+
"meteorlxy"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/meteorlxy/configs",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/meteorlxy/configs.git"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "meteorlxy <meteor.lxy@foxmail.com>",
|
|
17
|
+
"main": "lib/index.js",
|
|
18
|
+
"directories": {
|
|
19
|
+
"lib": "lib"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"lib"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"gitHead": "74b669690d606d9fe05ba78383b53725db228b40"
|
|
28
|
+
}
|