Gabe Kangas
e50b23d081
Cleanup unused Javascript ( #3027 )
...
* chore(js): be stricter about dead code warnings
* chore(js): remove dead code and unused exports
* rebase
* chore: remove unused files
* chore(deps): remove unused prop-types dep
* chore(js): remove unused function
* chore(deps): remove + check unused deps
* chore(js): remove unused exports. Closes #3036
2023-05-20 21:15:25 -07:00
Gabe Kangas
5f2252f2a4
chore(tests): add js validation tests
...
These are the first javascript unit tests. Added them to the CI worflow.
Closes #2930
2023-04-16 14:36:23 -07:00
renovate[bot]
6112c43817
chore(deps): update dependency eslint-plugin-react to v7.32.0 (webv2) ( #2580 )
...
* chore(deps): update dependency eslint-plugin-react to v7.32.0
* Turn off react/destructuring-assignment
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-01-16 12:38:06 -08:00
Matthew Heller
a831b9805c
React 18 ( #2198 )
...
* Update npm dependencies.
* Move @storybook/react to devDependencies. Minor update to recoil.
* Exempt stories.tsx files from the extraneous dependency check so that we can use npm audit --omit=dev to get a clearer idea of vulnerabilities present in a production build.
* Prettified Code!
Co-authored-by: heller <heller@users.noreply.github.com>
2022-10-11 22:53:51 -07:00
James Young
d1f3fffe2f
reafctor: normalize component formatting ( #2082 )
...
* refactor: move/rename BanUserButton file
* refactor: move/rename Chart file
* refactor: update generic component filenames to PascalCase
* refactor: update config component filenames to PascalCase
* refactor: update AdminLayout component filename to PascalCase
* refactor: update/move VideoJS component
* chore(eslint): disable bad react/require-default-props rule
* refactor: normalize ActionButton component
* refactor: normalize ActionButtonRow component
* refactor: normalize FollowButton component
* refactor: normalize NotifyButton component
* refactor: normalize ChatActionMessage component
* refactor: normalize ChatContainer component
* refactor: normalize ChatJoinMessage component
* refactor: normalize ChatModerationActionMenu component
* refactor: normalize ChatModerationDetailsModal component
* refactor: normalize ChatModeratorNotification component
* refactor: normalize ChatSocialMessage component
* refactor: normalize ChatSystemMessage component
* refactor: normalize ChatTextField component
* refactor: normalize ChatUserBadge component
* refactor: normalize ChatUserMessage component
* refactor: normalize ContentHeader component
* refactor: normalize OwncastLogo component
* refactor: normalize UserDropdown component
* chore(eslint): modify react/function-component-definition rule
* refactor: normalize CodecSelector component
* refactor: update a bunch of functional components using eslint
* refactor: update a bunch of functional components using eslint, pt2
* refactor: update a bunch of functional components using eslint, pt3
* refactor: replace all component->component default imports with named imports
* refactor: replace all component-stories->component default imports with named imports
* refactor: remove default exports from most components
* chore(eslint): add eslint config files for the components and pages dirs
* fix: use-before-define error in ChatContainer
* Fix ChatContainer import
* Only process .tsx files in Next builds
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2022-09-07 00:00:28 -07:00
Gabe Kangas
32e900f1d0
Fix linter warnings
2022-06-29 14:12:31 -07:00
Gabe Kangas
72c01e1b9a
Fix web project build errors
2022-05-11 23:31:31 -07:00
Gabe Kangas
a0354d6d49
Handle centralized app state and registration + chat history
2022-05-02 17:45:22 -07:00
Gabe Kangas
3ce6fd4cb3
Add support for less variables and using a custom theme
2022-04-25 15:52:38 -07:00
Gabe Kangas
1c77219a75
First pass at component library
2022-04-25 15:52:38 -07:00
Gabe Kangas
3872b0bf13
Silence, warning.
2021-11-12 16:39:16 -08:00
Gabe Kangas
81c159e265
Don't require using next Image tag
2021-11-10 21:49:31 -08:00
gabek
dc0bf6db89
Prettified Code!
2021-10-14 01:22:18 +00:00
Gabe Kangas
5b2d215c52
Update eslint workflow. Set nextjs default rules.
2021-10-13 18:21:51 -07:00
gabek
a8b9703502
Prettified Code!
2021-08-30 01:19:45 +00:00
Gabe Kangas
683ec7881d
Turn off react/jsx-no-bind
2021-08-29 18:19:18 -07:00
Jannik
be5243f5f8
Update Next to 11.0.1 (including lint & import fixes) ( #248 )
...
* Bump next from 10.2.3 to 11.0.1
Bumps [next](https://github.com/vercel/next.js ) from 10.2.3 to 11.0.1.
- [Release notes](https://github.com/vercel/next.js/releases )
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js )
- [Commits](https://github.com/vercel/next.js/compare/v10.2.3...v11.0.1 )
---
updated-dependencies:
- dependency-name: next
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* 🚨 apply automatic linting
* 🎨 remove unused imports
* 🔇 allow console.* to give more debugging options
* 🎨 move stuff around to reduce linter messages
* 🚨 use destructuring so lint won't complain
* 📌 link Chartkick and Chart.js
Commit uses the linking code which was previously imported with
`import "chartkick/chart.js" [1]. Next did not like the import path,
but this does works now. ¯\_(ツ)_/¯
[1]: https://github.com/ankane/chartkick.js/blob/master/chart.js/chart.esm.js
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-09 11:42:01 -07:00
gabek
990c402a96
Prettified Code!
2021-06-16 06:17:22 +00:00
Gabe Kangas
238842bb66
eslint configs have been merged. https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21
2021-06-15 23:16:45 -07:00
Gabe Kangas
dc40bb234a
add jsx-no-target-blank to eslint config
2021-03-27 18:03:43 -07:00
gingervitis
67c160afdb
some prettifying ✨
2021-01-31 01:38:20 -08:00
Ginger Wong
f001904e35
eslint rule updates for typescript
2020-10-10 18:48:29 -07:00
Gabe Kangas
fe6c285b43
Add linting and code formatting
2020-09-30 18:47:18 -07:00