mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 05:11:59 +08:00
* chore: remove i18n (#1828) * [release] 4.1.0 * perf[Profile]: adapt the profile page to the mobile (#2020) * Revert "perf: optimize page scrolling when setting fixedHeader" This reverts commit e8e6c7e79c2488779090f00efc5f1bbfcb04bd5b. * perf[Style]: refine fixed-header style when open el-dialog * doc: add new article * chore: use mockjs in production environment * fix[sidebar.css]: remove redundant css * perf[style]: refine dashboard style in mobile (#2060) * feat[ErrorLog]: add a clear button in ErrorLog component (#2065) * fix[redirect]: fix redirect bug in vue-devtools (#2066) * perf[Tinymce]: update tinymce cdn version * fix[redirect]: fix redirect bug in vue-devtool again * docs: add support to readme for Spanish (#2070) * docs[es]: add some translation(#2080) * perf[Exapme]: set page title according to article id * perf[RightPanel]: tidy css (#2101) * feat[SvgIcon]: support import svg from url (#2052) * fix: fixed change roles bug (#2072) * perf[Breadcrumb]: do not update breadcrumbs when go to redirect page (#2086) * perf[store]: add support to sub-modules (#2047) * perf[Login]: support other query (#2013) * refactor[chore]: generate postcss.config.js instead of .postcssrc.js consistent with vue-cli * perf[Tinymce]: dynamic import tinymce(#2102) * [release] 4.2.0 * perf[Style]: refine example css * fix[Chart]: fixed chart bug in keep-alive (#2119) * Create FUNDING.yml * chore: set localhost => 127.0.0.1 (#2142) * update github ISSUE_TEMPLATE * chore: add autoprefixer to devDependencies * perf[Tinymce]: add language option (#2159) * fix[Tinymce]: fixed bug when init multiple tinymces at the same time (#2152) * feat: add tab url demo (#2114) * perf[request.js]: refine error reject (#2160) * [release] 4.2.1 * perf: default not set withCredentials * fix[ImageCropper]: removeEventListener when destroyed(#2169) * docs: fix typo (#2170) * fix: input attribute autocomplete error (#2191) * perf[PanThumb]: Replace the image tag with background-image to prevent the stretching (#2202) * docs: fix typo README.zh-CN.md (#2283) 修改错别字 * perf[clipboard.js]: remove redundant code (#2307) * bump: update axios for security vulnerability * bump: update @vue/cli-plugin-eslint version (#2327) FIx cannot find module '.../node_modules/eslint/lib/api.js/package.json' bug,see https://github.com/vuejs/vue-cli/issues/4231. * chore: allow dynamic set port * fix[complex-table]: form header sort icon is out of sync (#2382) * fix: fixed missing icons * fix: typos (#2532) Role Nmae => Role Name * docs: add awesome-project * fix[Dashboard]: fixed debounce bug (#2586) (#2597) To fixed https://github.com/PanJiaChen/vue-element-admin/issues/2586 * perf: VS Code support webpack alias file jump (#2609) * perf: optimize import file-saver way(#2347) * refactor[ImageCropper]: fix lint error (#2365) * fix: fixed numberFormatter bug https://github.com/PanJiaChen/vue-element-admin/issues/2568 * fix[example]: fixed create.vue cache error https://github.com/PanJiaChen/vue-element-admin/issues/2608 * perf[utils.js]: perf parseTime function (#2625) * perf[tagsView]: pref DEL_CACHED_VIEW and DEL_OTHERS_CACHED_VIEWS function (#2626) * fix[tagsView]: fixed DEL_OTHERS_CACHED_VIEWS bug * fix[logout]: empty tagsview when logout (#2632) * fix[TagsView]: fixed toLastView bug (#2634) * perf[SvgIcon]: change xlink:href to href(#2645) https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href * fix[TagsView]: fixed click.middle can close affixed tag bug (#2649) * docs: add job ad * docs: improved README.md (#2656) * style: fix el-date-picker css style * perf: format dropdown menu code (#2720) * perf: format inline edit table (#2725) move one format `{row}` * perf: format drag table (#2733) move one format `{row}` * perf: complex table (#2732) Move ont format `{row}` * perf: text i18n (#2739) * update 'MarkdownEditor' components name * format: space in user card (#2744) * perf: format pdf download (#2791) * perf[views/icons]: use grid (#2803) * feat: plop new generate store (#2805) * fix[icons]:fixed eslint 1 error and 2 warnings (#2835) * perf[documentation]: refine css * fix[Logout]: click blank area of dropDown able to logout (#2896) Fixed clicking blank area of drop-down unable to log out * perf: import mockXHR only in production (#2910) * 自动排除mock 生产环境,使用webpack的条件编译自动排除mock数据 * perf: refine Co-authored-by: 花裤衩 <panfree23@gmail.com> * perf[Menu]: remove unused menu-wrapper (#2903) * perf[complex-table]:refine code (#2825) * 解决无法删除列表的bug;优化代码; * perf: refine Co-authored-by: 花裤衩 <panfree23@gmail.com> * perf: optimize checkCapslock method (#2635) * optimize checkCapslock method * update Co-authored-by: 花裤衩 <panfree23@gmail.com> * fix[Charts]: fix charts resize in keep-alive bug (#2922) * fix[Charts]: fix charts resize in keep-alive bug * refine * fix: fixed mock server (#2929) * init * refine * update * bump: update element-ui version * fix: fixed require mock bug in production * fix: fixed redirect path regex (#2933) * perf[Mock]: set responseFake to mock-server.js(#2966) * modify 把mock/index.js中与mock-server相关的代码转移到mock-server.js中去,实现两则功能分割 * docs: improve Japanese translation (#2970) * perf: change script-loader to dependencies * fix[profile/UserCard]: fixed wrong key name (#3056) roles => role * fix:fixed parseTime bug in ie and safari(#3066) * /src/utils/index.js parseTime 添加IE浏览器(版本10以下,包括版本10)兼容。 * perf: update Co-authored-by: aisen60 <aisen60@qq.com> Co-authored-by: 花裤衩 <panfree23@gmail.com> * perf: format component names as PascalCase (#3074) format: component names should be PascalCase * docs: add smallsticker * Update README.zh-CN.md * fix: svg support old broswer (#3085) * fixed typo (#3091) * fix: use vue-cli default source-map (#3097) cheap-module-eval-source-map * perf[Tinymce]: editor try to keep these URLs intact (#3141) * fix[element-variables]: missing space in element-variables (#3144) * fix: compatibility with vetur (#1700) * perf: change default element-ui language to english (#2741) * feat: add option to try project on CodeSandbox (#2976) * docs: add tips * perf: when tags-view scroll close the right-menu * fix[parseTime]: fixed when pass null (#3038) * fix[css]: min btn width (#3164) * docs: Improve read me files and changes in Spanish. (#3234) * [release] 4.2.2 * chore: change node-sass to dart-sass (#3040) * perf: change >>> ::v-deep * [release] 4.3.0 * docs: fix wrong link * chore: turn on the preload * refactor: change mock files to commonjs (#3246) * feat[Menu]: menu icon support el-icon(#3048) * fix[utils]: param2Obj bug when url params includes ==(#3100) * perf: remove unused showdown Co-authored-by: 花裤衩 <panfree23@gmail.com> * perf: lint code * fix[v-permission]: support dynamic set roles (#3251) * chore: update element-ui to 2.13.2 * fix[plop]: set trim => trim() (#3254) notEmpty * fix some typos * [release] 4.3.1 * bump: update to vue-cli@4 (#3028) * [release] 4.4.0 * fix[chore]: do not preload runtime.js (#3279) * perf[chore]: remove preserveWhitespace config (#3280) * perf[Tinymce]: remove useless code (#3295) * perf[permission.js]: remove useless code (#3301) * typo: replace Css with CSS (#3323) * docs: add GitAds * docs: remove gitads * docs: add vue-java-admin-dashboard-spring * perf: refine documentation button css * docs: add coupon * feat: add new sponsored * update dependencies. * fix: chart components, TODO: eslint-plugin-vue. * Update FUNDING.yml Co-authored-by: 花裤衩 <panfree23@gmail.com> Co-authored-by: toruksmakto <42709228+toruksmakto@users.noreply.github.com> Co-authored-by: Yamel Senih <ysenih@erpya.com> Co-authored-by: Yamel Senih <yamelsenih@gmail.com> Co-authored-by: liugq <liugq5713@gmail.com> Co-authored-by: bpzhang <bpzhang@users.noreply.github.com> Co-authored-by: Serge <gaosj1993@foxmail.com> Co-authored-by: MaYuanhai <414199639@qq.com> Co-authored-by: Jessynt <xr5299@gmail.com> Co-authored-by: 肖敏 <392716797@qq.com> Co-authored-by: TinaryTree <mbdkhss@gmail.com> Co-authored-by: itsccn <chen.sun@itsccn.com> Co-authored-by: why <w.why@163.com> Co-authored-by: Baskerville* <wszdlm@gmail.com> Co-authored-by: Francis <31059354+FrancisSano@users.noreply.github.com> Co-authored-by: monkeycf <41945134+monkeycf@users.noreply.github.com> Co-authored-by: BradyBromley <51128276+BradyBromley@users.noreply.github.com> Co-authored-by: Phạm Ngọc Hòa <thaycacac@gmail.com> Co-authored-by: bbigcd <bbigcd@163.com> Co-authored-by: xuanzai <43233731+MikuBlog@users.noreply.github.com> Co-authored-by: flitrue <812863096@qq.com> Co-authored-by: 韬 <605682551@qq.com> Co-authored-by: 任羽飞 <ren12345@126.com> Co-authored-by: Kaitian Xie <xkaitian@gmail.com> Co-authored-by: AndyLZC/AndyLZC.github.io <34624589+AndyLZC@users.noreply.github.com> Co-authored-by: RussXD <shangtouWeb@foxmail.com> Co-authored-by: 李小斐 <623536309@qq.com> Co-authored-by: RoBlues <robluesmail@gmail.com> Co-authored-by: Shota Aratono <195194+artn@users.noreply.github.com> Co-authored-by: echofly <36875450+echofly@users.noreply.github.com> Co-authored-by: Aisen60 <1147319086@qq.com> Co-authored-by: aisen60 <aisen60@qq.com> Co-authored-by: Alex S <50220345+sabatale@users.noreply.github.com> Co-authored-by: Aisen <caixusheng60@gmail.com> Co-authored-by: ntnyq <ntnyq13@gmail.com> Co-authored-by: garethx <gareth.wilson@gmail.com> Co-authored-by: AiMe1991 <sxd.08@163.com> Co-authored-by: cooper <1322849632@qq.com> Co-authored-by: Nickbing Lao <giscafer@outlook.com> Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@hotmail.com> Co-authored-by: Cat73 <Cat7373@users.noreply.github.com> Co-authored-by: Silentdoer <1010993610@qq.com> Co-authored-by: qige2016 <286882998@qq.com> Co-authored-by: Dihak <dihak@digitalkode.com> Co-authored-by: crayymumu <854994301@qq.com> Co-authored-by: dyz <43943819+dyzsoft@users.noreply.github.com> Co-authored-by: Kerollos Magdy <kerolloz@yahoo.com> Co-authored-by: EdwinBetanc0urt <EdwinBetanco0urt@outlook.com>
199 lines
5.0 KiB
JavaScript
199 lines
5.0 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
parser: '@babel/eslint-parser',
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
es6: true,
|
|
},
|
|
extends: ['plugin:vue/recommended', 'eslint:recommended'],
|
|
|
|
// add your custom rules here
|
|
//it is base on https://github.com/vuejs/eslint-config-vue
|
|
rules: {
|
|
"vue/max-attributes-per-line": [2, {
|
|
"singleline": 10,
|
|
"multiline": {
|
|
"max": 1,
|
|
"allowFirstLine": false
|
|
}
|
|
}],
|
|
"vue/singleline-html-element-content-newline": "off",
|
|
"vue/multiline-html-element-content-newline":"off",
|
|
"vue/name-property-casing": ["error", "PascalCase"],
|
|
"vue/no-v-html": "off",
|
|
'accessor-pairs': 2,
|
|
'arrow-spacing': [2, {
|
|
'before': true,
|
|
'after': true
|
|
}],
|
|
'block-spacing': [2, 'always'],
|
|
'brace-style': [2, '1tbs', {
|
|
'allowSingleLine': true
|
|
}],
|
|
'camelcase': [0, {
|
|
'properties': 'always'
|
|
}],
|
|
'comma-dangle': [2, 'never'],
|
|
'comma-spacing': [2, {
|
|
'before': false,
|
|
'after': true
|
|
}],
|
|
'comma-style': [2, 'last'],
|
|
'constructor-super': 2,
|
|
'curly': [2, 'multi-line'],
|
|
'dot-location': [2, 'property'],
|
|
'eol-last': 2,
|
|
'eqeqeq': ["error", "always", {"null": "ignore"}],
|
|
'generator-star-spacing': [2, {
|
|
'before': true,
|
|
'after': true
|
|
}],
|
|
'handle-callback-err': [2, '^(err|error)$'],
|
|
'indent': [2, 2, {
|
|
'SwitchCase': 1
|
|
}],
|
|
'jsx-quotes': [2, 'prefer-single'],
|
|
'key-spacing': [2, {
|
|
'beforeColon': false,
|
|
'afterColon': true
|
|
}],
|
|
'keyword-spacing': [2, {
|
|
'before': true,
|
|
'after': true
|
|
}],
|
|
'new-cap': [2, {
|
|
'newIsCap': true,
|
|
'capIsNew': false
|
|
}],
|
|
'new-parens': 2,
|
|
'no-array-constructor': 2,
|
|
'no-caller': 2,
|
|
'no-console': 'off',
|
|
'no-class-assign': 2,
|
|
'no-cond-assign': 2,
|
|
'no-const-assign': 2,
|
|
'no-control-regex': 0,
|
|
'no-delete-var': 2,
|
|
'no-dupe-args': 2,
|
|
'no-dupe-class-members': 2,
|
|
'no-dupe-keys': 2,
|
|
'no-duplicate-case': 2,
|
|
'no-empty-character-class': 2,
|
|
'no-empty-pattern': 2,
|
|
'no-eval': 2,
|
|
'no-ex-assign': 2,
|
|
'no-extend-native': 2,
|
|
'no-extra-bind': 2,
|
|
'no-extra-boolean-cast': 2,
|
|
'no-extra-parens': [2, 'functions'],
|
|
'no-fallthrough': 2,
|
|
'no-floating-decimal': 2,
|
|
'no-func-assign': 2,
|
|
'no-implied-eval': 2,
|
|
'no-inner-declarations': [2, 'functions'],
|
|
'no-invalid-regexp': 2,
|
|
'no-irregular-whitespace': 2,
|
|
'no-iterator': 2,
|
|
'no-label-var': 2,
|
|
'no-labels': [2, {
|
|
'allowLoop': false,
|
|
'allowSwitch': false
|
|
}],
|
|
'no-lone-blocks': 2,
|
|
'no-mixed-spaces-and-tabs': 2,
|
|
'no-multi-spaces': 2,
|
|
'no-multi-str': 2,
|
|
'no-multiple-empty-lines': [2, {
|
|
'max': 1
|
|
}],
|
|
'no-native-reassign': 2,
|
|
'no-negated-in-lhs': 2,
|
|
'no-new-object': 2,
|
|
'no-new-require': 2,
|
|
'no-new-symbol': 2,
|
|
'no-new-wrappers': 2,
|
|
'no-obj-calls': 2,
|
|
'no-octal': 2,
|
|
'no-octal-escape': 2,
|
|
'no-path-concat': 2,
|
|
'no-proto': 2,
|
|
'no-redeclare': 2,
|
|
'no-regex-spaces': 2,
|
|
'no-return-assign': [2, 'except-parens'],
|
|
'no-self-assign': 2,
|
|
'no-self-compare': 2,
|
|
'no-sequences': 2,
|
|
'no-shadow-restricted-names': 2,
|
|
'no-spaced-func': 2,
|
|
'no-sparse-arrays': 2,
|
|
'no-this-before-super': 2,
|
|
'no-throw-literal': 2,
|
|
'no-trailing-spaces': 2,
|
|
'no-undef': 2,
|
|
'no-undef-init': 2,
|
|
'no-unexpected-multiline': 2,
|
|
'no-unmodified-loop-condition': 2,
|
|
'no-unneeded-ternary': [2, {
|
|
'defaultAssignment': false
|
|
}],
|
|
'no-unreachable': 2,
|
|
'no-unsafe-finally': 2,
|
|
'no-unused-vars': [2, {
|
|
'vars': 'all',
|
|
'args': 'none'
|
|
}],
|
|
'no-useless-call': 2,
|
|
'no-useless-computed-key': 2,
|
|
'no-useless-constructor': 2,
|
|
'no-useless-escape': 0,
|
|
'no-whitespace-before-property': 2,
|
|
'no-with': 2,
|
|
'one-var': [2, {
|
|
'initialized': 'never'
|
|
}],
|
|
'operator-linebreak': [2, 'after', {
|
|
'overrides': {
|
|
'?': 'before',
|
|
':': 'before'
|
|
}
|
|
}],
|
|
'padded-blocks': [2, 'never'],
|
|
'quotes': [2, 'single', {
|
|
'avoidEscape': true,
|
|
'allowTemplateLiterals': true
|
|
}],
|
|
'semi': [2, 'never'],
|
|
'semi-spacing': [2, {
|
|
'before': false,
|
|
'after': true
|
|
}],
|
|
'space-before-blocks': [2, 'always'],
|
|
'space-before-function-paren': [2, 'never'],
|
|
'space-in-parens': [2, 'never'],
|
|
'space-infix-ops': 2,
|
|
'space-unary-ops': [2, {
|
|
'words': true,
|
|
'nonwords': false
|
|
}],
|
|
'spaced-comment': [2, 'always', {
|
|
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
|
|
}],
|
|
'template-curly-spacing': [2, 'never'],
|
|
'use-isnan': 2,
|
|
'valid-typeof': 2,
|
|
'wrap-iife': [2, 'any'],
|
|
'yield-star-spacing': [2, 'both'],
|
|
'yoda': [2, 'never'],
|
|
'prefer-const': 2,
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
'object-curly-spacing': [2, 'always', {
|
|
objectsInObjects: false
|
|
}],
|
|
'array-bracket-spacing': [2, 'never']
|
|
}
|
|
}
|