tachiyomi-website/.eslintrc.js

50 lines
1010 B
JavaScript
Raw Normal View History

2023-07-26 00:22:22 +02:00
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
"vue/setup-compiler-macros": true,
},
parser: "vue-eslint-parser",
extends: [
"plugin:vue/vue3-recommended",
"plugin:@typescript-eslint/recommended",
"standard",
],
parserOptions: {
ecmaVersion: "latest",
parser: "@typescript-eslint/parser",
sourceType: "module",
},
plugins: [
"vue",
"@typescript-eslint",
],
rules: {
"comma-dangle": ["error", "only-multiline"],
quotes: ["error", "double"],
indent: ["error", "tab"],
"no-tabs": 0,
"no-console": "off",
"no-debugger": "off",
"vue/multi-word-component-names": "off",
"vue/comment-directive": "off",
"no-unused-vars": "off",
"vue/no-parsing-error": [
2,
{
"x-invalid-end-tag": false,
"missing-semicolon-after-character-reference": false,
},
],
/* --ECMAScript 6 ES6-- */
"no-useless-escape": "off",
"no-unused-expressions": [
"error",
{ allowShortCircuit: true, allowTernary: true },
],
},
}