File tree Expand file tree Collapse file tree 3 files changed +85
-0
lines changed Expand file tree Collapse file tree 3 files changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ env : {
3
+ browser : false ,
4
+ es6 : true ,
5
+ jest : true ,
6
+ } ,
7
+ extends : [
8
+ 'airbnb-base' ,
9
+ 'plugin:jest/all' ,
10
+ ] ,
11
+ globals : {
12
+ Atomics : 'readonly' ,
13
+ SharedArrayBuffer : 'readonly' ,
14
+ } ,
15
+ parserOptions : {
16
+ ecmaVersion : 2018 ,
17
+ sourceType : 'module' ,
18
+ } ,
19
+ plugins : [ 'jest' ] ,
20
+ rules : {
21
+ 'max-classes-per-file' : 'off' ,
22
+ 'no-underscore-dangle' : 'off' ,
23
+ 'no-console' : 'off' ,
24
+ 'no-shadow' : 'off' ,
25
+ 'no-restricted-syntax' : [
26
+ 'error' ,
27
+ 'LabeledStatement' ,
28
+ 'WithStatement' ,
29
+ ] ,
30
+ } ,
31
+ overrides :[
32
+ {
33
+ files : [ '*.js' ] ,
34
+ excludedFiles : 'babel.config.js' ,
35
+ }
36
+ ]
37
+ } ;
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ presets : [
3
+ [
4
+ '@babel/preset-env' ,
5
+ {
6
+ targets : {
7
+ node : 'current' ,
8
+ } ,
9
+ } ,
10
+ ] ,
11
+ ] ,
12
+ } ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " unittests_in_js" ,
3
+ "version" : " 1.0.0" ,
4
+ "description" : " A project for learning the basics of unittests in Node.js." ,
5
+ "private" : true ,
6
+ "license" : " MIT" ,
7
+ "scripts" : {
8
+ "lint" : " ./node_modules/.bin/eslint" ,
9
+ "lint-all" : " ./node_modules/.bin/eslint [0-9]*.js" ,
10
+ "lint-fix-all" : " ./node_modules/.bin/eslint --fix [0-9]*.js" ,
11
+ "test" : " node ./node_modules/mocha/bin/mocha --require babel-register --exit" ,
12
+ "dev" : " nodemon --exec babel-node --presets babel-preset-env ./full_server/server.js ./database.csv"
13
+ },
14
+ "dependencies" : {
15
+ "chai-http" : " ^4.3.0" ,
16
+ "express" : " ^4.17.1"
17
+ },
18
+ "devDependencies" : {
19
+ "babel-cli" : " ^6.26.0" ,
20
+ "babel-preset-env" : " ^1.7.0" ,
21
+ "nodemon" : " ^2.0.2" ,
22
+ "eslint" : " ^6.4.0" ,
23
+ "eslint-config-airbnb-base" : " ^14.0.0" ,
24
+ "eslint-plugin-import" : " ^2.18.2" ,
25
+ "eslint-plugin-jest" : " ^22.17.0" ,
26
+ "chai" : " ^4.2.0" ,
27
+ "mocha" : " ^6.2.2" ,
28
+ "request" : " ^2.88.0" ,
29
+ "sinon" : " ^7.5.0"
30
+ },
31
+ "engines" : {
32
+ "node" : " 16.x" ,
33
+ "npm" : " 8.x" ,
34
+ "yarn" : " 1.x"
35
+ }
36
+ }
You can’t perform that action at this time.
0 commit comments