2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

chore: fix eslintrc, remove .vscode launch.json

This commit is contained in:
18alantom 2022-02-23 11:33:55 +05:30
parent 34f86416a2
commit 3f74352120
2 changed files with 9 additions and 61 deletions

View File

@ -2,26 +2,21 @@ module.exports = {
root: true, root: true,
env: { env: {
node: true node: true,
}, },
extends: ["plugin:vue/essential"],
rules: { rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off", 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
"arrow-body-style": "off", 'arrow-body-style': 'off',
"prefer-arrow-callback": "off", 'prefer-arrow-callback': 'off',
"vue/multi-word-component-names": "off", 'vue/multi-word-component-names': 'off',
"vue/no-useless-template-attributes": "off", 'vue/no-useless-template-attributes': 'off',
}, },
parserOptions: { parserOptions: {
parser: '@typescript-eslint/parser' parser: '@typescript-eslint/parser',
}, },
'extends': [ extends: ['plugin:vue/vue3-essential', '@vue/typescript'],
'plugin:vue/essential',
'@vue/typescript'
]
}; };

47
.vscode/launch.json vendored
View File

@ -1,47 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Electron: Main",
"type": "node",
"request": "launch",
"protocol": "inspector",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"preLaunchTask": "electron-debug",
"args": [
"--remote-debugging-port=9223",
"./dist_electron"
],
"outFiles": [
"${workspaceFolder}/dist_electron/**/*.js"
]
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"urlFilter": "http://localhost:*",
"timeout": 30000,
"webRoot": "${workspaceFolder}/src",
"sourceMapPathOverrides": {
"webpack:///./src/*": "${webRoot}/*"
}
}
],
"compounds": [
{
"name": "Electron: All",
"configurations": [
"Electron: Main",
"Electron: Renderer"
]
}
]
}