Files
armandine/eslint.config.js
mifi 614aad4a8b
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy unknown status
ci/woodpecker/push/build Pipeline failed
Some tweaks to improve CWV
2026-02-14 19:45:11 -03:00

29 lines
798 B
JavaScript

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-undef': 'warn',
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-var': 'warn',
'prefer-arrow-callback': 'warn',
'prefer-const': 'warn',
'prefer-destructuring': 'warn',
'prefer-rest-params': 'warn',
'prefer-spread': 'warn',
'prefer-template': 'warn',
}
},
prettierConfig
]