9a653ebeac
Uses html-eslint for HTML file and eslint-plugin-html for inline JavaScript. Use HTML5 (not XHTML), remove CDATA and trailing slashes for self closing tags. Add format checks to CI.
19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
module.exports = {
|
|
"plugins": [
|
|
"html",
|
|
"@html-eslint",
|
|
],
|
|
"parser": "@html-eslint/parser",
|
|
"extends": ["plugin:@html-eslint/recommended", "./.eslintrc.js"],
|
|
"rules": {
|
|
"no-alert": "off",
|
|
"no-console": "off",
|
|
"@html-eslint/require-closing-tags": ["error", { "selfClosing": "never" }],
|
|
"@html-eslint/indent": ["error", "tab"],
|
|
},
|
|
"globals": {
|
|
"Godot": true,
|
|
"Engine": true,
|
|
"$GODOT_CONFIG": true,
|
|
},
|
|
};
|