-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for eslint flat config #174
Comments
Hi @TheElegantCoding, Thanks for the report!. Is there anything else we need to do to support flat config? I've tested the config below and it seems to be working fine, did you run into any issues? const Plugin = require("@html-eslint/eslint-plugin");
const Parser = require("@html-eslint/parser");
module.exports = [
{
plugins: { "@html-eslint": Plugin },
languageOptions: {
parser: Parser,
},
files: ["*.html"],
rules: {
//...
},
},
]; |
thanks that work and also i find an error in my config, in order to work inside all the repo i have to put Other problem i have with eslint flat config is the type in typescript my config is in typescript import { htmlDisabledRule } from '@module/html/rule/html_disabled_rule';
import { htmlGeneralRule } from '@module/html/rule/html_general_rule';
import pluginHtml from "@html-eslint/eslint-plugin";
import parserHtml from "@html-eslint/parser";
const html =
{
files: [ '**/*.html' ],
languageOptions:
{
parser: parserHtml
},
plugins:
{
html: pluginHtml
},
rules: {
...htmlGeneralRule,
...htmlDisabledRule
}
};
export { html }; in the |
@TheElegantCoding Thank you. I think this should be fixed..! |
@yeonjuan Dear sir, I got this warning when import
Please help me 😢 |
Hi @LatenPath , Could you try
|
@yeonjuan It's work, sir! Disable rule/ Auto-fix,... also work fine! Thank you so much! But I have a small question, as you can see, other plugin which support Flat config have parser/env built-in so it simpler when setup: So I hope we will have one in future too ❤️ |
HTML-ESLint does not yet support flat config, we will update it to support flat config :) |
Hi @TheElegantCoding @LatenPath |
The text was updated successfully, but these errors were encountered: