@ngneers/prettier-config 1.0.0 → 1.0.1
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/index.js +20 -0
- package/package.json +17 -16
- package/.prettierrc.json +0 -14
package/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://prettier.io/docs/configuration
|
|
3
|
+
* @type {import("prettier").Config}
|
|
4
|
+
*/
|
|
5
|
+
const config = {
|
|
6
|
+
trailingComma: 'es5',
|
|
7
|
+
tabWidth: 2,
|
|
8
|
+
semi: true,
|
|
9
|
+
singleQuote: true,
|
|
10
|
+
printWidth: 100,
|
|
11
|
+
useTabs: false,
|
|
12
|
+
arrowParens: 'avoid',
|
|
13
|
+
jsxBracketSameLine: true,
|
|
14
|
+
jsxSingleQuote: true,
|
|
15
|
+
htmlWhitespaceSensitivity: 'css',
|
|
16
|
+
endOfLine: 'auto',
|
|
17
|
+
bracketSpacing: true,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ngneers/prettier-config",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"homepage": "https://https://github.com/NGneers/dev",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/NGneers/dev.git"
|
|
8
|
-
},
|
|
9
|
-
"description": "Prettier configuration for projects in the NGneers Github organization",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ngneers/prettier-config",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"homepage": "https://https://github.com/NGneers/dev",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/NGneers/dev.git"
|
|
8
|
+
},
|
|
9
|
+
"description": "Prettier configuration for projects in the NGneers Github organization",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": "./index.js",
|
|
12
|
+
"author": "NGneers",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"prettier": ">= 3"
|
|
16
|
+
}
|
|
17
|
+
}
|
package/.prettierrc.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"trailingComma": "es5",
|
|
3
|
-
"tabWidth": 2,
|
|
4
|
-
"semi": true,
|
|
5
|
-
"singleQuote": true,
|
|
6
|
-
"printWidth": 100,
|
|
7
|
-
"useTabs": false,
|
|
8
|
-
"arrowParens": "avoid",
|
|
9
|
-
"jsxBracketSameLine": true,
|
|
10
|
-
"jsxSingleQuote": true,
|
|
11
|
-
"htmlWhitespaceSensitivity": "css",
|
|
12
|
-
"endOfLine": "auto",
|
|
13
|
-
"bracketSpacing": true
|
|
14
|
-
}
|