linted
Version:
ESLint mono-plugin bundler with strict, opinionated defaults for JavaScript, TypeScript, Svelte, HTML, CSS, JSON, JSONC, and YAML.
32 lines (31 loc) • 984 B
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";
export default function (extensions = {}) {
const configs = Core(scopes, optional, tree, {
ts: tsParser,
html: htmlParser,
}, settings, defaults, extensions);
configs[configs.length] = {
plugins: {
stylistic,
ts: ts,
html: html,
css,
json,
jsonc,
yml,
},
};
return configs;
}
//# sourceMappingURL=index.js.map