Skip to content
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

[WIP] enable prettier to run automatically #522

Closed
wants to merge 12 commits into from
Closed
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = {
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
indent: ['error', 2],
'comma-dangle': ['error', 'always-multiline'],
'space-before-function-paren': ['warn', 'never'],
'vue/require-default-prop': 'off',
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint and Test

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4

# https://github.com/actions/setup-node
- name: Use Node.js 14
uses: actions/setup-node@v4
with:
node-version: '14'

- name: Clean install NPM packages from package-lock.json
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm run test:unit
env:
CI: true

# https://github.com/cypress-io/github-action
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run serve
wait-on: 'http://localhost:8080'
36 changes: 0 additions & 36 deletions .github/workflows/pull_request.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/push.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
#npm test
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
docs/
coverage
dist
2 changes: 1 addition & 1 deletion docs/css/app.13691e82.css → docs/css/app.2fdce638.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="Want to license your work with Creative Commons, but not sure where to start, or which license is right for you? Use our license chooser!"><link rel="icon" href="/favicon.ico"><link rel="icon" type="image/png" href="https://creativecommons.org/wp-content/uploads/2016/05/cc-site-icon-300x300.png" sizes="192x192"><link rel="apple-touch-icon-precomposed" href="https://creativecommons.org/wp-content/uploads/2016/05/cc-site-icon-300x300.png"><meta name="twitter:card" content="summary"><meta name="twitter:site" content="@creativecommons"><meta name="twitter:creator" content="@creativecommons"><meta property="og:url" content="https://beta-chooser.creativecommons.org"><meta property="og:title" content="Choose a License"><meta property="og:type" content="website"><meta property="og:description" content="Want to license your work with Creative Commons, but not sure where to start, or which license is right for you? Use our license chooser!"><meta property="og:image" content="https://mirrors.creativecommons.org/presskit/logos/cc.logo.large.png"><meta property="og:locale" content="en_US"><meta property="og:locale:alternate" content="ru_RU"><title>Choose a License</title><link href="/css/chunk-756304ec.896f9d80.css" rel="prefetch"><link href="/js/chunk-756304ec.92bd0d02.js" rel="prefetch"><link href="/css/app.13691e82.css" rel="preload" as="style"><link href="/js/app.4b995362.js" rel="preload" as="script"><link href="/js/chunk-vendors.65de612a.js" rel="preload" as="script"><link href="/css/app.13691e82.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but License Chooser doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.65de612a.js"></script><script src="/js/app.4b995362.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="Want to license your work with Creative Commons, but not sure where to start, or which license is right for you? Use our license chooser!"><link rel="icon" href="/favicon.ico"><link rel="icon" type="image/png" href="https://creativecommons.org/wp-content/uploads/2016/05/cc-site-icon-300x300.png" sizes="192x192"><link rel="apple-touch-icon-precomposed" href="https://creativecommons.org/wp-content/uploads/2016/05/cc-site-icon-300x300.png"><meta name="twitter:card" content="summary"><meta name="twitter:site" content="@creativecommons"><meta name="twitter:creator" content="@creativecommons"><meta property="og:url" content="https://beta-chooser.creativecommons.org"><meta property="og:title" content="Choose a License"><meta property="og:type" content="website"><meta property="og:description" content="Want to license your work with Creative Commons, but not sure where to start, or which license is right for you? Use our license chooser!"><meta property="og:image" content="https://mirrors.creativecommons.org/presskit/logos/cc.logo.large.png"><meta property="og:locale" content="en_US"><meta property="og:locale:alternate" content="ru_RU"><title>Choose a License</title><link href="/css/chunk-87a74b80.493fcced.css" rel="prefetch"><link href="/js/chunk-87a74b80.6e5f111e.js" rel="prefetch"><link href="/css/app.2fdce638.css" rel="preload" as="style"><link href="/js/app.afe83491.js" rel="preload" as="script"><link href="/js/chunk-vendors.58f5ae05.js" rel="preload" as="script"><link href="/css/app.2fdce638.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but License Chooser doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.58f5ae05.js"></script><script src="/js/app.afe83491.js"></script></body></html>
2 changes: 0 additions & 2 deletions docs/js/app.4b995362.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/app.4b995362.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions docs/js/app.afe83491.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/app.afe83491.js.map

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions docs/js/chunk-756304ec.92bd0d02.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/chunk-756304ec.92bd0d02.js.map

This file was deleted.

9 changes: 9 additions & 0 deletions docs/js/chunk-87a74b80.6e5f111e.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/chunk-87a74b80.6e5f111e.js.map

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions docs/js/chunk-vendors.58f5ae05.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/chunk-vendors.58f5ae05.js.map

Large diffs are not rendered by default.

65 changes: 0 additions & 65 deletions docs/js/chunk-vendors.65de612a.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/chunk-vendors.65de612a.js.map

This file was deleted.

Loading