generated from Code-the-Dream-School/react-node-practicum-back-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Code-the-Dream-School/GinaCastromonte-pat…
…ch-2 Gina castromonte patch 2
- Loading branch information
Showing
9 changed files
with
5,949 additions
and
326 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,19 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2020: true, | ||
node: true, | ||
}, | ||
extends: ["eslint:recommended", "prettier", "plugin:prettier/recommended"], | ||
ignorePatterns: ["dist", ".eslintrc.cjs"], | ||
plugins: ["prettier"], | ||
rules: { | ||
"comma-dangle": ["error", "only-multiline"], | ||
"prettier/prettier": ["error", { endOfLine: "auto" }], | ||
// indent: ["error", 4], | ||
"no-unused-vars": ["warn"], | ||
// "no-console": ["warn"], | ||
}, | ||
settings: {}, | ||
}; |
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,21 @@ | ||
name: Check Code Formatting | ||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [main] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
branches: "**" | ||
jobs: | ||
test: | ||
name: Check Code Formatting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install packages | ||
run: npm i | ||
- name: Prettier | ||
run: npm run prettier | ||
- name: Lint | ||
run: npm run lint |
Oops, something went wrong.