chore: add eslint-plugin-prettier
This commit is contained in:
parent
252e60417f
commit
0807640462
4 changed files with 832 additions and 3 deletions
|
@ -1,10 +1,9 @@
|
|||
# someday let's think about formatting html
|
||||
# **/*.html
|
||||
**/*.html
|
||||
|
||||
**/*.md
|
||||
**/*.css
|
||||
**/*.yml
|
||||
**/*.yaml
|
||||
|
||||
site
|
||||
templates
|
|
@ -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/*'],
|
||||
},
|
||||
|
|
|
@ -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",
|
||||
|
|
828
pnpm-lock.yaml
828
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue