mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 04:59:02 +08:00
* add highlighter * add playground url * add markdown support and notification center * fix multiple md files * add meta description with framework list * fix: framework id loop index * store frameworkIdsSelected in locale storage * add generateFrameworkContent vite plugin * add missing snippet case * add content generate cache * add angular component highlighter * improve content generator organization * add format and linter * add git hooks * add default frameworks
25 lines
429 B
JavaScript
25 lines
429 B
JavaScript
import FRAMEWORKS from "./frameworks.mjs";
|
|
|
|
/**
|
|
* @type {import("eslint").Linter.Config}
|
|
*/
|
|
export default {
|
|
parserOptions: {
|
|
ecmaVersion: 2022,
|
|
sourceType: "module",
|
|
},
|
|
env: {
|
|
browser: true,
|
|
},
|
|
plugins: ["prettier"],
|
|
overrides: FRAMEWORKS.reduce((acc, { eslint }) => {
|
|
if (Array.isArray(eslint)) {
|
|
acc.push(...eslint);
|
|
} else {
|
|
acc.push(eslint);
|
|
}
|
|
|
|
return acc;
|
|
}, []),
|
|
};
|