Skip to content

Instantly share code, notes, and snippets.

@frontandrews
Created January 28, 2025 19:26
Show Gist options
  • Save frontandrews/8ea3d22d2824718403f87df4eed63e37 to your computer and use it in GitHub Desktop.
Save frontandrews/8ea3d22d2824718403f87df4eed63e37 to your computer and use it in GitHub Desktop.
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'],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
extraFileExtensions: ['.vue']
},
},
rules: {
// Custom rules
},
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment