Skip to content

Commit a64bee2

Browse files
committed
a working repo now
1 parent 018ef89 commit a64bee2

Some content is hidden

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

78 files changed

+6948
-6935
lines changed

.eslintrc

+86-56
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"root": true,
33
"extends": [
4-
"eslint:recommended",
5-
"plugin:@typescript-eslint/eslint-recommended",
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/eslint-recommended",
66
"plugin:react/recommended",
77
"plugin:react/jsx-runtime"
88
],
99
"plugins": [
10-
"react"
10+
"react"
1111
],
1212
"settings": {
1313
"react": {
@@ -16,64 +16,94 @@
1616
},
1717
"parser": "@babel/eslint-parser",
1818
"env": {
19-
"es6": true,
20-
"browser": true,
21-
"node": true,
22-
"jquery": true,
23-
"mocha": true
19+
"es6": true,
20+
"browser": true,
21+
"node": true,
22+
"jquery": true,
23+
"mocha": true
2424
},
2525
"rules": {
26-
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
27-
"eqeqeq": ["warn", "smart"],
26+
"no-mixed-spaces-and-tabs": [
27+
"warn",
28+
"smart-tabs"
29+
],
30+
"eqeqeq": [
31+
"warn",
32+
"smart"
33+
],
2834
"no-eval": "warn",
29-
"quotes": ["warn", "double"],
30-
"indent": ["warn", "tab"],
31-
"no-console": 1,
32-
"no-debugger": 1,
33-
"no-var": "error",
34-
"semi": ["warn", "always"],
35-
"no-trailing-spaces": 0,
36-
"eol-last": "warn",
37-
"no-underscore-dangle": 0,
38-
"no-alert": 0,
39-
"no-lone-blocks": 0,
35+
"quotes": [
36+
"warn",
37+
"double"
38+
],
39+
"indent": [
40+
"warn",
41+
"tab"
42+
],
43+
"no-console": 1,
44+
"no-debugger": 1,
45+
"no-var": "error",
46+
"semi": [
47+
"warn",
48+
"always"
49+
],
50+
"no-trailing-spaces": 0,
51+
"eol-last": "warn",
52+
"no-underscore-dangle": 0,
53+
"no-alert": 0,
54+
"no-lone-blocks": 0,
4055
"no-unused-vars": "warn",
4156
"prefer-template": "warn",
42-
"jsx-quotes": 1,
43-
"prefer-const": ["warn", {
44-
"destructuring": "any",
45-
"ignoreReadBeforeAssign": false
46-
}],
47-
"react/display-name": [ 1, {"ignoreTranspilerName": false }],
48-
"react/forbid-prop-types": [1, {"forbid": ["any"]}],
49-
"react/jsx-boolean-value": 0,
50-
"react/jsx-closing-bracket-location": 0,
51-
"react/jsx-curly-spacing": 1,
52-
"react/jsx-indent-props": 0,
53-
"react/jsx-key": 1,
54-
"react/jsx-max-props-per-line": 0,
55-
"react/jsx-no-bind": 0,
56-
"react/jsx-no-duplicate-props": 1,
57-
"react/jsx-no-literals": 0,
58-
"react/jsx-no-undef": 1,
59-
"react/jsx-pascal-case": 1,
60-
"react/jsx-sort-prop-types": 0,
61-
"react/jsx-sort-props": 0,
62-
"react/jsx-uses-react": 0,
63-
"react/jsx-uses-vars": 1,
64-
"react/no-danger": 1,
65-
"react/no-did-mount-set-state": 1,
66-
"react/no-did-update-set-state": 1,
67-
"react/no-direct-mutation-state": 1,
68-
"react/no-multi-comp": 1,
69-
"react/no-set-state": 0,
70-
"react/no-unknown-property": 1,
71-
"react/prefer-es6-class": 1,
72-
"react/prop-types": 0,
73-
"react/react-in-jsx-scope": 0,
74-
"react/self-closing-comp": 1,
75-
"react/sort-comp": 1,
76-
"react/jsx-wrap-multilines": 1
57+
"jsx-quotes": 1,
58+
"prefer-const": [
59+
"warn",
60+
{
61+
"destructuring": "any",
62+
"ignoreReadBeforeAssign": false
63+
}
64+
],
65+
"react/display-name": [
66+
1,
67+
{
68+
"ignoreTranspilerName": false
69+
}
70+
],
71+
"react/forbid-prop-types": [
72+
1,
73+
{
74+
"forbid": [
75+
"any"
76+
]
77+
}
78+
],
79+
"react/jsx-boolean-value": 0,
80+
"react/jsx-closing-bracket-location": 0,
81+
"react/jsx-curly-spacing": 1,
82+
"react/jsx-indent-props": 0,
83+
"react/jsx-key": 1,
84+
"react/jsx-max-props-per-line": 0,
85+
"react/jsx-no-bind": 0,
86+
"react/jsx-no-duplicate-props": 1,
87+
"react/jsx-no-literals": 0,
88+
"react/jsx-no-undef": 1,
89+
"react/jsx-pascal-case": 1,
90+
"react/jsx-sort-prop-types": 0,
91+
"react/jsx-sort-props": 0,
92+
"react/jsx-uses-react": 0,
93+
"react/jsx-uses-vars": 1,
94+
"react/no-danger": 1,
95+
"react/no-did-mount-set-state": 1,
96+
"react/no-did-update-set-state": 1,
97+
"react/no-direct-mutation-state": 1,
98+
"react/no-multi-comp": 1,
99+
"react/no-set-state": 0,
100+
"react/no-unknown-property": 1,
101+
"react/prefer-es6-class": 1,
102+
"react/prop-types": 0,
103+
"react/react-in-jsx-scope": 0,
104+
"react/self-closing-comp": 1,
105+
"react/sort-comp": 1,
106+
"react/jsx-wrap-multilines": 1
77107
},
78108
"globals": {
79109
}

.istanbul.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
instrumentation:
2-
excludes: ['*.test.js', '*.test.jsx']
3-
extensions: ['.js', '.jsx']
2+
excludes: [ '*.test.js', '*.test.jsx' ]
3+
extensions: [ '.js', '.jsx' ]
44
include-all-sources: true

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
# CONSORT
2+
23
custom react frontend working with consort clowder instance
34

45
## Install Dependencies
6+
57
run `npm install`
68

79
## Run Project
10+
811
- Set hostname environment variable: `export CLOWDER_REMOTE_HOSTNAME=https://consort.clowderframework.org`
912
- Set APIKEY: `export APIKEY={your clowder API key}`
1013
- run `npm start` when in development mode.
1114

1215
## Codegen
1316

1417
### Prod
18+
1519
run `npm run codegen`
1620

1721
### Dev
22+
1823
run `npm run codegen:dev`

jest.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ module.exports = {
147147

148148
// The glob patterns Jest uses to detect test files
149149
testMatch: [
150-
"**/__tests__/**/*.[jt]s?(x)",
151-
"**/?(*.)+(spec|test).[tj]s?(x)"
150+
"**/__tests__/**/*.[jt]s?(x)",
151+
"**/?(*.)+(spec|test).[tj]s?(x)"
152152
],
153153

154154
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped

0 commit comments

Comments
 (0)