diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index e8f40362..40367209 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install npm dependencies - run: cd app && npm ci + - name: Install yarn dependencies + run: cd app && yarn install --frozen-lockfile - name: Run linter - run: cd app && npm run lint + run: cd app && yarn lint diff --git a/app/.eslintrc.js b/app/.eslintrc.js index 3e4cbdce..728ddd1a 100644 --- a/app/.eslintrc.js +++ b/app/.eslintrc.js @@ -2,37 +2,17 @@ module.exports = { root: true, env: { es2021: true, - node: true + node: true, }, extends: [ 'plugin:vue/strongly-recommended', 'eslint:recommended', - 'standard' + 'plugin:prettier/recommended', ], rules: { - 'vue/max-attributes-per-line': [ - 'error', - { - singleline: 3, - multiline: 3 - } - ], - 'vue/multi-word-component-names': 'off', // FIXME this should be adressed at some point - 'no-console': 'warn', - 'template-curly-spacing': 'off', - camelcase: 'warn', - indent: 'off', - 'no-irregular-whitespace': 'off', 'no-unused-vars': [ 'warn', - { varsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' } + { varsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' }, ], - quotes: 'warn', - 'no-multiple-empty-lines': [ - 'error', - { - max: 2 - } - ] - } + }, } diff --git a/app/.prettierignore b/app/.prettierignore new file mode 100644 index 00000000..849ddff3 --- /dev/null +++ b/app/.prettierignore @@ -0,0 +1 @@ +dist/ diff --git a/app/.prettierrc b/app/.prettierrc new file mode 100644 index 00000000..ad7671ce --- /dev/null +++ b/app/.prettierrc @@ -0,0 +1,19 @@ +{ + "semi": false, + "tabWidth": 2, + "singleQuote": true, + "overrides": [ + { + "files": "**/*.json", + "options": { + "tabWidth": 4 + } + }, + { + "files": "./*.json", + "options": { + "tabWidth": 2 + } + } + ] +} diff --git a/app/index.html b/app/index.html index 6b2030d5..8db9df95 100644 --- a/app/index.html +++ b/app/index.html @@ -1,23 +1,26 @@ - + +
+ + + + + + +