20 lines
605 B
JavaScript
20 lines
605 B
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
import stylistic from '@stylistic/eslint-plugin'
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ['**/*.{js,mjs,cjs}'],
|
|
plugins: { js, '@stylistic': stylistic},
|
|
extends: ['js/recommended'],
|
|
languageOptions: { globals: globals.browser },
|
|
rules: {
|
|
'@stylistic/indent': ['error', 2],
|
|
'@stylistic/quotes': ['error', 'single'],
|
|
'@stylistic/semi': ['error', 'never'],
|
|
'@stylistic/comma-dangle': ['error', 'never']
|
|
}
|
|
},
|
|
globalIgnores(['dist'])
|
|
])
|