Skip to content

Commit c3470cc

Browse files
committed
Merge branch 'main' of https://github.com/hamed-musallam/nmr_displayer into hamed-musallam-main
# Conflicts: # package.json # yarn.lock
2 parents 7151836 + 3a4e711 commit c3470cc

36 files changed

Lines changed: 15125 additions & 18185 deletions

.babelrc

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

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
public

.eslintrc.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
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+
"max-len":[
55+
"warn",
56+
{
57+
"code":80
58+
}
59+
],
60+
"react-hooks/rules-of-hooks":"error",
61+
"react-hooks/exhaustive-deps":"warn",
62+
"import/prefer-default-export":"off",
63+
"react/prop-types":"off"
64+
65+
},
66+
"settings":{
67+
"import/resolver":{
68+
"typescript":{
69+
70+
}
71+
}
72+
}
73+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# production
1313
/build
1414

15+
/lib
16+
/lib-cjs
17+
1518
# misc
1619
.DS_Store
1720
.env.local

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
3+
*.json
4+
!tsconfig*.json

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"arrowParens": "always",
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"semi": true,
6+
"trailingComma": "all"
7+
}

babel.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
plugins: ["@babel/plugin-transform-modules-commonjs"],
3+
presets: [
4+
"@babel/preset-typescript",
5+
[
6+
"@babel/preset-react",
7+
{ runtime: "automatic", importSource: "@emotion/react" },
8+
],
9+
],
10+
};

dist/index.js

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

index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<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>
9+
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>

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
testPathIgnorePatterns: ["/node_modules/"],
3+
// Remove /data to include component files when components are tested.
4+
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}"],
5+
};

0 commit comments

Comments
 (0)