mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 07:06:07 +00:00
31 lines
639 B
JavaScript
31 lines
639 B
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import { defineConfig } from 'eslint/config'
|
|
import eslintPluginYml from 'eslint-plugin-yml'
|
|
|
|
export default defineConfig([
|
|
...eslintPluginYml.configs['flat/recommended'],
|
|
{
|
|
extends: ['js/recommended'],
|
|
plugins: {
|
|
js,
|
|
},
|
|
languageOptions: {
|
|
ecmaVersion: 2022,
|
|
globals: {
|
|
...globals.node,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
extends: eslintPluginYml.configs['flat/recommended'],
|
|
files: ['*.yml'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: 'yaml-eslint-parser',
|
|
defaultYAMLVersion: '1.2',
|
|
},
|
|
},
|
|
},
|
|
])
|