mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-24 17:11:43 +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"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/eslint-plugin": "^4.2.0",
|
|
||||||
"axios": "^0.18.0",
|
"axios": "^0.18.0",
|
||||||
"filesize": "^4.1.2",
|
"filesize": "^4.1.2",
|
||||||
"futoji": "^0.2.4",
|
"futoji": "^0.2.4",
|
||||||
|
|
@ -29,25 +28,12 @@
|
||||||
"@vue/cli-plugin-babel": "^3.0.5",
|
"@vue/cli-plugin-babel": "^3.0.5",
|
||||||
"@vue/cli-plugin-eslint": "^3.0.5",
|
"@vue/cli-plugin-eslint": "^3.0.5",
|
||||||
"@vue/cli-service": "^3.0.5",
|
"@vue/cli-service": "^3.0.5",
|
||||||
|
"@vue/eslint-plugin": "^4.2.0",
|
||||||
"babel-eslint": "^10.0.1",
|
"babel-eslint": "^10.0.1",
|
||||||
"eslint": "^5.8.0",
|
"eslint": "^5.8.0",
|
||||||
"eslint-plugin-vue": "^5.0.0-0",
|
"eslint-plugin-vue": "^5.0.0-0",
|
||||||
"vue-template-compiler": "^2.5.17"
|
"vue-template-compiler": "^2.5.17"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
|
||||||
"root": true,
|
|
||||||
"env": {
|
|
||||||
"node": true
|
|
||||||
},
|
|
||||||
"extends": [
|
|
||||||
"plugin:vue/essential",
|
|
||||||
"eslint:recommended"
|
|
||||||
],
|
|
||||||
"rules": {},
|
|
||||||
"parserOptions": {
|
|
||||||
"parser": "babel-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"postcss": {
|
"postcss": {
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"autoprefixer": {}
|
"autoprefixer": {}
|
||||||
|
|
|
||||||
|
|
@ -55,10 +55,7 @@ import Spinner from '@/components/Spinner.vue'
|
||||||
import ChangeLog from '@/components/ChangeLog.vue'
|
import ChangeLog from '@/components/ChangeLog.vue'
|
||||||
import changelog from '@/changelog.js'
|
import changelog from '@/changelog.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {},
|
||||||
Spinner,
|
|
||||||
ChangeLog
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
changelog: changelog[0]
|
changelog: changelog[0]
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ import Tab from './Tab.vue'
|
||||||
import FriendsTemplate from './FriendsTemplate.vue'
|
import FriendsTemplate from './FriendsTemplate.vue'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Tab,
|
|
||||||
FriendsTemplate
|
FriendsTemplate
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.input {
|
.input {
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ export default (message) => {
|
||||||
|
|
||||||
futoji.addTransformer({
|
futoji.addTransformer({
|
||||||
name: 'code-block',
|
name: 'code-block',
|
||||||
symbol: '``\`',
|
symbol: '```',
|
||||||
recursive: false,
|
recursive: false,
|
||||||
transformer: text => `<div class="codeblock"><code>${formatCode(text.trim())}</code></div>`,
|
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 RightPanel from "./../components/app/RightPanel.vue";
|
||||||
import ConnectingScreen from "./../components/app/ConnectingScreen.vue";
|
import ConnectingScreen from "./../components/app/ConnectingScreen.vue";
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "app",
|
name: "app",
|
||||||
components: {
|
components: {
|
||||||
LeftPanel,
|
LeftPanel,
|
||||||
RightPanel,
|
RightPanel,
|
||||||
ConnectingScreen,
|
ConnectingScreen,
|
||||||
Popouts
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue