Skip to content

Commit

Permalink
feat: redesing scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
nikaaru committed Dec 19, 2023
1 parent 129b14e commit 684cca7
Show file tree
Hide file tree
Showing 208 changed files with 6,391 additions and 1,692 deletions.
10 changes: 9 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
**/node_modules/*
**/out/*
**/.next/*
**/.next/*

node_modules
.next
build

next.config.js
postcss.config.js
tailwind.config.js
35 changes: 0 additions & 35 deletions .eslintrc.js

This file was deleted.

47 changes: 47 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"react",
"react-hooks",
"destructuring"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:@next/next/recommended",
"plugin:prettier/recommended"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": true,
"tsconfigRootDir": "__dirname"
},
"rules": {
// React scope no longer necessary with new JSX transform\
"react/react-in-jsx-scope": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
// Allow .js files to use JSX syntax
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"react/no-unescaped-entities": "off"
},
"root": true
}
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"

npx lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{ts,tsx}": ["eslint --fix --quiet"],
"*.{ts,tsx,json}": ["prettier --write"]
}
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
.next
yarn.lock
package-lock.json
public
public
build
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"tabWidth": 2,
"singleQuote": true,
"jsxBracketSameLine": true
}
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev"
},
{
"name": "Next.js: chrome debug client-side",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000"
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}
109 changes: 0 additions & 109 deletions components/Chart.tsx

This file was deleted.

60 changes: 0 additions & 60 deletions components/ChartBox.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions components/Layout.tsx

This file was deleted.

Loading

0 comments on commit 684cca7

Please sign in to comment.