This repository has been archived by the owner on Jan 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EDA] Prettier linting github actions excluding linting JS files (#1486)
- Loading branch information
Showing
31 changed files
with
35,175 additions
and
37,505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Formatting | ||
on: [push] | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '14' | ||
- name: prettier | ||
run: | | ||
npx prettier "**/*.{html,md,yml,yaml,json}" --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Development dependencies | ||
node_modules | ||
yarn.lock | ||
.cci | ||
.github | ||
.sfdx | ||
.vscode | ||
venv | ||
|
||
# README.md contains prettier-ignore examples | ||
README.md | ||
|
||
# Ignore files | ||
.gitignore | ||
.prettierignore | ||
.eslintignore | ||
|
||
# Images | ||
*.png | ||
*.jpg | ||
|
||
# Files with no parser | ||
*.xml | ||
*.py | ||
*.robot | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
printWidth: 90 | ||
tabWidth: 4 | ||
overrides: | ||
- files: "*.{json,yml,yaml}" | ||
options: | ||
tabWidth: 4 | ||
endOfLine: "auto" | ||
- files: "cumulusci.yml" | ||
options: | ||
tabWidth: 4 | ||
- files: "**/lwc/**/*.html" | ||
options: | ||
parser: lwc | ||
- files: "**/lwc/**/*.js" | ||
options: | ||
trailingComma: "es5" | ||
- files: "**/aura/**/*.{cmp,page,component,xml}" | ||
options: | ||
parser: "html" | ||
- files: "**/aura/**/*.js" | ||
options: | ||
trailingComma: "none" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.