Skip to content

Commit 9c1f219

Browse files
authored
Merge pull request DhanushNehru#73 from TheCoderAdi/main
Configure ESLint for Code Quality and added badge to readme.md
2 parents d730ade + 64fff32 commit 9c1f219

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.eslintrc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
extends: eslint:recommended
5+
parserOptions:
6+
ecmaVersion: latest
7+
rules: {}

.github/workflows/lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Install dependencies
11+
run: npm install
12+
- name: Run ESLint
13+
run: npx eslint .
14+
- name: Run Stylelint
15+
run: npx stylelint "**/*.css"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ To run the project locally, you need a local server. Before that, make sure you
5151

5252
Ensure that the port number mentioned here matches the authorized JavaScript origins. If you have any doubts, refer to the [screenshots](https://github.com/DhanushNehru/board/pull/57) in the comments for additional assistance.
5353

54+
### Linting Status
55+
56+
![Linting Status](https://github.com/DhanushNehru/board/actions/workflows/lint.yml/badge.svg)
57+
5458
Clone the project & start contributing
5559

5660
Hey, I am Dhanush N,the maintainer of this opensource repository. You can connect with me and support or follow my work via [Twitter](https://twitter.com/Dhanush_Nehru) / [Instagram](https://www.instagram.com/dhanush_nehru/) / [Youtube](https://www.youtube.com/@dhanushnehru?sub_confirmation=1) / [Github](https://github.com/DhanushNehru) / [Newsletter](https://dhanushn.substack.com/) / [Discord](https://discord.com/invite/Yn9g6KuWyA)

0 commit comments

Comments
 (0)