Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
43 changes: 43 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#-------------------------------------------------------------------------------------------------------------------
# Keep this section in sync with .gitignore
#-------------------------------------------------------------------------------------------------------------------

👋 (copy + paste your .gitignore file contents here) 👋

#-------------------------------------------------------------------------------------------------------------------
# Prettier-specific overrides
#-------------------------------------------------------------------------------------------------------------------

# Rush files
common/changes/
common/scripts/
common/config/
common/rush/
common/temp/

CHANGELOG.*

# Package manager files
pnpm-lock.yaml
yarn.lock
package-lock.json
shrinkwrap.json

# Build outputs
dist
lib
docs
docusaurus
xchangelog

# Prettier reformats code blocks inside Markdown, which affects rendered output
*.md

# Others

.vscode
.github

node_modules
.eslintrc
*.html
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
printWidth: 100,
trailingComma: "none"
};
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ We appreciate any help you can offer. Please follow the guidelines on styling an

#### Styling

We are using [prettier] to format all our code with only one custom setting: `--print-width 100`. We are switching to version 2.
We are using [prettier] to format all our code with below simple configuration. We are using version 2 for prettier.
```js
module.exports = {
printWidth: 100,
trailingComma: "none"
};
```

> If you are making changes to a file that has not been updated yet, please commit the format first before making your changes.

Expand Down
6 changes: 2 additions & 4 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
extends: [
'@commitlint/config-conventional'
]
}
extends: ["@commitlint/config-conventional"]
};
Loading