-
Notifications
You must be signed in to change notification settings - Fork 0
adds lint checks to web shared pkg #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds ESLint configuration and enforcement to the web-shared package, bringing it in line with consistent code styling standards across the project. The changes include adding a linting script, configuring ESLint rules, and applying automated formatting fixes throughout the codebase.
Key Changes:
- Added ESLint configuration file (
.eslintrc.js) with rules for import ordering, comment formatting, and code style - Added lint script to
package.jsonfor the web-shared package - Updated GitHub Actions workflow to include linting checks for the web-shared package alongside web-embeds
- Applied automated formatting fixes across 100+ files including import statement reorganization, comment spacing corrections, and code formatting improvements
Reviewed changes
Copilot reviewed 166 out of 168 changed files in this pull request and generated 28 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/lint.yml |
Extended CI workflow to run lint checks on web-shared package; updated to use latest GitHub Actions versions |
packages/web-shared/.eslintrc.js |
New ESLint configuration defining import ordering, comment formatting, and style rules |
packages/web-shared/package.json |
Added lint script to enable ESLint checks |
yarn.lock |
Updated dependency entries for string-width, strip-ansi, and wrap-ansi packages |
packages/web-shared/**/*.js |
Applied automated formatting fixes including import reordering, comment spacing, quote consistency, and line break adjustments across all JavaScript files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| import SearchStyles from '../Searchbar/Search.styles'; | ||
|
|
||
| import { useCurrentChurch } from '../../hooks'; | ||
| import { Box, Avatar } from '../../ui-kit'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import Avatar.
| import { Box, Avatar } from '../../ui-kit'; | |
| import { Box } from '../../ui-kit'; |
| import { useCurrentChurch } from '../../hooks'; | ||
| import { Box, Avatar } from '../../ui-kit'; | ||
| import ProfileButton from '../Profile/ProfileButton'; | ||
| import SearchStyles from '../Searchbar/Search.styles'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import SearchStyles.
| import SearchStyles from '../Searchbar/Search.styles'; |
| import { withTheme } from 'styled-components'; | ||
| import styled, { css } from 'styled-components'; | ||
| import { themeGet } from '@styled-system/theme-get'; | ||
| import styled, { withTheme, css } from 'styled-components'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import css.
| import styled, { withTheme, css } from 'styled-components'; | |
| import styled, { withTheme } from 'styled-components'; |
| H6, | ||
| SmallBodyText, | ||
| } from '../../../ui-kit'; | ||
| import { Avatar, Card, Box, Button, Input, H2, H5, H6, SmallBodyText } from '../../../ui-kit'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused imports H2, H5.
| import { Avatar, Card, Box, Button, Input, H2, H5, H6, SmallBodyText } from '../../../ui-kit'; | |
| import { Avatar, Card, Box, Button, Input, H6, SmallBodyText } from '../../../ui-kit'; |
| import { getURLFromType } from '../utils'; | ||
| import { ContentCard, Box, H3, systemPropTypes, Button } from '../ui-kit'; | ||
| import { useNavigation } from '../providers/NavigationProvider'; | ||
| import { ContentCard, Box, H3, systemPropTypes, Button } from '../ui-kit'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import H3.
| import { ContentCard, Box, H3, systemPropTypes, Button } from '../ui-kit'; | |
| import { ContentCard, Box, systemPropTypes, Button } from '../ui-kit'; |
|
|
||
| import { Check } from '@phosphor-icons/react'; | ||
| import { unit } from '../../utils'; | ||
| import isNil from 'lodash/isNil'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import isNil.
| import { Title, Image, BottomSlot, CompleteIndicator, Ellipsis } from './MediaItem.styles'; | ||
| import LiveChip from './LiveChip'; | ||
| import { useLivestreamStatus } from '../../hooks'; | ||
| import { Title, Image, BottomSlot, CompleteIndicator, Ellipsis } from './MediaItem.styles'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused imports Image, Title.
| import { useLivestreamStatus } from '../../hooks'; | ||
| import { Title, Image, BottomSlot, CompleteIndicator, Ellipsis } from './MediaItem.styles'; | ||
| import { useVideoMediaProgress, useLivestreamStatus } from '../../hooks'; | ||
| import { BodyText, SmallBodyText, Box, H4, systemPropTypes, ProgressBar } from '../../ui-kit'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused imports BodyText, SmallBodyText.
| import { withTheme } from 'styled-components'; | ||
| import styled, { css } from 'styled-components'; | ||
| import { themeGet } from '@styled-system/theme-get'; | ||
| import styled, { withTheme, css } from 'styled-components'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import css.
| import { withTheme } from 'styled-components'; | ||
| import styled, { css } from 'styled-components'; | ||
| import { themeGet } from '@styled-system/theme-get'; | ||
| import styled, { withTheme, css } from 'styled-components'; |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import css.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
8888d47 to
922f58d
Compare
|
@vitlelis i'll address unused import warnings in a follow up |
dsilva609
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm this looks like the old eslint config (<8.57) format. Can we update this to be eslint 9 compatible as outlined here? https://eslint.org/docs/latest/use/migrate-to-9.0.0
can we do that in a follow up? the purpose of this PR is simply to introduce lint checks to the majority of the code. I've already found and fixed one bug. |
Actually, since this is in maintenance mode, we can probably leave it as is 👍 |
nlewis84
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with this since we are pushing everyone to get off this package.
No description provided.