Skip to content

Commit 9938432

Browse files
authored
Merge pull request #135 from NFDI4Chem/development
Development
2 parents 92a1633 + ea81efc commit 9938432

17 files changed

Lines changed: 7045 additions & 3752 deletions

.eslintrc.json

Lines changed: 88 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,93 @@
11
{
2-
"env":{
3-
"browser":true,
4-
"es2021":true
5-
},
6-
"extends":[
7-
"plugin:react/recommended",
8-
"airbnb",
9-
"plugin:@typescript-eslint/recommended",
10-
"prettier",
11-
"plugin:prettier/recommended"
12-
13-
],
14-
"parser":"@typescript-eslint/parser",
15-
"parserOptions":{
16-
"ecmaFeatures":{
17-
"jsx":true
18-
},
19-
"ecmaVersion":12,
20-
"sourceType":"module"
21-
},
22-
"plugins":[
23-
"react",
24-
"@typescript-eslint",
25-
"react-hooks"
26-
],
27-
"rules":{
28-
"react/require-default-props":"off",
29-
"react/react-in-jsx-scope":"off",
30-
"no-use-before-define": ["error"],
31-
"@typescript-eslint/no-use-before-define":[
32-
"error"
33-
],
34-
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
35-
36-
"react/jsx-filename-extension":[
37-
"warn",
38-
{
39-
"extensions":[
40-
".tsx"
41-
]
42-
}
43-
],
44-
"import/extensions":[
45-
"error",
46-
"ignorePackages",
47-
{
48-
"ts":"never",
49-
"tsx":"never"
50-
}
51-
],
52-
53-
"@typescript-eslint/explicit-function-return-type":"off",
54-
"react-hooks/rules-of-hooks":"error",
55-
"react-hooks/exhaustive-deps":"warn",
56-
"import/prefer-default-export":"off",
57-
"react/prop-types":"off",
58-
"react/no-unknown-property": ["error", { "ignore": ["css"] }]
59-
60-
61-
62-
63-
},
64-
"settings":{
65-
"import/resolver":{
66-
"typescript":{
67-
68-
}
69-
}
70-
},
71-
"overrides": [
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"plugin:react/recommended",
8+
"airbnb",
9+
"plugin:@typescript-eslint/recommended",
10+
"prettier",
11+
"plugin:prettier/recommended"
12+
],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"ecmaFeatures": {
16+
"jsx": true
17+
},
18+
"ecmaVersion": 12,
19+
"sourceType": "module"
20+
},
21+
"plugins": [
22+
"react",
23+
"@typescript-eslint",
24+
"react-hooks"
25+
],
26+
"rules": {
27+
"import/no-unresolved": "off",
28+
"react/require-default-props": "off",
29+
"react/react-in-jsx-scope": "off",
30+
"no-use-before-define": [
31+
"error"
32+
],
33+
"@typescript-eslint/no-use-before-define": [
34+
"error"
35+
],
36+
"import/no-extraneous-dependencies": [
37+
"error",
38+
{
39+
"devDependencies": true
40+
}
41+
],
42+
"react/jsx-filename-extension": [
43+
"warn",
44+
{
45+
"extensions": [
46+
".tsx"
47+
]
48+
}
49+
],
50+
"import/extensions": [
51+
"error",
52+
"ignorePackages",
53+
{
54+
"": "never",
55+
"js": "never",
56+
"jsx": "never",
57+
"ts": "never",
58+
"tsx": "never"
59+
}
60+
],
61+
"@typescript-eslint/explicit-function-return-type": "off",
62+
"react-hooks/rules-of-hooks": "error",
63+
"react-hooks/exhaustive-deps": "warn",
64+
"import/prefer-default-export": "off",
65+
"react/prop-types": "off",
66+
"react/no-unknown-property": [
67+
"error",
68+
{
69+
"ignore": [
70+
"css"
71+
]
72+
}
73+
]
74+
},
75+
"settings": {
76+
"import/resolve": {
77+
"typescript": {},
78+
"paths": [
79+
"src/"
80+
]
81+
}
82+
},
83+
"overrides": [
7284
{
73-
"files":["src/*.json"],
74-
"rules":{
85+
"files": [
86+
"src/*.json"
87+
],
88+
"rules": {
7589
"no-unused-expressions": "off"
7690
}
77-
7891
}
79-
]
80-
}
92+
]
93+
}

index.html

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<!-- <link rel="shortcut icon" href="/favicon.ico" /> -->
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
<meta name="theme-color" content="#000000" />
8-
<title>NMRium Wrapper</title>
93

10-
<style>
11-
html,
12-
body,
13-
#root {
14-
height: 100%;
15-
margin: 0;
16-
padding: 0;
17-
}
18-
</style>
19-
</head>
20-
<body>
21-
<noscript>You need to enable JavaScript to run this app.</noscript>
22-
<div id="root"></div>
23-
<script type="module" src="/src/index.tsx"></script>
24-
</body>
25-
</html>
4+
<head>
5+
<meta charset="utf-8" />
6+
<!-- <link rel="shortcut icon" href="/favicon.ico" /> -->
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<meta name="theme-color" content="#ea580c" />
9+
<title>NMRium Wrapper</title>
10+
<meta name="description"
11+
content="Wrapper for NMRium which is a powerful tool for displaying and processing nuclear magnetic resonance (NMR) spectra">
12+
13+
<style>
14+
html,
15+
body,
16+
#root {
17+
height: 100%;
18+
margin: 0;
19+
padding: 0;
20+
}
21+
</style>
22+
</head>
23+
24+
<body>
25+
<noscript>You need to enable JavaScript to run this app.</noscript>
26+
<div id="root"></div>
27+
<script type="module" src="/src/index.tsx"></script>
28+
</body>
29+
30+
</html>

0 commit comments

Comments
 (0)