Skip to content

Commit

Permalink
Setup Eslint for SSO (#3294)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaHua-Zou committed Mar 24, 2022
1 parent 33858ec commit 244ed69
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
8 changes: 7 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/api/sso/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
extends: '@senecacdot/eslint-config-telescope',
env: {
node: true,
commonjs: true,
jest: true,
},
};
1 change: 1 addition & 0 deletions src/api/sso/jest.config.e2e.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line
const { waitForPostgres } = require('@jcoreio/wait-for-postgres');

const baseConfig = require('../../../jest.config.base');
Expand Down
11 changes: 9 additions & 2 deletions src/api/sso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"description": "An SSO Authentication and Authorization Service",
"scripts": {
"dev": "env-cmd -f env.local nodemon src/server.js",
"start": "node src/server.js"
"start": "node src/server.js",
"eslint": "eslint --config .eslintrc.js \"./**/*.js\"",
"eslint-time": "TIMING=1 eslint --config .eslintrc.js \"./**/*.js\"",
"eslint-fix": "eslint --config .eslintrc.js \"./**/*.js\" --fix",
"lint": "pnpm eslint"
},
"repository": "Seneca-CDOT/telescope",
"license": "BSD-2-Clause",
Expand All @@ -29,7 +33,10 @@
},
"devDependencies": {
"@jcoreio/wait-for-postgres": "2.0.0",
"@senecacdot/eslint-config-telescope": "1.1.0",
"env-cmd": "10.1.0",
"nodemon": "2.0.15"
"eslint": "7.32.0",
"nodemon": "2.0.15",
"supertest": "6.1.6"
}
}

0 comments on commit 244ed69

Please sign in to comment.