mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
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.
20 lines
428 B
JavaScript
20 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,
|
|
},
|
|
};
|