chore: add eslint-plugin-prettier

This commit is contained in:
Ayo Ayco 2024-12-27 23:10:41 +01:00
parent 252e60417f
commit 0807640462
4 changed files with 832 additions and 3 deletions

View file

@ -1,10 +1,9 @@
# someday let's think about formatting html
# **/*.html
**/*.html
**/*.md
**/*.css
**/*.yml
**/*.yaml
site
templates

View file

@ -3,6 +3,7 @@ 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)
@ -13,6 +14,7 @@ export default [
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
includeIgnoreFile(gitignorePath),
eslintPluginPrettierRecommended,
{
ignores: ['site/*', 'templates/*'],
},

View file

@ -20,6 +20,8 @@
"@eslint/compat": "^1.2.4",
"@eslint/js": "^9.17.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.14.0",
"husky": "^9.1.7",
"prettier": "^3.4.2",

File diff suppressed because it is too large Load diff