mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-13 19:42:01 +00:00
Merge pull request #5 from Brecert/code-cleanup
linter fix & code cleanup
This commit is contained in:
commit
e10cede618
9 changed files with 8268 additions and 32 deletions
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"plugins": ["@vue"],
|
||||
"rules": {
|
||||
"no-console": "off"
|
||||
},
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
}
|
||||
}
|
||||
26
.eslintrc.js
Normal file
26
.eslintrc.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
module.exports = {
|
||||
"env": {
|
||||
"browser": true,
|
||||
"commonjs": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:vue/essential"
|
||||
],
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018
|
||||
},
|
||||
"plugins": [
|
||||
"vue"
|
||||
],
|
||||
"rules": {
|
||||
"no-console": "off",
|
||||
"no-unused-vars": "off"
|
||||
}
|
||||
};
|
||||
16
package.json
16
package.json
|
|
@ -8,7 +8,6 @@
|
|||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/eslint-plugin": "^4.2.0",
|
||||
"axios": "^0.18.0",
|
||||
"filesize": "^4.1.2",
|
||||
"futoji": "^0.2.4",
|
||||
|
|
@ -29,25 +28,12 @@
|
|||
"@vue/cli-plugin-babel": "^3.0.5",
|
||||
"@vue/cli-plugin-eslint": "^3.0.5",
|
||||
"@vue/cli-service": "^3.0.5",
|
||||
"@vue/eslint-plugin": "^4.2.0",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"eslint": "^5.8.0",
|
||||
"eslint-plugin-vue": "^5.0.0-0",
|
||||
"vue-template-compiler": "^2.5.17"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/essential",
|
||||
"eslint:recommended"
|
||||
],
|
||||
"rules": {},
|
||||
"parserOptions": {
|
||||
"parser": "babel-eslint"
|
||||
}
|
||||
},
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
"autoprefixer": {}
|
||||
|
|
|
|||
|
|
@ -55,10 +55,7 @@ import Spinner from '@/components/Spinner.vue'
|
|||
import ChangeLog from '@/components/ChangeLog.vue'
|
||||
import changelog from '@/changelog.js'
|
||||
export default {
|
||||
components: {
|
||||
Spinner,
|
||||
ChangeLog
|
||||
},
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
changelog: changelog[0]
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ import Tab from './Tab.vue'
|
|||
import FriendsTemplate from './FriendsTemplate.vue'
|
||||
export default {
|
||||
components: {
|
||||
Tab,
|
||||
FriendsTemplate
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
|
|
@ -103,7 +103,6 @@ export default {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.input {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export default (message) => {
|
|||
|
||||
futoji.addTransformer({
|
||||
name: 'code-block',
|
||||
symbol: '``\`',
|
||||
symbol: '```',
|
||||
recursive: false,
|
||||
transformer: text => `<div class="codeblock"><code>${formatCode(text.trim())}</code></div>`,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@ import LeftPanel from "./../components/app/LeftPanel.vue";
|
|||
import RightPanel from "./../components/app/RightPanel.vue";
|
||||
import ConnectingScreen from "./../components/app/ConnectingScreen.vue";
|
||||
|
||||
|
||||
export default {
|
||||
name: "app",
|
||||
components: {
|
||||
LeftPanel,
|
||||
RightPanel,
|
||||
ConnectingScreen,
|
||||
Popouts
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue