Skip to content

Commit

Permalink
Added html-eslint as dev dependency ↞ [auto-sync from https://github.…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Jan 28, 2025
1 parent fb111fc commit ab64481
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chatgpt-widescreen/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import js from '@eslint/js'
import css from '@eslint/css'
import html from '@html-eslint/eslint-plugin'
import htmlParser from '@html-eslint/parser'
import globals from 'globals'
import importPlugin from 'eslint-plugin-import'
import json from '@eslint/json'
Expand Down Expand Up @@ -43,6 +45,15 @@ export default [
},
{ files: ['**/chatgpt.js'], languageOptions: { globals: { chatgpt: 'off' }}},
{ files: ['**/*.css'], language: 'css/css', ...css.configs.recommended },
{
files: ['**/*.html'], languageOptions: { parser: htmlParser }, plugins: { '@html-eslint': html },
rules: {
...html.configs['flat/recommended'].rules,
'@html-eslint/require-title': 'off', // allow missing title tags
'@html-eslint/quotes': 'off', // allow unquoted attrs for compactness
'@html-eslint/attrs-newline': 'off' // allow attrs on one line
}
},
{ files: ['**/*.json'], language: 'json/json', ...json.configs.recommended },
{
files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },
Expand Down
48 changes: 48 additions & 0 deletions chatgpt-widescreen/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions chatgpt-widescreen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"devDependencies": {
"@eslint/json": "^0.10.0",
"@eslint/markdown": "^6.2.2",
"@html-eslint/eslint-plugin": "^0.33.1",
"@html-eslint/parser": "^0.33.0",
"@stylistic/eslint-plugin-js": "^3.0.0",
"eslint": "^9.19.0",
"eslint-plugin-import": "^2.31.0",
Expand Down

0 comments on commit ab64481

Please sign in to comment.