Skip to content

Commit

Permalink
Restore eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn committed Jun 22, 2023
1 parent 371d1dc commit d3da516
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: "latest",
},
env: {
node: true,
"es6": true
},
};
20 changes: 20 additions & 0 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lints

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

env:
NODE_ENV: release

steps:
- uses: actions/checkout@v3
- run: npm install
- run: npm run lint
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
},
"license": "MIT",
"devDependencies": {
"eslint": "^8.43.0",
"jest": "^29.5.0",
"mysql": "^2.18.1",
"pg": "^8.11.0"
},
"scripts": {
"test": "jest ./__tests__/*",
"prepublish": "yarn test"
"prepublish": "yarn test",
"lint": "yarn eslint src/**/*.js examples/**/*.js __tests__/**/*.js",
"fmt": "yarn lint --fix"
},
"jest": {
"coverageDirectory": "./coverage/",
Expand Down

0 comments on commit d3da516

Please sign in to comment.