Skip to content

Commit

Permalink
use pinia for most inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Nov 17, 2024
1 parent 55a2a7c commit b575bb2
Show file tree
Hide file tree
Showing 11 changed files with 297 additions and 276 deletions.
35 changes: 0 additions & 35 deletions .eslintrc.cjs

This file was deleted.

46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import pluginVitest from '@vitest/eslint-plugin'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
import vueTsEslintConfig from '@vue/eslint-config-typescript'
import pluginPlaywright from 'eslint-plugin-playwright'
import pluginVue from 'eslint-plugin-vue'

export default [
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}']
},

{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**']
},

...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),

{
...pluginVitest.configs.recommended,
files: ['src/**/__tests__/*']
},

{
...pluginPlaywright.configs['flat/recommended'],
files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],
rules: {
...pluginPlaywright.configs['flat/recommended'].rules
}
},
skipFormatting,
{
rules: {
'@typescript-eslint/no-unused-expressions': [
'error',
{
allowShortCircuit: true,
allowTernary: true
}
],
'vue/multi-word-component-names': 'off'
}
}
]
Loading

0 comments on commit b575bb2

Please sign in to comment.