mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-11-01 15:35:06 +01:00
b520d4e448
* More setup for ESLint * Initial linting * Fix: "Unexpected use of 'location': no-restricted-globals" * Fix: "Prop 'sidebarItems' should define at least its type" * Fix: "import/no-unresolved" * Fix: "import/no-extraneous-dependencies" * Fix: "Unexpected require() 'global-require'" * Fix: "vue/require-prop-types" * Line disable: "radix" * Line disable: "no-param-reassign" * Line disable: "no-shadow" This should usually be an actual problem but I don't think so in this case as the next prompt is basically just a one-action warning. * Add markdown linting support * Replace single quotes with double * Fix indentation for all files * Fix second level quotation marks * Change accordingly I'd still rather keep 4-tab for MD when applicable though, the alternative is a non-standard 3-space indent, which makes three different indentations to keep track of.
32 lines
450 B
JSON
32 lines
450 B
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"extends": [
|
|
"plugin:vue/essential",
|
|
"airbnb-base",
|
|
"prettier",
|
|
"vuepress"
|
|
],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"vue",
|
|
"prettier",
|
|
"markdown"
|
|
],
|
|
"rules": {
|
|
"prettier/prettier": "error",
|
|
"import/no-unresolved": [
|
|
2,
|
|
{ "ignore": ["^@"] }
|
|
]
|
|
}
|
|
} |