Skip to content

Commit

Permalink
Merge pull request #27 from Robocubs/dashboard-setup
Browse files Browse the repository at this point in the history
Initial setup of dashboard
  • Loading branch information
mpulte authored Jan 30, 2024
2 parents a6dab27 + 54e4ae4 commit 9ac848d
Show file tree
Hide file tree
Showing 28 changed files with 7,804 additions and 89 deletions.
45 changes: 45 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"env": {
"browser": true,
"es2020": true
},
"ignorePatterns": ["src/main/deploy", "node_modules", "dist"],
"extends": ["eslint:recommended", "prettier"],
"plugins": ["import", "prettier", "@typescript-eslint"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"prefer-const": ["error", { "destructuring": "all", "ignoreReadBeforeAssign": false }],
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
"import/order": ["error", { "alphabetize": { "order": "asc" } }],
"prettier/prettier": "error"
},
"overrides": [
{
"files": ["*.ts"],
"extends": [
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"rules": {
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": ["error", { "ignoreParameters": true }],
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none", "ignoreRestSiblings": true }],
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-nullish-coalescing": "off"
}
}
]
}
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- name: Grant execute permission
run: chmod +x gradlew
- name: Check formatting
run: ./gradlew spotlessCheck
run: ./gradlew lint
env:
CI: 'true'
- name: Build and test
run: ./gradlew build
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,12 @@ logs/

# Folder that has CTRE Phoenix Sim device config storage
ctre_sim/

#################
### Team 1701 ###
#################

# Node
node_modules
dist
src/main/deploy/web
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.wpilib
.github
src/main/deploy
vendordeps
*.md
package-lock.json
simgui*.json
networktables.json
navgrid.json
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bracketSpacing": true,
"printWidth": 150,
"quoteProps": "consistent",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
13 changes: 13 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"recommendations": [
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker",
"vscjava.vscode-gradle",
"richardwillis.vscode-spotless-gradle",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"runem.lit-plugin",
"bradlc.vscode-tailwindcss"
],
"unwantedRecommendations": ["vscjava.vscode-java-pack"]
}
41 changes: 20 additions & 21 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"type": "wpilib",
"name": "WPILib Desktop Debug",
"request": "launch",
"desktop": true,
},
{
"type": "wpilib",
"name": "WPILib roboRIO Debug",
"request": "launch",
"desktop": false,
}
]
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "wpilib",
"name": "WPILib Desktop Debug",
"request": "launch",
"desktop": true
},
{
"type": "wpilib",
"name": "WPILib roboRIO Debug",
"request": "launch",
"desktop": false
}
]
}
138 changes: 75 additions & 63 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,75 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.server.launchMode": "Standard",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"bin/": true,
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true,
"**/*~": true
},
"java.test.config": [
{
"name": "WPIlibUnitTests",
"workingDirectory": "${workspaceFolder}/build/jni/release",
"vmargs": [ "-Djava.library.path=${workspaceFolder}/build/jni/release" ],
"env": {
"LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" ,
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release"
}
},
],
"java.test.defaultConfig": "WPIlibUnitTests",
"editor.formatOnSave": true,
"files.eol": "\n",
"java.format.enabled": false,
"[java]": {
"files.trimTrailingWhitespace": false,
"spotlessGradle.format.enable": true,
"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle",
"editor.codeActionsOnSave": {
"source.fixAll.spotlessGradle": "always"
},
"editor.detectIndentation": false,
"editor.indentSize": 4
},
"[json]": {
"files.insertFinalNewline": true,
"editor.indentSize": 2
},
"[jsonc]": {
"files.insertFinalNewline": true,
"editor.indentSize": 2
},
"cSpell.words": [
"Brushless",
"Deadband",
"dtheta",
"Holonomic",
"Odometry",
"Reprojection",
"Setpoint",
"Setpoints",
"teleop",
"Uncomitted",
"WPILOG"
]
}
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.server.launchMode": "Standard",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"bin/": true,
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true,
"**/*~": true
},
"java.test.config": [
{
"name": "WPIlibUnitTests",
"workingDirectory": "${workspaceFolder}/build/jni/release",
"vmargs": ["-Djava.library.path=${workspaceFolder}/build/jni/release"],
"env": {
"LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release",
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release"
}
}
],
"java.test.defaultConfig": "WPIlibUnitTests",
"editor.formatOnSave": true,
"files.eol": "\n",
"java.format.enabled": false,
"files.associations": {
"*.css": "tailwindcss"
},
"[java]": {
"files.trimTrailingWhitespace": false,
"spotlessGradle.format.enable": true,
"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle",
"editor.codeActionsOnSave": {
"source.fixAll.spotlessGradle": "explicit"
},
"editor.detectIndentation": false,
"editor.indentSize": 4
},
"[json][jsonc][html][css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.indentSize": 2
},
"[javascript][typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.indentSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"eslint.rules.customizations": [
{ "rule": "*", "severity": "warn" },
{ "rule": "prettier/prettier", "severity": "off" }
],
"eslint.validate": ["javascript", "typescript", "svelte"],
"cSpell.words": [
"Brushless",
"Deadband",
"dtheta",
"Holonomic",
"Odometry",
"Reprojection",
"robocub",
"Setpoint",
"Setpoints",
"teleop",
"Uncomitted",
"WPILOG"
]
}
Loading

0 comments on commit 9ac848d

Please sign in to comment.