Skip to content

Instantly share code, notes, and snippets.

View frontandrews's full-sized avatar

Front-Andrews frontandrews

View GitHub Profile
@frontandrews
frontandrews / eslint.config.mjs
Created January 28, 2025 19:30
Eslint config with cypress and vitest
import pluginVue from 'eslint-plugin-vue';
import vueTsEslintConfig from '@vue/eslint-config-typescript';
import tsEslint from 'typescript-eslint'
import pluginVitest from '@vitest/eslint-plugin';
import pluginCypress from 'eslint-plugin-cypress/flat';
export default [
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
@frontandrews
frontandrews / eslint.config.mjs
Created January 28, 2025 19:26
Simple eslint template
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginVue from 'eslint-plugin-vue';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs['flat/recommended'],
{
ignores: ['node_modules', 'build'],