Skip to content

Commit

Permalink
Merge branch 'main' into fix_branch
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Singh <aman_singh2021@vitbhopal.ac.in>
  • Loading branch information
SSShogunn authored Oct 12, 2024
2 parents afa9c17 + 5d29dd2 commit 6d256da
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Format

on:
pull_request:
branches:
- main

jobs:
format:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Use the Node.js version your project requires

- name: Install dependencies
run: npm install

- name: Run Prettier to check formatting
run: npm run prettier -- --check
continue-on-error: false # Fail the workflow if formatting issues are found
File renamed without changes.
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Once you've forked the repository, clone it to your local machine.
git clone https://github.com/YOUR-USERNAME/To-Do-List.git
```


## Linting and Formatting

This project uses **ESLint** and **Prettier** to ensure code quality and consistency.
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Open `index.html` in your browser to use the application.
- **Edit a Task:** Click the edit icon next to the task, make your changes, and save.
- **Delete a Task:** Click the delete icon next to the task.


## Linting and Formatting

This project uses **ESLint** and **Prettier** to ensure code quality and consistency.
Expand Down
10 changes: 5 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import pluginJs from '@eslint/js';

export default [
{
files: ["**/*.js"],
languageOptions: {
globals: globals.browser
}
files: ['**/*.js'],
languageOptions: {
globals: globals.browser,
},
},
pluginJs.configs.recommended
pluginJs.configs.recommended,
];

0 comments on commit 6d256da

Please sign in to comment.