Skip to content

Commit

Permalink
Merge pull request #12 from Code-the-Dream-School/GinaCastromonte-pat…
Browse files Browse the repository at this point in the history
…ch-2

Gina castromonte patch 2
  • Loading branch information
GinaCastromonte authored Nov 21, 2024
2 parents ec3a3dc + 6a87445 commit 6559f20
Show file tree
Hide file tree
Showing 9 changed files with 5,949 additions and 326 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.cjs
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: {},
};
21 changes: 21 additions & 0 deletions .github/workflows/checks.yml
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
Loading

0 comments on commit 6559f20

Please sign in to comment.