39 lines
849 B
JavaScript
39 lines
849 B
JavaScript
import antfu from "@antfu/eslint-config";
|
|
|
|
export default antfu({
|
|
formatters: {
|
|
/**
|
|
* Format CSS, LESS, SCSS files, also the `<style>` blocks in Vue
|
|
* By default uses Prettier
|
|
*/
|
|
css: true,
|
|
/**
|
|
* Format HTML files
|
|
* By default uses Prettier
|
|
*/
|
|
html: true,
|
|
/**
|
|
* Format Markdown files
|
|
* Supports Prettier and dprint
|
|
* By default uses Prettier
|
|
*/
|
|
markdown: "prettier"
|
|
},
|
|
stylistic: {
|
|
indent: 2,
|
|
quotes: "double",
|
|
semi: true
|
|
},
|
|
vue: true,
|
|
ignores: ["node_modules", "dist"],
|
|
rules: {
|
|
"vue/html-self-closing": "off",
|
|
"antfu/top-level-function": "off",
|
|
"ts/no-unsafe-function-type": "off",
|
|
"no-console": "off",
|
|
"unused-imports/no-unused-vars": "warn",
|
|
"ts/no-use-before-define": "off",
|
|
"vue/operator-linebreak": "off",
|
|
}
|
|
});
|