mirror of
https://github.com/morris/vanilla-todo.git
synced 2025-01-16 20:28:22 +01:00
27 lines
591 B
JavaScript
27 lines
591 B
JavaScript
import js from '@eslint/js';
|
|
import compat from 'eslint-plugin-compat';
|
|
import globals from 'globals';
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
compat.configs['flat/recommended'],
|
|
{ ignores: ['es5'] },
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
globals: {
|
|
...globals.browser,
|
|
},
|
|
},
|
|
rules: {
|
|
'object-shorthand': 'error',
|
|
'prefer-arrow-callback': 'error',
|
|
'arrow-body-style': ['error', 'as-needed'],
|
|
'no-var': 'error',
|
|
'prefer-template': 'error',
|
|
'no-console': 'error',
|
|
},
|
|
},
|
|
];
|