Skip to content

Commit 6f224c4

Browse files
authored
Revert "Added esltint configuration (#125)" (#128)
1 parent b6d8633 commit 6f224c4

File tree

138 files changed

+13268
-2338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+13268
-2338
lines changed

.eslintrc.js

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,61 +3,47 @@ module.exports = {
33
browser: true,
44
commonjs: true,
55
es2021: true,
6-
node: true
6+
node: true,
77
},
8-
extends: [
9-
'plugin:react/recommended',
10-
'standard-with-typescript'
11-
],
12-
overrides: [
13-
],
8+
extends: ['eslint:recommended', 'plugin:react/recommended'],
149
parserOptions: {
15-
project: ['tsconfig.json'],
10+
ecmaFeatures: {
11+
jsx: true,
12+
},
1613
ecmaVersion: 12,
17-
sourceType: 'module'
18-
},
19-
plugins: [
20-
'react'
21-
],
22-
settings: {
23-
react: {
24-
version: 'detect'
25-
}
14+
sourceType: 'module',
2615
},
16+
plugins: ['react'],
2717
rules: {
28-
indent: ['error', 2, { SwitchCase: 1 }],
18+
indent: ['warn', 2],
2919
'no-unused-vars': ['off', { vars: 'local' }],
3020
'prefer-const': 'warn',
3121
quotes: ['warn', 'single'],
32-
semi: 'off',
22+
semi: ['warn', 'always'],
3323
'space-infix-ops': 'warn',
3424
'no-console': 'off',
3525
'no-restricted-syntax': [
3626
'error',
3727
{
3828
selector:
39-
'CallExpression[callee.object.name=\'console\'][callee.property.name!=/^(log|warn|error|info|trace)$/]',
40-
message: 'Unexpected property on console object was called'
41-
}
29+
"CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
30+
message: 'Unexpected property on console object was called',
31+
},
4232
],
4333
'spaced-comment': [
4434
'error',
4535
'always',
4636
{
4737
line: {
4838
markers: ['/'],
49-
exceptions: ['-', '+']
39+
exceptions: ['-', '+'],
5040
},
5141
block: {
5242
markers: ['!'],
5343
exceptions: ['*'],
54-
balanced: true
55-
}
56-
}
44+
balanced: true,
45+
},
46+
},
5747
],
58-
59-
// ---- TYPESCRIPT ---- //
60-
'@typescript-eslint/explicit-function-return-type': 'off',
61-
'@typescript-eslint/semi': ['warn', 'always']
62-
}
48+
},
6349
};

.gitignore

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,35 @@
11
node_modules/
2+
security/
3+
thumbs.db
4+
.idea/
25
package-lock.json
3-
yarn.lock
4-
5-
.history
6-
.gitignore
7-
.DS_Store
8-
6+
.webpack.config.js.icloud
7+
src/.index.js.icloud
8+
src/.store.js.icloud
9+
src/components/display/.RunningContainers.js.icloud
10+
src/components/display/.StoppedContainers.js.icloud
911
src/database/docketeerdb
1012
server/database/docketeerdb
13+
.env
14+
.idea/
15+
thumbs.db
1116
dist/
17+
node_modules/
1218
security/
19+
thumbs.db
20+
.idea/
21+
package-lock.json
22+
.webpack.config.js.icloud
23+
src/.index.js.icloud
24+
src/.store.js.icloud
25+
src/components/display/.RunningContainers.js.icloud
26+
src/components/display/.StoppedContainers.js.icloud
27+
src/database/docketeerdb
1328
.env
14-
29+
yarn.lock
1530
coverage
1631

32+
.history
33+
src/.DS_Store
34+
.gitignore
35+
src/.DS_Store

.vscode/settings.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
{
2-
"workbench.localHistory.enabled": true,
3-
"editor.tabSize": 2,
4-
"editor.formatOnSave": true,
5-
"editor.formatOnPaste": true,
6-
"editor.formatOnType": true,
7-
"editor.codeActionsOnSave": {
8-
"source.fixAll.eslint": true
9-
}
2+
"workbench.localHistory.enabled": true
103
}

README.md

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ awesome when someone starts to use it.
2323

2424
#
2525

26+
<!-- ![logo](https://user-images.githubusercontent.com/67434664/94055454-f7177a00-fdaa-11ea-95dd-1d4980400812.png) -->
27+
2628
![logo](assets/docketeer-title2.png)
2729

2830
## About
@@ -98,6 +100,30 @@ npm run dev
98100

99101
For now, the sign up function will create a System Admin user.
100102

103+
104+
## Returning Users: Version Update
105+
1. Navigate to the project directory and **add upstream** this [repository](https://github.com/open-source-labs/Docketeer.git) to your cloned fork.
106+
```
107+
git remote add upstream https://github.com/open-source-labs/Docketeer.git
108+
```
109+
110+
2. Pull down the updates.
111+
```
112+
git pull origin upstream
113+
```
114+
115+
3. Install new dependencies.
116+
```
117+
npm install
118+
```
119+
120+
4. You are all set! Now just enter the following command to start up Docketeer!
121+
```
122+
npm run dev
123+
```
124+
125+
126+
101127
## Twilio setup
102128
1. Follow documents found [here](https://www.twilio.com/docs/node/install) to download the helper library.
103129
2. In order to manage Twilio SMS notifications follow the [step plan](https://www.twilio.com/docs/notify/quickstart/sms#messagingservice).
@@ -165,7 +191,24 @@ npm run test
165191
Read our [contributing guide](https://github.com/open-source-labs/Docketeer/blob/master/CONTRIBUTING.md) for more information on how to purpose bugfixes and improvements to Docketeer.
166192

167193
### Authors
168-
<!-- Most recent contributors please add your name to the BOTTOM of the list -->
194+
- Nathan Cho [@nathanycho](https://github.com/nathanycho) | [LinkedIn](https://www.linkedin.com/in/nathanycho/)
195+
- Garima Bhatia [@GarimaB06](https://github.com/GarimaB06) | [LinkedIn](https://www.linkedin.com/in/garimab06/)
196+
- Eshaan Joshi [@eshaan32](https://github.com/eshaan32) | [LinkedIn](https://www.linkedin.com/in/eshaanjoshi/)
197+
- Jonathan Wong [@WongJonathann](https://github.com/WongJonathann) | [LinkedIn](https://www.linkedin.com/in/jon-wong-00/)
198+
- Sarah Moosa [@Sbethm](https://github.com/Sbethm) | [LinkedIn](https://www.linkedin.com/in/sarah-moosa-4b05721b6/)
199+
- Cedar Cooper [@CedarCooper](https://github.com/CedarCooper) | [LinkedIn](https://www.linkedin.com/in/cedar-cooper/)
200+
- Tiffany Chau [@tiffanynchau](https://github.com/tiffanynchau/) | [LinkedIn](https://www.linkedin.com/in/tiffanynchau/)
201+
- Jack Yuan [@jackyuan1](https://github.com/jackyuan1) | [LinkedIn](https://www.linkedin.com/in/jack-yuan-298244247/)
202+
- Drew Manley [@DrewManley](https://github.com/DrewManley) | [LinkedIn](https://www.linkedin.com/in/andrewmanley13/)
203+
- Abigail Gerig [@4estgirl](https://github.com/4estgirl) | [Linkedin](https://www.linkedin.com/in/abigail-gerig/)
204+
- Trine Medina [@TrineMedina](https://github.com/TrineMedina) | [Linkedin](https://www.linkedin.com/in/trinemedina/)
205+
- Christian Looff [@cmlooff](https://github.com/cmlooff) | [LinkedIn](https://www.linkedin.com/in/christian-looff/)
206+
- Reuel Warner-Rosen [@Ruliwr](https://github.com/Ruliwr) | [Linkedin](https://www.linkedin.com/in/Ruliwr/)
207+
- Matt Dias [@Schmang13](https://github.com/Schmang13) | [Linkedin](https://www.linkedin.com/in/matthew-j-dias/)
208+
- Christina Son [@cson17](https://github.com/cson17) | [Linkedin](https://www.linkedin.com/in/christinason17/)
209+
- Fernando Luna [@lunaf-github](https://github.com/lunaf-github) | [Linkedin](https://www.linkedin.com/in/fernando-luna)
210+
- Austin Andrews [@austinandrews](https://github.com/austinandrews) | [Linkedin](https://www.linkedin.com/in/austinandrews17/)
211+
- Eric Lay [@ericlay14](https://github.com/ericlay14) | [Linkedin](https://www.linkedin.com/in/ericlay14/)
169212
- Dan Lin [@DanLin91](https://github.com/DanLin91) | [Linkedin](https://www.linkedin.com/in/danlin91/)
170213
- Kadir Gundogdu [@kadirgund](https://github.com/kadirgund) | [Linkedin](https://www.linkedin.com/in/kadirgund/)
171214
- Minchan Jun [@MinchanJun](https://github.com/MinchanJun) | [Linkedin](https://www.linkedin.com/in/minchan-jun/)
@@ -189,24 +232,6 @@ Read our [contributing guide](https://github.com/open-source-labs/Docketeer/blob
189232
- Dylan Feldman [@dfeldman24](https://github.com/dfeldman24) | [Linkedin](https://www.linkedin.com/in/dylan-feldman)
190233
- Tre Hultzen [@THultz](https://github.com/THultz) | [Linkedin](https://www.linkedin.com/in/tre-hultzen/)
191234
- Kenneth Hui [@kennethhui121](https://github.com/kennethhui121) | [Linkedin](https://www.linkedin.com/in/kenneth-hui/)
192-
- Eric Lay [@ericlay14](https://github.com/ericlay14) | [Linkedin](https://www.linkedin.com/in/ericlay14/)
193-
- Austin Andrews [@austinandrews](https://github.com/austinandrews) | [Linkedin](https://www.linkedin.com/in/austinandrews17/)
194-
- Fernando Luna [@lunaf-github](https://github.com/lunaf-github) | [Linkedin](https://www.linkedin.com/in/fernando-luna)
195-
- Christina Son [@cson17](https://github.com/cson17) | [Linkedin](https://www.linkedin.com/in/christinason17/)
196-
- Christian Looff [@cmlooff](https://github.com/cmlooff) | [LinkedIn](https://www.linkedin.com/in/christian-looff/)
197-
- Reuel Warner-Rosen [@Ruliwr](https://github.com/Ruliwr) | [Linkedin](https://www.linkedin.com/in/Ruliwr/)
198-
- Trine Medina [@TrineMedina](https://github.com/TrineMedina) | [Linkedin](https://www.linkedin.com/in/trinemedina/)
199-
- Matt Dias [@Schmang13](https://github.com/Schmang13) | [Linkedin](https://www.linkedin.com/in/matthew-j-dias/)
200-
- Abigail Gerig [@4estgirl](https://github.com/4estgirl) | [Linkedin](https://www.linkedin.com/in/abigail-gerig/)
201-
- Jack Yuan [@jackyuan1](https://github.com/jackyuan1) | [LinkedIn](https://www.linkedin.com/in/jack-yuan-298244247/)
202-
- Sarah Moosa [@Sbethm](https://github.com/Sbethm) | [LinkedIn](https://www.linkedin.com/in/sarah-moosa-4b05721b6/)
203-
- Cedar Cooper [@CedarCooper](https://github.com/CedarCooper) | [LinkedIn](https://www.linkedin.com/in/cedar-cooper/)
204-
- Tiffany Chau [@tiffanynchau](https://github.com/tiffanynchau/) | [LinkedIn](https://www.linkedin.com/in/tiffanynchau/)
205-
- Drew Manley [@DrewManley](https://github.com/DrewManley) | [LinkedIn](https://www.linkedin.com/in/andrewmanley13/)
206-
- Eshaan Joshi [@eshaan32](https://github.com/eshaan32) | [LinkedIn](https://www.linkedin.com/in/eshaanjoshi/)
207-
- Garima Bhatia [@GarimaB06](https://github.com/GarimaB06) | [LinkedIn](https://www.linkedin.com/in/garimab06/)
208-
- Nathan Cho [@nathanycho](https://github.com/nathanycho) | [LinkedIn](https://www.linkedin.com/in/nathanycho/)
209-
- Jonathan Wong [@WongJonathann](https://github.com/WongJonathann) | [LinkedIn](https://www.linkedin.com/in/jon-wong-00/)
210235

211236
### License
212237
Docketeer is [MIT Licensed](https://github.com/open-source-labs/Docketeer/blob/master/LICENSE)

__tests__/ContainersTab.test.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import Containers from '../src/components/tabs/Containers';
3-
import { describe, beforeEach, expect, test, jest } from '@jest/globals';
3+
import {describe, beforeEach, expect, test, jest} from '@jest/globals';
44
import '@testing-library/jest-dom';
55
import ToggleDisplay from '../src/components/display/ToggleDisplay';
66
import { fireEvent, render, screen } from '@testing-library/react';
@@ -21,40 +21,43 @@ const props = {
2121
stoppedList: [
2222
{
2323
Names: 'zealous',
24-
ID: 'c902ec744095',
25-
Image: '84c5f6e03bf0',
26-
RunningFor: '2 days ago'
24+
ID: 'c902ec744095',
25+
Image: '84c5f6e03bf0',
26+
RunningFor: '2 days ago',
2727
}
2828
],
29-
container: { MemUsage: 1 },
29+
container: {MemUsage:1},
3030
stop: jest.fn(),
3131
remove: jest.fn(),
3232
runStopped: jest.fn()
3333
};
3434

35+
3536
describe('Containers', () => {
36-
beforeEach(() => {
37+
38+
beforeEach(()=>{
3739
render(<Containers {...props} />);
3840
});
3941

4042
describe('Running List containers', () => {
43+
4144
test('Should have render correct amount of running containers', () => {
42-
const runningContainers = screen.getByText('Running Containers', { exact: false });
45+
const runningContainers = screen.getByText('Running Containers', {exact:false});
4346
const text = runningContainers.innerHTML;
4447
expect(text).toEqual(`Running Containers: ${props.runningList.length}`);
4548
});
4649

47-
test('Name of container should properly display', () => {
50+
test('Name of container should properly display', ()=>{
4851
const h3 = screen.getAllByRole('heading', { level: 3 });
4952
const name = h3[0].innerHTML;
5053
expect(name).toEqual('blissful_matsumoto');
5154
});
5255

53-
test('Stop button is called', async () => {
56+
test('Stop button is called', async () => {
5457
const stopButton = document.querySelector('.stop-btn');
5558
await fireEvent.click(stopButton);
5659
});
57-
60+
5861
test('Toggle Display button works', () => {
5962
render(<ToggleDisplay {...props}/>);
6063
const button = screen.getAllByRole('button');
@@ -66,8 +69,9 @@ describe('Containers', () => {
6669
});
6770

6871
describe('Stopped List Containers', () => {
72+
6973
test('Should have render correct amount of containers', () => {
70-
const exitedContainers = screen.getByText('Exited Containers', { exact: false });
74+
const exitedContainers = screen.getByText('Exited Containers', {exact:false});
7175
const text = exitedContainers.innerHTML;
7276
expect(text).toEqual(`Exited Containers: ${props.stoppedList.length}`);
7377
});
@@ -87,4 +91,5 @@ describe('Containers', () => {
8791
expect(removeButton).toBeCalled;
8892
});
8993
});
90-
});
94+
});
95+

__tests__/ImageTab.test.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Images from '../src/components/tabs/Images';
55
import {
66
fireEvent,
77
render,
8-
screen
8+
screen,
99
} from '@testing-library/react';
1010

1111
const props = {
@@ -14,15 +14,16 @@ const props = {
1414
imgid: '2718634043dc',
1515
size: '111 MB',
1616
reps: 'Redis',
17-
tag: 16.4
18-
}
17+
tag: 16.4,
18+
},
1919
],
2020
runIm: jest.fn(),
2121
removeIm: jest.fn(),
22-
onClick: jest.fn()
22+
onClick: jest.fn(),
2323
};
2424

2525
describe('Images', () => {
26+
2627
beforeEach(() => {
2728
render(<Images {...props} />);
2829
screen.debug();
@@ -47,6 +48,7 @@ describe('Images', () => {
4748
});
4849
});
4950

51+
5052
describe('Remove button on click', () => {
5153
test('Fires remove button functionality', async () => {
5254
const removeButton = screen.getByRole('button', { name: 'REMOVE' });
@@ -78,4 +80,4 @@ describe('Images', () => {
7880
expect(tag).toBeDefined;
7981
});
8082
});
81-
});
83+
});

0 commit comments

Comments
 (0)