More linting

This commit is contained in:
2026-02-13 15:02:30 -03:00
parent db75809bd0
commit bbf61cd6d5
5 changed files with 58 additions and 8 deletions

20
eslint.config.js Normal file
View File

@@ -0,0 +1,20 @@
import prettierConfig from 'eslint-config-prettier/flat'
export default [
{
files: ['src/**/*.js'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'script',
globals: {
window: 'readonly',
document: 'readonly',
dataLayer: 'writable',
},
},
rules: {
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
},
},
prettierConfig,
]