Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hankolsen authored and ruihildt committed Oct 24, 2024
1 parent ab56f6f commit 5d2fe70
Show file tree
Hide file tree
Showing 9 changed files with 7,285 additions and 4,903 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

37 changes: 0 additions & 37 deletions .eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
node-version: [20.11.0]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
58 changes: 58 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import vuePlugin from 'eslint-plugin-vue';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import unusedImports from 'eslint-plugin-unused-imports';
import vueTsEslintConfig from '@vue/eslint-config-typescript';
import prettier from 'eslint-config-prettier';

import globals from 'globals';
import js from '@eslint/js';

export default [
js.configs.recommended,
prettier,
...vueTsEslintConfig(),

{
plugins: {
'@typescript-eslint': tsPlugin,
vue: vuePlugin,
'unused-imports': unusedImports,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
'vue/setup-compiler-macros': 'readonly',
},

ecmaVersion: 2021,
sourceType: 'module',
},

rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
...vuePlugin.configs['vue3-recommended'].rules,
quotes: ['error', 'single', { allowTemplateLiterals: true }],

semi: ['error', 'always'],
'unused-imports/no-unused-imports': 'error',
'vue/attribute-hyphenation': 'off',
'vue/html-self-closing': 'off',
'vue/multi-word-component-names': 'off',
'vue/script-setup-uses-vars': 'error',

'vue/first-attribute-linebreak': [
'error',
{
singleline: 'ignore',
multiline: 'ignore',
},
],
},
},
{
ignores: ['**/dist', '**/node_modules'],
},
];
Loading

0 comments on commit 5d2fe70

Please sign in to comment.