init report && move live_monitor_vue
This commit is contained in:
10
repo/0-tools-eslint/src/javascript-eslint-config.js
Normal file
10
repo/0-tools-eslint/src/javascript-eslint-config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
],
|
||||
rules: {
|
||||
"no-multiple-empty-lines": ["error", {max: 2, "maxBOF": 0}],
|
||||
"indent": ["error", 2],
|
||||
"no-mixed-spaces-and-tabs": "error",
|
||||
}
|
||||
}
|
||||
17
repo/0-tools-eslint/src/typescript-eslint-config.js
Normal file
17
repo/0-tools-eslint/src/typescript-eslint-config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
|
||||
],
|
||||
parserOptions: {
|
||||
ecmaVersion: 2022,
|
||||
sourceType: 'module',
|
||||
project: './tsconfig.json',
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
"@typescript-eslint/ban-types": 'off',
|
||||
},
|
||||
}
|
||||
30
repo/0-tools-eslint/src/vue-eslint-config.js
Normal file
30
repo/0-tools-eslint/src/vue-eslint-config.js
Normal file
@@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:vue/vue3-recommended",
|
||||
],
|
||||
rules: {
|
||||
"no-multiple-empty-lines": ["error", {max: 2, "maxBOF": 0}],
|
||||
"vue/order-in-components": "error",
|
||||
"indent": ["error", 2],
|
||||
"no-mixed-spaces-and-tabs": "error",
|
||||
"vue/attribute-hyphenation": "off",
|
||||
"vue/html-self-closing": ["error", {
|
||||
"html": {
|
||||
"void": "never",
|
||||
"normal": "always",
|
||||
"component": "always"
|
||||
},
|
||||
"svg": "always",
|
||||
"math": "always"
|
||||
}],
|
||||
"vue/no-reserved-component-names": "off",
|
||||
"vue/html-indent": ["error", 2, {
|
||||
"attribute": 1,
|
||||
"baseIndent": 1,
|
||||
"closeBracket": 0,
|
||||
"alignAttributesVertically": true,
|
||||
"ignores": []
|
||||
}]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user