Skip to content

Commit 276c4d7

Browse files
authored
Revert "Updated linting for project. (#107)"
This reverts commit ce60cce.
1 parent ce60cce commit 276c4d7

File tree

129 files changed

+2073
-2176
lines changed

Some content is hidden

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

129 files changed

+2073
-2176
lines changed

.eslintrc.js

Lines changed: 9 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,24 @@ module.exports = {
44
commonjs: true,
55
es2021: true,
66
node: true,
7-
'jest/globals': true,
87
},
9-
extends: [
10-
'eslint:recommended',
11-
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
12-
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
13-
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
14-
],
15-
plugins: ['react', '@typescript-eslint', 'jest', 'prettier'],
16-
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
8+
extends: ['eslint:recommended', 'plugin:react/recommended'],
179
parserOptions: {
18-
ecmaVersion: 2020,
19-
sourceType: 'module',
2010
ecmaFeatures: {
21-
jsx: true, // Allows for the parsing of JSX
22-
},
23-
},
24-
settings: {
25-
react: {
26-
// Tells eslint-plugin-react to automatically detect the version of React to use
27-
version: 'detect',
11+
jsx: true,
2812
},
13+
ecmaVersion: 12,
14+
sourceType: 'module',
2915
},
30-
// any directories/files to ignore goes here; node_modules ignore by default
31-
ignorePatterns: [],
16+
plugins: ['react'],
3217
rules: {
33-
/**
34-
* Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
35-
* e.g. "@typescript-eslint/explicit-function-return-type": "off",
36-
*
37-
* "off" or 0 - turn the rule off
38-
* "warn" or 1 - turn the rule on as a warning(doesn’ t affect exit code)
39-
* "error" or 2 - turn the rule on as an error(exit code is 1 when triggered)
40-
**/
41-
42-
indent: 0, // set to 0 as eslint and prettier will conflict
18+
indent: ['warn', 2],
19+
'no-unused-vars': ['off', { vars: 'local' }],
4320
'prefer-const': 'warn',
44-
quotes: [
45-
2,
46-
'single',
47-
{
48-
avoidEscape: true,
49-
allowTemplateLiterals: true,
50-
},
51-
],
52-
semi: 2,
21+
quotes: ['warn', 'single'],
22+
semi: ['warn', 'always'],
5323
'space-infix-ops': 'warn',
5424
'no-console': 'off',
55-
// ----- REACT ----- //
56-
'react/prop-types': 0, // remove with TS usage
57-
58-
// ----- TYPESCRIPT ----- //
59-
'@typescript-eslint/no-var-requires': 0,
60-
61-
// ----- PRETTIER ----- //
62-
'prettier/prettier': ['error', { singleQuote: true }],
63-
64-
// ----- MISC ----- //
6525
'no-restricted-syntax': [
6626
'error',
6727
{
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ""
5-
labels: ""
6-
assignees: ""
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
78
---
89

910
**Describe the bug**
1011
A clear and concise description of what the bug is.
1112

1213
**To Reproduce**
1314
Steps to reproduce the behavior:
14-
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,17 +24,15 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
28-
- OS: [e.g. iOS]
29-
- Browser [e.g. chrome, safari]
30-
- Version [e.g. 22]
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
3130

3231
**Smartphone (please complete the following information):**
33-
34-
- Device: [e.g. iPhone6]
35-
- OS: [e.g. iOS8.1]
36-
- Browser [e.g. stock browser, safari]
37-
- Version [e.g. 22]
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
3836

3937
**Additional context**
4038
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ""
5-
labels: ""
6-
assignees: ""
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
78
---
89

910
**Is your feature request related to a problem? Please describe.**

.gitignore

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
node_modules/
2-
build/
3-
coverage
41
.DS_Store
5-
.env
6-
.idea/
7-
thumbs.db
2+
build/
83
dist/
4+
node_modules/
95
security/
10-
src/database/docketeerdb
6+
thumbs.db
7+
.idea/
118
package-lock.json
9+
.webpack.config.js.icloud
10+
src/.index.js.icloud
11+
src/.store.js.icloud
12+
src/components/display/.RunningContainers.js.icloud
13+
src/components/display/.StoppedContainers.js.icloud
14+
src/database/docketeerdb
15+
.env
1216
yarn.lock

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: node_js
22

33
node_js:
44
- 16
5-
5+
66
env:
77
global: PATH=/opt/python/3.7.1/bin:$PATH
88

.vscode/settings.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
- Using welcoming and inclusive language
18-
- Being respectful of differing viewpoints and experiences
19-
- Gracefully accepting constructive criticism
20-
- Focusing on what is best for the community
21-
- Showing empathy towards other community members
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
- The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
- Trolling, insulting/derogatory comments, and personal or political attacks
28-
- Public or private harassment
29-
- Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
- Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

0 commit comments

Comments
 (0)