Skip to content

Commit

Permalink
chore: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Dec 13, 2021
1 parent be1901b commit 543777f
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 23 deletions.
11 changes: 0 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
// http://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
env: {
browser: true,
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: ['plugin:vue/vue3-recommended', 'plugin:prettier/recommended'],
// required to lint *.vue files
plugins: ['html'],
parserOptions: {
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
// add your custom rules here
rules: {
'prettier/prettier': [
'error',
Expand All @@ -26,12 +21,6 @@ module.exports = {
trailingComma: 'es5',
},
],
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'vue/multi-word-component-names': 0,
'vue/no-v-html': 0,
},
Expand Down
77 changes: 77 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ Welcome and thanks to use and contribute to this project. Your support is very i

If you found any problem / bug during the use of uiv lib, or have any suggestions that can make this lib better, please [create an issue](https://github.com/uiv-lib/uiv/issues/new).

Pull requests are also welcome! However, before you started working on a PR, it is highly recommend to **create an issue with your idea first**, so people can know what's going to happen and avoid duplicated work. After that, pls make PRs to the `dev` branch.
Pull requests are also welcome! However, before you started working on a PR, it is highly recommend to **create an issue with your idea first**, so people can know what's going to happen and avoid duplicated work. After that, pls make PRs to branch:

1. `dev`: latest branch, targeting Vue.js 3.x for now
2. `1.x`: targeting Vue.js 2.x
3. `0.x`: targeting Vue.js 2.x (not maintained anymore, use 1.x instead)
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ If this project has helped you out, please support it with a star :star2:.

## Versions

uiv version | Vue.js version | document
----------- | ------- | -----------
2.x | 3.x | [https://uiv.wxsm.space](https://uiv.wxsm.space)
1.x | 2.x | [https://uiv-v1.wxsm.space](https://uiv-v1.wxsm.space)
0.x | 2.x | [https://uiv-v0.wxsm.space](https://uiv-v0.wxsm.space)
| uiv version | Vue.js version | document |
|-------------|----------------|--------------------------------------------------------|
| 2.x | 3.x | [https://uiv.wxsm.space](https://uiv.wxsm.space) |
| 1.x | 2.x | [https://uiv-v1.wxsm.space](https://uiv-v1.wxsm.space) |
| 0.x | 2.x | [https://uiv-v0.wxsm.space](https://uiv-v0.wxsm.space) |

## Quick start

Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ module.exports = {
},
],
],
}
};
10 changes: 5 additions & 5 deletions docs/usage/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

## Versions

uiv version | Vue.js version | document
----------- | ------- | -----------
2.x | 3.x | [https://uiv.wxsm.space](https://uiv.wxsm.space)
1.x | 2.x | [https://uiv-v1.wxsm.space](https://uiv-v1.wxsm.space)
0.x | 2.x | [https://uiv-v0.wxsm.space](https://uiv-v0.wxsm.space)
| uiv version | Vue.js version | document |
|-------------|----------------|--------------------------------------------------------|
| 2.x | 3.x | [https://uiv.wxsm.space](https://uiv.wxsm.space) |
| 1.x | 2.x | [https://uiv-v1.wxsm.space](https://uiv-v1.wxsm.space) |
| 0.x | 2.x | [https://uiv-v0.wxsm.space](https://uiv-v0.wxsm.space) |

## Install

Expand Down

0 comments on commit 543777f

Please sign in to comment.