Skip to content
Open

V2 #17

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PUBLIC_URL=/
7 changes: 3 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
},
},
parser: `@typescript-eslint/parser`,
plugins: [`react`, `react-hooks`, `prettier`, `@typescript-eslint`],
plugins: [`react`, `react-hooks`, `prettier`, `@typescript-eslint`, `import`],
extends: [
`react-app`,
`react-app/jest`,
Expand All @@ -15,11 +15,11 @@ module.exports = {
`plugin:@typescript-eslint/recommended`,
`plugin:react/recommended`,
`plugin:react-hooks/recommended`,
`prettier`,
`plugin:prettier/recommended`,
],
rules: {
'prettier/prettier': [
1,
2,
{
arrowParens: `always`,
bracketSpacing: true,
Expand All @@ -36,7 +36,6 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/explicit-module-boundary-types': 1,
'@typescript-eslint/no-empty-interface': 0,
'import/order': 1,
'no-console': [1, { allow: [`error`] }],
'object-shorthand': 1,
},
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{ts,tsx}": ["npm run lint --max-warnings=0"]
}
16 changes: 16 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"bracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 120,
"proseWrap": "always",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ The application is available on the GitHub pages.
https://stetizu1.github.io/tabular-data-visualization/

## Build and run
To build/run the application locally, you need to have node and yarn installed.
To build/run the application locally, you need to have node and npm installed.

In the root of the application
* Use `yarn` to install the dependencies.
* Use `yarn start` to run the application.
* Use `npm i` to install the dependencies.
* Use `npm run start` to run the application.

### Versions
Application was developed using
* **node** v16.13.0
* **yarn** 1.22.17
* **node** v18.13.0
* **npm** 8.19.3

## Example datasets
Application provides sample datasets. Additional examples of datasets that can be loaded as a file can be found in the `load-test-data` directory. You can also observe the required file format on them.
Loading