mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-06 21:34:03 -05:00
31 lines
624 B
JavaScript
31 lines
624 B
JavaScript
import globals from 'globals';
|
|
import js from '@eslint/js';
|
|
import mocha from 'eslint-plugin-mocha';
|
|
import { defineConfig } from 'eslint/config';
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ['**/*.js'],
|
|
plugins: {
|
|
js,
|
|
mocha,
|
|
},
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
...globals.mocha,
|
|
},
|
|
},
|
|
extends: ['js/recommended'],
|
|
rules: {
|
|
// Your custom rules
|
|
indent: ['error', 2],
|
|
quotes: ['error', 'single'],
|
|
semi: ['error', 'always'],
|
|
},
|
|
},
|
|
]);
|