Add eslint and run linter in workflow

This commit is contained in:
Carlos Fernandez 2026-04-20 17:47:37 -04:00
parent f850cbda76
commit 69adeb7e0e
23 changed files with 974 additions and 36 deletions

14
eslint.config.mjs Normal file
View file

@ -0,0 +1,14 @@
import globals from 'globals';
import { defineConfig } from 'eslint/config';
import prettier from 'eslint-plugin-prettier';
export default defineConfig([
{ files: ['**/*.{js,mjs,cjs}'], languageOptions: { globals: globals.browser } },
{ plugins: { prettier } },
{
files: ['**/*.{js,mjs,cjs}'],
rules: {
'prettier/prettier': 'error'
}
}
]);