linted
Version:
ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.
34 lines (33 loc) • 1.05 kB
JavaScript
import Core from "@eslinted/core";
import { scopes, optional, tree, } from "./scope/index.js";
import settings from "./settings/index.js";
import defaults from "@eslinted/defaults";
import stylistic from "@stylistic/eslint-plugin";
import { plugin as ts, parser as tsParser, } from "typescript-eslint";
import html from "@html-eslint/eslint-plugin";
import htmlParser from "@html-eslint/parser";
import css from "@eslint/css";
import json from "@eslint/json";
import jsonc from "eslint-plugin-jsonc";
import yml from "eslint-plugin-yml";
import ymlParser from "yaml-eslint-parser";
export default function (extensions = {}) {
const configs = Core(scopes, optional, tree, {
ts: tsParser,
html: htmlParser,
yml: ymlParser,
}, settings, defaults, extensions);
configs[configs.length] = {
plugins: {
stylistic,
ts: ts,
html: html,
css,
json,
jsonc,
yml,
},
};
return configs;
}
//# sourceMappingURL=index.js.map