-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from emqx/develop
Release v1.3.3
- Loading branch information
Showing
53 changed files
with
1,537 additions
and
961 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
}, | ||
parser: 'vue-eslint-parser', | ||
extends: [ | ||
"@vue/prettier", | ||
'prettier/@typescript-eslint', | ||
'plugin:@typescript-eslint/recommended', | ||
], | ||
plugins: ['@typescript-eslint'], | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
}, | ||
rules: { | ||
'prettier/prettier': 'error', | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'array-bracket-spacing': 2, | ||
'no-var': 2, | ||
'no-eval': 2, | ||
'arrow-spacing': 2, | ||
'block-spacing': 2, | ||
'key-spacing': 2, | ||
'brace-style': 2, | ||
'vue/camelcase': 2, | ||
'vue/require-component-is': 0, | ||
'vue/require-default-prop': 0, | ||
'comma-dangle': [2, 'always-multiline'], | ||
'vue/eqeqeq': [2, 'always', { | ||
null: 'ignore' | ||
}], | ||
'object-curly-spacing': [2, 'always'], | ||
'vue/singleline-html-element-content-newline': 0, | ||
'vue/html-closing-bracket-newline': [ | ||
2, | ||
{ | ||
singleline: 'never', | ||
multiline: 'always', | ||
}, | ||
], | ||
'vue/max-attributes-per-line': 0, | ||
'vue/html-self-closing': [ | ||
2, | ||
{ | ||
html: { | ||
void: 'always', | ||
normal: 'never', | ||
component: 'always', | ||
}, | ||
svg: 'always', | ||
math: 'always', | ||
}, | ||
], | ||
|
||
// 设置 typescript-eslint 规则 | ||
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/docs/rules | ||
'@typescript-eslint/camelcase': 0, // 目前埋点有部分字段无法更换 | ||
'@typescript-eslint/no-non-null-assertion': 0, // 允许非空断言运算符 | ||
'@typescript-eslint/member-delimiter-style': [ | ||
2, | ||
{ | ||
multiline: { | ||
delimiter: 'none', | ||
requireLast: true, | ||
}, | ||
singleline: { | ||
delimiter: 'semi', | ||
requireLast: false, | ||
}, | ||
}, | ||
], | ||
'@typescript-eslint/no-unused-vars': [0, { | ||
args: 'none' | ||
}], | ||
'@typescript-eslint/interface-name-prefix': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": false, | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"bracketSpacing": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
<template> | ||
<div id="app"> | ||
<RouterView/> | ||
<RouterView /> | ||
</div> | ||
</template> | ||
|
||
|
||
<script lang="ts"> | ||
import { Component, Vue } from 'vue-property-decorator' | ||
@Component | ||
export default class App extends Vue {} | ||
</script> | ||
|
||
|
||
<style lang="scss"> | ||
@import "./assets/font/iconfont.css"; | ||
@import "./assets/scss/base.scss"; | ||
@import "./assets/scss/theme/dark.scss"; | ||
@import "./assets/scss/theme/light.scss"; | ||
@import "./assets/scss/theme/night.scss"; | ||
@import './assets/font/iconfont.css'; | ||
@import './assets/scss/base.scss'; | ||
@import './assets/scss/theme/dark.scss'; | ||
@import './assets/scss/theme/light.scss'; | ||
@import './assets/scss/theme/night.scss'; | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* Change element-ui theme variable */ | ||
$--color-primary: #22BB7A; | ||
$--color-primary: #22bb7a; | ||
|
||
/* Change icon font path,required */ | ||
$--font-path: '~element-ui/lib/theme-chalk/fonts'; | ||
|
||
@import '~element-ui/packages/theme-chalk/src/index'; | ||
@import '~element-ui/packages/theme-chalk/src/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.