@fauna/typescript
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -0,1 +1,3 @@ | ||
const eslintConfigPrettier = require("eslint-config-prettier"); | ||
// borrowed from fauna-shell | ||
@@ -35,4 +37,6 @@ const config = [ | ||
}, | ||
// this disables eslint's formatting rules that collide with prettier's | ||
eslintConfigPrettier, | ||
]; | ||
module.exports = config; | ||
module.exports = { config }; |
/** | ||
* @see https://prettier.io/docs/en/configuration.html | ||
* @see https://prettier.io/docs/en/options | ||
* @type {import("prettier").Config} | ||
*/ | ||
const config = { | ||
trailingComma: "es5", | ||
tabWidth: 4, | ||
semi: false, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
semi: true, | ||
singleQuote: false, | ||
quoteProps: "as-needed", | ||
trailingComma: "all", | ||
bracketSpacing: true, | ||
bracketSameLine: false, | ||
arrowParens: "always", | ||
proseWrap: "preserve", | ||
endOfLine: "lf", | ||
embeddedLanguageFormatting: "auto", | ||
singleAttributePerLine: false, | ||
}; | ||
module.exports = config; |
{ | ||
"name": "@fauna/typescript", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A collection of lint, format, and build configs used at Fauna for TypeScript projects.", | ||
@@ -25,2 +25,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"eslint-config-prettier": "^9.1.0", | ||
"mentions-regex": "^2.0.3", | ||
@@ -27,0 +28,0 @@ "parse-commit-message": "^5.0.4" |
@@ -7,2 +7,2 @@ # TypeScript | ||
- `.gitignore`, a minimal placeholder .gitignore file. | ||
- `prettierrc.js`, a minimal placeholder prettier config. | ||
- `prettierrc.js`, a minimal placeholder prettier config. this is a _stand-alone_ prettier config, and is used as a stand-alone; it's not integrated into eslint ([by choice](https://prettier.io/docs/en/integrating-with-linters.html)). run it before running eslint. we use [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) to remove eslint rules that collide with prettier, so prettier is authoritative on stylistic formatting. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3041
56
5
+ Addedeslint-config-prettier@9.1.0(transitive)