Skip to content

Commit

Permalink
feat(collectibles): add form validation error when committee not set (#…
Browse files Browse the repository at this point in the history
…3750)

Description
---
- Add alert on save click when no committee members were added
- Adds eslint rules (rules chosen to limit lines of code changed, not based on any preference I have, defaults are probably best)

Motivation and Context
---
Dont submit the form unless at least one committee member is chosen

How Has This Been Tested?
---
Manually
  • Loading branch information
sdbondi committed Jan 26, 2022
1 parent ec92919 commit dfdaf4b
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 654 deletions.
19 changes: 19 additions & 0 deletions applications/tari_collectibles/web-app/.eslintrc.js
@@ -0,0 +1,19 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ["plugin:react/recommended"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react"],
rules: {},
settings: {
react: {version: "detect"},
},
};
4 changes: 3 additions & 1 deletion applications/tari_collectibles/web-app/.prettierrc
Expand Up @@ -3,5 +3,7 @@
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 4,
"bracketSpacing": false
"bracketSpacing": false,
"singleQuote": false,
"jsxSingleQuote": false
}

0 comments on commit dfdaf4b

Please sign in to comment.