mcfly/eslint.config.mjs
Ayo 970970fd32 feat: use fastify as server
- [x] implement server framework plugin config
- [x] new @mcflyjs/fastify package
- [x] update readme re: pivot & target state
- [x] new basic template

Reviewed-on: https://git.ayo.run/ayo/mcfly/pulls/2
Co-authored-by: Ayo <ayo@ayco.io>
Co-committed-by: Ayo <ayo@ayco.io>
2026-06-04 11:03:45 +00:00

31 lines
876 B
JavaScript

import globals from 'globals'
import pluginJs from '@eslint/js'
import { includeIgnoreFile } from '@eslint/compat'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const gitignorePath = path.resolve(__dirname, '.gitignore')
/** @type {import('eslint').Linter.Config[]} */
export default [
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
eslintPluginPrettierRecommended,
includeIgnoreFile(gitignorePath),
{
ignores: ['site/*', 'templates/*', '**/public/*', 'demo/*'],
},
{
rules: {
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
},
]