diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..638c08f --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,38 @@ +{ + "env": { + "browser": true, + "es2021": true, + "node": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "react", + "@typescript-eslint" + ], + "rules": { + "indent": [ + "error", + 2 + ], + "quotes": [ + "error", + "single" + ], + "semi": [ + "error", + "never" + ] + } +} diff --git a/README.md b/README.md index 9d758a3..528bed4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ # Cultivation A custom launcher designed to easily proxy traffic from anime game to private servers. +## Developer Guide + +* Install Cargo & Rust compiler +* `npm install` +* `yarn tauri dev` + ## Work In Progress! \ No newline at end of file diff --git a/package.json b/package.json index 3b251a8..4663f2c 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "test": "react-scripts test", "eject": "react-scripts eject", "tauri": "tauri", - "start:dev": "tauri dev" }, "eslintConfig": { @@ -46,6 +45,10 @@ }, "devDependencies": { "@tauri-apps/cli": "^1.0.0-rc.10", - "cross-env": "^7.0.3" + "@typescript-eslint/eslint-plugin": "^5.22.0", + "@typescript-eslint/parser": "^5.22.0", + "cross-env": "^7.0.3", + "eslint": "^8.15.0", + "eslint-plugin-react": "^7.29.4" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index cb20b47..7afd97e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2082,7 +2082,7 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^5.5.0": +"@typescript-eslint/eslint-plugin@^5.22.0", "@typescript-eslint/eslint-plugin@^5.5.0": version "5.22.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.22.0.tgz#7b52a0de2e664044f28b36419210aea4ab619e2a" integrity sha512-YCiy5PUzpAeOPGQ7VSGDEY2NeYUV1B0swde2e0HzokRsHBYjSdF6DZ51OuRZxVPHx0032lXGLvOMls91D8FXlg== @@ -2104,7 +2104,7 @@ dependencies: "@typescript-eslint/utils" "5.22.0" -"@typescript-eslint/parser@^5.5.0": +"@typescript-eslint/parser@^5.22.0", "@typescript-eslint/parser@^5.5.0": version "5.22.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.22.0.tgz#7bedf8784ef0d5d60567c5ba4ce162460e70c178" integrity sha512-piwC4krUpRDqPaPbFaycN70KCP87+PC5WZmrWs+DlVOxxmF+zI6b6hETv7Quy4s9wbkV16ikMeZgXsvzwI3icQ== @@ -3965,7 +3965,7 @@ eslint-plugin-react-hooks@^4.3.0: resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.5.0.tgz#5f762dfedf8b2cf431c689f533c9d3fa5dcf25ad" integrity sha512-8k1gRt7D7h03kd+SAAlzXkQwWK22BnK6GKZG+FJA6BAGy22CFvl8kCIXKpVux0cCxMWDQUPqSok0LKaZ0aOcCw== -eslint-plugin-react@^7.27.1: +eslint-plugin-react@^7.27.1, eslint-plugin-react@^7.29.4: version "7.29.4" resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.29.4.tgz#4717de5227f55f3801a5fd51a16a4fa22b5914d2" integrity sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ== @@ -4036,7 +4036,7 @@ eslint-webpack-plugin@^3.1.1: normalize-path "^3.0.0" schema-utils "^3.1.1" -eslint@^8.3.0: +eslint@^8.15.0, eslint@^8.3.0: version "8.15.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.15.0.tgz#fea1d55a7062da48d82600d2e0974c55612a11e9" integrity sha512-GG5USZ1jhCu8HJkzGgeK8/+RGnHaNYZGrGDzUtigK3BsGESW/rs2az23XqE0WVwDxy1VRvvjSSGu5nB0Bu+6SA==