mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-06 21:24:02 -05:00
28 lines
587 B
JavaScript
28 lines
587 B
JavaScript
import js from '@eslint/js';
|
|
import globals from 'globals';
|
|
import { defineConfig } from 'eslint/config';
|
|
import eslintPluginAstro from 'eslint-plugin-astro';
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ['**/*.{js,mjs,cjs}'],
|
|
plugins: { js },
|
|
extends: ['js/recommended'],
|
|
},
|
|
{
|
|
files: ['**/*.{js,mjs,cjs}'],
|
|
languageOptions: { globals: { ...globals.browser, ...globals.node } },
|
|
},
|
|
{
|
|
rules: {
|
|
'no-unused-vars': [
|
|
'error',
|
|
{
|
|
caughtErrors: 'none',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
...eslintPluginAstro.configs.recommended,
|
|
]);
|