Skip to content

Commit 9ecfa3a

Browse files
authored
Merge pull request #19 from lissy93/fix/lint-warnings
Fix/lint warnings
2 parents f34f93d + cbdfbc7 commit 9ecfa3a

23 files changed

Lines changed: 72 additions & 80 deletions

.github/README.md

Lines changed: 24 additions & 24 deletions
Large diffs are not rendered by default.

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ jobs:
266266
badges:
267267
name: Update Lint Badges
268268
needs: [setup, lint]
269-
if: always()
269+
if: ${{ always() && github.event_name != 'pull_request' }}
270270
runs-on: ubuntu-latest
271271
continue-on-error: true
272272
steps:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ jobs:
431431
badges:
432432
name: Update Test Badges
433433
needs: [setup, test]
434-
if: always()
434+
if: ${{ always() && github.event_name != 'pull_request' }}
435435
runs-on: ubuntu-latest
436436
continue-on-error: true
437437
steps:

apps/alpine/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ For simple interactive websites, Alpine hits the sweet spot. You get modern reac
110110
## Real-World App
111111
Since the weather app is very simple, it may be helpful to see a more practical implementation of a Alpine.js app. So, checkout:
112112

113-
<a href="https://github.com/Lissy93/who-dat"><img align="left" src="https://storage.googleapis.com/as93-screenshots/project-logos/who-dat.png" width="96"></a>
113+
<a href="https://github.com/Lissy93/who-dat"><img align="left" src="https://pixelflare.cc/alicia/logo/who-dat/w256" width="96"></a>
114114

115115
> **Who Dat** - _WHOIS lookup for domain registration info_<br>
116116
> 🐙 Get it on GitHub at [github.com/Lissy93/who-dat](https://github.com/Lissy93/who-dat)<br>

apps/angular/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ For a simple weather app, we really didn't need any of Angular's big or flagship
110110
## Real-World App
111111
Since the weather app is very simple, it may be helpful to see a more practical implementation of a Angular app. So, checkout:
112112

113-
<a href="https://github.com/Lissy93/domain-locker"><img align="left" src="https://storage.googleapis.com/as93-screenshots/project-logos/domain-locker.png" width="96"></a>
113+
<a href="https://github.com/Lissy93/domain-locker"><img align="left" src="https://pixelflare.cc/alicia/logo/domain-locker/w256" width="96"></a>
114114

115115
> **Domain Locker** - _Domain name portfolio manager_<br>
116116
> 🐙 Get it on GitHub at [github.com/Lissy93/domain-locker](https://github.com/Lissy93/domain-locker)<br>

apps/lit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ But Lit really does shine for design systems and component libraries where you n
109109
## Real-World App
110110
Since the weather app is very simple, it may be helpful to see a more practical implementation of a Lit app. So, checkout:
111111

112-
<a href="https://github.com/Lissy93/email-comparison"><img align="left" src="https://storage.googleapis.com/as93-screenshots/project-logos/email-comparison.png" width="96"></a>
112+
<a href="https://github.com/Lissy93/email-comparison"><img align="left" src="https://pixelflare.cc/alicia/logo/email-comparison/w256" width="96"></a>
113113

114114
> **Email Comparison** - _An objective comparison of privacy-respecting email providers_<br>
115115
> 🐙 Get it on GitHub at [github.com/Lissy93/email-comparison](https://github.com/Lissy93/email-comparison)<br>

apps/lit/src/forecast-item.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { WeatherUtils } from './weather-utils.js';
33
import { designSystemStyles, baseStyles, componentStyles } from './shared-styles.js';
44

55
export class ForecastItem extends LitElement {
6-
// eslint-disable-next-line
76
static styles = [
87
designSystemStyles,
98
baseStyles,
@@ -15,7 +14,6 @@ export class ForecastItem extends LitElement {
1514
`
1615
];
1716

18-
// eslint-disable-next-line
1917
static properties = {
2018
forecastData: { type: Object },
2119
index: { type: Number },
@@ -32,7 +30,7 @@ export class ForecastItem extends LitElement {
3230
}
3331

3432
render() {
35-
if (!this.forecastData) return html``;
33+
if (!this.forecastData) {return html``;}
3634

3735
const { daily, index } = this;
3836
const dayName = WeatherUtils.formatDate(daily.time[index]);
@@ -134,7 +132,7 @@ export class ForecastItem extends LitElement {
134132

135133
updated(changedProperties) {
136134
super.updated(changedProperties);
137-
135+
138136
if (changedProperties.has('active') && this.active) {
139137
// Smooth scroll to the expanded item
140138
setTimeout(() => {
@@ -144,4 +142,4 @@ export class ForecastItem extends LitElement {
144142
}
145143
}
146144

147-
customElements.define('forecast-item', ForecastItem);
145+
customElements.define('forecast-item', ForecastItem);

apps/lit/src/shared-styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,4 +519,4 @@ export const componentStyles = css`
519519
grid-template-columns: 1fr;
520520
}
521521
}
522-
`;
522+
`;

apps/lit/src/weather-app.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import './weather-search.js';
55
import './weather-display.js';
66

77
export class WeatherApp extends LitElement {
8-
// eslint-disable-next-line
98
static styles = [
109
designSystemStyles,
1110
baseStyles,
@@ -23,7 +22,6 @@ export class WeatherApp extends LitElement {
2322
`
2423
];
2524

26-
// eslint-disable-next-line
2725
static properties = {
2826
_searchQuery: { state: true },
2927
_isLoading: { state: true },
@@ -100,7 +98,7 @@ export class WeatherApp extends LitElement {
10098
try {
10199
this._setLoading(true);
102100
this._clearError();
103-
101+
104102
this._weatherData = await this._weatherService.getWeatherByCity(city);
105103
this._saveLocation(city);
106104
this._showWeatherContent();
@@ -142,16 +140,16 @@ export class WeatherApp extends LitElement {
142140
}
143141

144142
navigator.geolocation.getCurrentPosition(
145-
async (position) => {
143+
async(position) => {
146144
try {
147145
this._setLoading(true);
148146
this._clearError();
149-
147+
150148
const { latitude, longitude } = position.coords;
151149
this._weatherData = await this._weatherService.getWeatherData(latitude, longitude);
152150
this._weatherData.locationName = 'Current Location';
153151
this._searchQuery = 'Current Location';
154-
152+
155153
this._showWeatherContent();
156154
resolve();
157155
} catch (error) {
@@ -209,4 +207,4 @@ export class WeatherApp extends LitElement {
209207
}
210208
}
211209

212-
customElements.define('weather-app', WeatherApp);
210+
customElements.define('weather-app', WeatherApp);

apps/lit/src/weather-display.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { designSystemStyles, baseStyles, componentStyles } from './shared-styles
44
import './weather-forecast.js';
55

66
export class WeatherDisplay extends LitElement {
7-
// eslint-disable-next-line
87
static styles = [
98
designSystemStyles,
109
baseStyles,
@@ -16,7 +15,6 @@ export class WeatherDisplay extends LitElement {
1615
`
1716
];
1817

19-
// eslint-disable-next-line
2018
static properties = {
2119
weatherData: { type: Object },
2220
isLoading: { type: Boolean },
@@ -68,7 +66,7 @@ export class WeatherDisplay extends LitElement {
6866

6967
_renderWeatherContent() {
7068
const { current, locationName, country } = this.weatherData;
71-
69+
7270
return html`
7371
<div class="weather-content" data-testid="weather-content">
7472
<div class="weather-layout">
@@ -147,4 +145,4 @@ export class WeatherDisplay extends LitElement {
147145
}
148146
}
149147

150-
customElements.define('weather-display', WeatherDisplay);
148+
customElements.define('weather-display', WeatherDisplay);

0 commit comments

Comments
 (0)