Skip to content

Commit

Permalink
Merge pull request #53 from apsinghdev/Add/linting
Browse files Browse the repository at this point in the history
Add linting
  • Loading branch information
apsinghdev authored Aug 9, 2024
2 parents 1187e9d + e23bc31 commit 9865fcc
Show file tree
Hide file tree
Showing 5 changed files with 1,858 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: '>=18'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build
run: npm run build --if-present
# - name: Run tests
# run: npm test // Add tests later
- name: Lint
run: npm run lint
8 changes: 8 additions & 0 deletions api/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import globals from "globals";
import pluginJs from "@eslint/js";


export default [
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
];
4 changes: 2 additions & 2 deletions api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ ysocketio.initialize();

app.use(cors({origin: '*'}))

app.get('/', (req, res)=>{
app.get('/', ()=>{
console.log('running')
})

app.get('/test', (req, res) => {
app.get('/test', (res) => {
res.send(JSON.stringify({ok: true}));
})

Expand Down
Loading

0 comments on commit 9865fcc

Please sign in to comment.