Skip to content

Commit

Permalink
💄 Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianpb committed Feb 10, 2024
1 parent 7488c03 commit 3f45d54
Show file tree
Hide file tree
Showing 34 changed files with 3,359 additions and 3,308 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
ignorePatterns: ["dist/*", "cypress/*", "build/*"],
extends: ["eslint:recommended", "plugin:svelte/recommended", "prettier"],
rules: {
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2020,
extraFileExtensions: [".svelte"],
},
env: {
browser: true,
es2017: true,
node: true,
},
};
36 changes: 0 additions & 36 deletions .eslintrc.js

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/mopidy-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Mopidy base image
on:
push:
paths:
- 'Dockerfile-base'
- 'Dockerfile-snapserver'
- '.github/workflows/mopidy-base.yml'
- "Dockerfile-base"
- "Dockerfile-snapserver"
- ".github/workflows/mopidy-base.yml"

jobs:
docker-mopidy:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ name: Build package & publish
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- '**' # Push events on all branchs
tags:
- v* # Push events with tags starting with v
branches:
- "**" # Push events on all branchs
tags:
- v* # Push events with tags starting with v

jobs:
publish:
Expand All @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '18.x'
node-version: "18.x"
- name: Cache dependencies
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
prerelease: false
- run: mv Mopidy-Muse*.tar.gz Mopidy-Muse.tar.gz
- name: 🍱 Upload Release Asset
id: upload-release-asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ A mopidy player with snapcast support

## Features

* Support for snapcast volume control
* Responsive design based in bulma framework
* Modify tracklists using drag and drop motions
* Create and modify playlists
* Reactive search for tracklists in different sources
* No user tracking (No Google Analytics)
* Created using state of the art web technologies:
* Svelte framework for small package size
* Sapper for multiple pages and server side rendering
* Github Actions CI/CD workflow for build and publish
- Support for snapcast volume control
- Responsive design based in bulma framework
- Modify tracklists using drag and drop motions
- Create and modify playlists
- Reactive search for tracklists in different sources
- No user tracking (No Google Analytics)
- Created using state of the art web technologies:
- Svelte framework for small package size
- Sapper for multiple pages and server side rendering
- Github Actions CI/CD workflow for build and publish

Checkout a detailled description at [this blog post](https://cristianpb.github.io/blog/mopidy-muse)

Expand All @@ -25,7 +25,7 @@ Checkout a detailled description at [this blog post](https://cristianpb.github.i

## Installation

### Python
### Python

Install by running:

Expand Down Expand Up @@ -63,5 +63,5 @@ make mopidy-docker

## Project resources

* [Source code](https://github.com/cristianpb/muse)
* [Issue tracker](https://github.com/cristianpb/muse/issues)
- [Source code](https://github.com/cristianpb/muse)
- [Issue tracker](https://github.com/cristianpb/muse/issues)
6 changes: 3 additions & 3 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"baseUrl": "http://localhost:3000",
"video": false
}
"baseUrl": "http://localhost:3000",
"video": false
}
2 changes: 1 addition & 1 deletion cypress/fixtures/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}
}
30 changes: 15 additions & 15 deletions cypress/integration/spec.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
describe('Sapper template app', () => {
beforeEach(() => {
cy.visit('/')
});
describe("Sapper template app", () => {
beforeEach(() => {
cy.visit("/");
});

it('has the correct <h1>', () => {
cy.contains('h1', 'Now playing')
});
it("has the correct <h1>", () => {
cy.contains("h1", "Now playing");
});

it('navigates to /search', () => {
cy.get('nav a').contains('Search').click();
cy.url().should('include', '/search');
});
it("navigates to /search", () => {
cy.get("nav a").contains("Search").click();
cy.url().should("include", "/search");
});

it('navigates to /browse', () => {
cy.get('nav a').contains('Browse').click();
cy.url().should('include', '/browse');
});
it("navigates to /browse", () => {
cy.get("nav a").contains("Browse").click();
cy.url().should("include", "/browse");
});
});
2 changes: 1 addition & 1 deletion cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}
};
2 changes: 1 addition & 1 deletion cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'
import "./commands";

// Alternatively you can use CommonJS syntax:
// require('./commands')
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.4'
version: "3.4"
services:
snapclient:
image: ivdata/snapclient
Expand Down
Loading

0 comments on commit 3f45d54

Please sign in to comment.