-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update react-scripts, change tsconfig so `yarn start` passes `yarn add --exact [email protected]` * bootstrap eslint with `yarn eslint --init` and cleanup the config a bit * `yarn eslint . --fix` * install prettier, its eslint plugin and config, set it up `yarn add -D prettier eslint-plugin-prettier eslint-config-prettier` * `yarn eslint . --fix` * install and setup eslint import sorting plugin `yarn add -D eslint-plugin-simple-import-sort` * `yarn eslint . --fix` * add .vscode config, amend README
- Loading branch information
1 parent
6ecaa7e
commit acf931f
Showing
20 changed files
with
2,967 additions
and
2,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
// for what's included, check: https://github.com/facebook/create-react-app/blob/master/packages/eslint-config-react-app/index.js | ||
"react-app", | ||
"plugin:react/recommended", | ||
"plugin:prettier/recommended", | ||
// eslint-config-prettier package - turns off eslint rules conflicting with prettier | ||
"prettier" | ||
], | ||
"plugins": ["simple-import-sort"], | ||
"rules": { | ||
"react/prop-types": "off", | ||
"simple-import-sort/sort": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"bracketSpacing": false, | ||
"printWidth": 120, | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import React from "react"; | ||
import "./Footer.css"; | ||
import './Footer.css' | ||
|
||
export const Footer: React.FC = () => <div id="footer"></div>; | ||
import React from 'react' | ||
|
||
export const Footer: React.FC = () => <div id="footer"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./Footer"; | ||
export * from './Footer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./MenuMain"; | ||
export * from './MenuMain' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
import React from "react"; | ||
import "./MenuSeminars.css"; | ||
import './MenuSeminars.css' | ||
|
||
import React from 'react' | ||
|
||
// Nie som si istý, či sa dá zmeniť subdoména bez toho, aby sa prehliadač musel reloadnuť. | ||
// Ak je to možné, pridal by som updateSeminarId handler na zmenu statu seminarId o component vyššie. | ||
// | ||
// export const MenuSeminars: React.FC<{ updateSeminarId: () => void }> = ({ updateSeminarId }) => ( | ||
export const MenuSeminars: React.FC<{ seminarId: number }> = ({ seminarId }) => ( | ||
export const MenuSeminars: React.FC<{seminarId: number}> = ({seminarId}) => ( | ||
<div id="menu-seminars"> | ||
<div className={seminarId === 3 ? "menu-seminars-item active" : "menu-seminars-item"}> | ||
<div className={seminarId === 3 ? 'menu-seminars-item active' : 'menu-seminars-item'}> | ||
<a href="http://malynar.localhost:3000/">Malynár</a> | ||
</div> | ||
<div className={seminarId === 2 ? "menu-seminars-item active" : "menu-seminars-item"}> | ||
<div className={seminarId === 2 ? 'menu-seminars-item active' : 'menu-seminars-item'}> | ||
<a href="http://matik.localhost:3000/">Matik</a> | ||
</div> | ||
<div className={seminarId === 1 ? "menu-seminars-item active" : "menu-seminars-item"}> | ||
<div className={seminarId === 1 ? 'menu-seminars-item active' : 'menu-seminars-item'}> | ||
<a href="http://strom.localhost:3000/">Strom</a> | ||
</div> | ||
<div className={seminarId === 4 ? "menu-seminars-item active" : "menu-seminars-item"}> | ||
<div className={seminarId === 4 ? 'menu-seminars-item active' : 'menu-seminars-item'}> | ||
<a href="http://zdruzenie.localhost:3000/">Združenie</a> | ||
</div> | ||
</div> | ||
); | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./MenuSeminars"; | ||
export * from './MenuSeminars' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import "./index.css"; | ||
import {Webstrom} from "./Webstrom"; | ||
import './index.css' | ||
|
||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
|
||
import {Webstrom} from './Webstrom' | ||
|
||
ReactDOM.render( | ||
<React.StrictMode> | ||
<Webstrom /> | ||
</React.StrictMode>, | ||
document.getElementById("root") | ||
); | ||
document.getElementById('root'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./MainContentRouter"; | ||
export * from './MainContentRouter' |
Oops, something went wrong.