Compare commits

...

15 Commits

Author SHA1 Message Date
Anthony Fu
23506b57c1 v0.2.5 2019-07-19 15:53:28 +08:00
Anthony Fu
be4d232fb8 fix: vue 2019-07-19 15:53:07 +08:00
Anthony Fu
2e208c4d05 v0.2.4 2019-07-19 15:51:40 +08:00
Anthony Fu
03b3d7a295 fix: vue deps 2019-07-19 15:51:21 +08:00
Anthony Fu
559d60c3ec v0.2.3 2019-07-19 15:33:05 +08:00
Anthony Fu
cbf7bca6d2 fix: update vue config 2019-07-19 15:32:43 +08:00
Anthony Fu
7105b268ee chore: release -y 2019-07-19 14:42:36 +08:00
Anthony Fu
c8c6f07341 v0.2.2 2019-07-19 14:42:00 +08:00
Anthony Fu
5d507f1d93 fix: update ts rules 2019-07-19 14:41:36 +08:00
Anthony Fu
9153f9e759 v0.2.1 2019-07-18 04:43:25 +08:00
Anthony Fu
0b40222ae9 fix: extends order 2019-07-18 04:43:03 +08:00
Anthony Fu
e6e7a00698 chore(ci): add renovate config 2019-07-18 04:22:48 +08:00
Anthony Fu
5b47b8f0aa docs: add license
fix
2019-07-18 04:14:53 +08:00
Anthony Fu
b63428da1a v0.2.0 2019-07-18 04:12:18 +08:00
Anthony Fu
b025b09a5f feat: add ts config 2019-07-18 04:11:55 +08:00
15 changed files with 290 additions and 34 deletions

2
.gitignore vendored
View File

@@ -78,4 +78,4 @@ dist
.idea
package-lock.json
*.learna_backup
*.lerna_backup

66
CHANGELOG.md Normal file
View File

@@ -0,0 +1,66 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.2.5](https://github.com/antfu/eslint-config/compare/v0.2.4...v0.2.5) (2019-07-19)
### Bug Fixes
* vue ([be4d232](https://github.com/antfu/eslint-config/commit/be4d232))
## [0.2.4](https://github.com/antfu/eslint-config/compare/v0.2.3...v0.2.4) (2019-07-19)
### Bug Fixes
* vue deps ([03b3d7a](https://github.com/antfu/eslint-config/commit/03b3d7a))
## [0.2.3](https://github.com/antfu/eslint-config/compare/v0.2.2...v0.2.3) (2019-07-19)
### Bug Fixes
* update vue config ([cbf7bca](https://github.com/antfu/eslint-config/commit/cbf7bca))
## [0.2.2](https://github.com/antfu/eslint-config/compare/v0.2.1...v0.2.2) (2019-07-19)
### Bug Fixes
* update ts rules ([5d507f1](https://github.com/antfu/eslint-config/commit/5d507f1))
## [0.2.1](https://github.com/antfu/eslint-config/compare/v0.2.0...v0.2.1) (2019-07-17)
### Bug Fixes
* extends order ([0b40222](https://github.com/antfu/eslint-config/commit/0b40222))
# [0.2.0](https://github.com/antfu/eslint-config/compare/v0.1.5...v0.2.0) (2019-07-17)
### Features
* add ts config ([b025b09](https://github.com/antfu/eslint-config/commit/b025b09))

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Anthony Fu<https://github.com/antfu>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "0.1.5"
"version": "0.2.5"
}

View File

@@ -5,9 +5,24 @@
"license": "MIT",
"scripts": {
"postinstall": "lerna bootstrap",
"release": "lerna publish --conventional-commits"
"lint": "lerna run lint",
"lint:fix": "lerna run lint -- -- --fix",
"release": "lerna publish --conventional-commits --graph-type all -y"
},
"devDependencies": {
"lerna": "^3.14.1"
"@antfu/eslint-config": "^0.1.5",
"@typescript-eslint/eslint-plugin": "1.11.0",
"@typescript-eslint/parser": "^1.10.2",
"eslint": "^6.0.1",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-nuxt": "0.4.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-unicorn": "^9.1.1",
"eslint-plugin-vue": "5.2.3",
"lerna": "^3.14.1",
"typescript": "^3.5.3"
}
}

View File

@@ -0,0 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [0.2.0](https://github.com/antfu/eslint-config/compare/v0.1.5...v0.2.0) (2019-07-17)
### Features
* add ts config ([b025b09](https://github.com/antfu/eslint-config/commit/b025b09))

View File

@@ -4,23 +4,18 @@ module.exports = {
browser: true,
node: true,
},
plugins: [
'@typescript-eslint',
],
parser: '@typescript-eslint/parser',
extends: [
'standard',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:@typescript-eslint/recommended',
],
plugins: [
'unicorn',
],
settings: {
'import/resolver': {
node: { extensions: ['.js', '.mjs'] }
}
node: { extensions: ['.js', '.mjs'] },
},
},
rules: {
// import
@@ -59,10 +54,6 @@ module.exports = {
'no-spaced-func': 'error',
'object-curly-spacing': ['error', 'always'],
'no-return-await': 'off',
'prefer-const': ['error', {
'destructuring': 'any',
'ignoreReadBeforeAssign': false
}],
// es6
'no-var': 'error',
@@ -103,16 +94,6 @@ module.exports = {
'no-return-assign': 'off',
'operator-linebreak': [2, 'before'],
// TS
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'none' } }],
'@typescript-eslint/type-annotation-spacing': ['error', {}],
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/no-explicit-any': 'off',
// unicorns
// Pass error message when throwing errors
'unicorn/error-message': 'error',
@@ -138,5 +119,5 @@ module.exports = {
'unicorn/prefer-type-error': 'error',
// Use new when throwing error
'unicorn/throw-new-error': 'error',
}
},
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config",
"version": "0.1.5",
"version": "0.2.0",
"description": "",
"main": "index.js",
"keywords": [],
@@ -29,8 +29,7 @@
"eslint-plugin-unicorn": "^9.1.1"
},
"devDependencies": {
"eslint": "^6.0.1",
"standard-version": "^6.0.1"
"eslint": "^6.0.1"
},
"gitHead": "bd0460759c73f7fcdf32570f40a13e37ab6961c0"
}

View File

@@ -0,0 +1,33 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.2.2](https://github.com/antfu/eslint-config/compare/v0.2.1...v0.2.2) (2019-07-19)
### Bug Fixes
* update ts rules ([5d507f1](https://github.com/antfu/eslint-config/commit/5d507f1))
## [0.2.1](https://github.com/antfu/eslint-config/compare/v0.2.0...v0.2.1) (2019-07-17)
### Bug Fixes
* extends order ([0b40222](https://github.com/antfu/eslint-config/commit/0b40222))
# [0.2.0](https://github.com/antfu/eslint-config/compare/v0.1.5...v0.2.0) (2019-07-17)
### Features
* add ts config ([b025b09](https://github.com/antfu/eslint-config/commit/b025b09))

View File

@@ -0,0 +1,25 @@
module.exports = {
plugins: [
'@typescript-eslint',
],
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'@antfu/eslint-config',
],
rules: {
// TS
'no-useless-constructor': 'off',
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'none' } }],
'@typescript-eslint/type-annotation-spacing': ['error', {}],
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-empty-interface': 'off',
}
}

View File

@@ -0,0 +1,32 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.2.2",
"description": "",
"main": "index.js",
"keywords": [],
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"scripts": {
"lint": "eslint . --config=index.js"
},
"files": [
"index.js"
],
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"eslint": ">=5.16.0",
"typescript": ">=3.5"
},
"dependencies": {
"@antfu/eslint-config": "^0.2.0",
"@typescript-eslint/eslint-plugin": "1.11.0",
"@typescript-eslint/parser": "^1.10.2"
},
"devDependencies": {
"eslint": "^6.0.1",
"typescript": "^3.5.3"
},
"gitHead": "bd0460759c73f7fcdf32570f40a13e37ab6961c0"
}

55
packages/vue/CHANGELOG.md Normal file
View File

@@ -0,0 +1,55 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.2.5](https://github.com/antfu/eslint-config/compare/v0.2.4...v0.2.5) (2019-07-19)
### Bug Fixes
* vue ([be4d232](https://github.com/antfu/eslint-config/commit/be4d232))
## [0.2.4](https://github.com/antfu/eslint-config/compare/v0.2.3...v0.2.4) (2019-07-19)
### Bug Fixes
* vue deps ([03b3d7a](https://github.com/antfu/eslint-config/commit/03b3d7a))
## [0.2.3](https://github.com/antfu/eslint-config/compare/v0.2.2...v0.2.3) (2019-07-19)
### Bug Fixes
* update vue config ([cbf7bca](https://github.com/antfu/eslint-config/commit/cbf7bca))
## [0.2.1](https://github.com/antfu/eslint-config/compare/v0.2.0...v0.2.1) (2019-07-17)
### Bug Fixes
* extends order ([0b40222](https://github.com/antfu/eslint-config/commit/0b40222))
# [0.2.0](https://github.com/antfu/eslint-config/compare/v0.1.5...v0.2.0) (2019-07-17)
### Features
* add ts config ([b025b09](https://github.com/antfu/eslint-config/commit/b025b09))

View File

@@ -4,11 +4,13 @@ module.exports = {
parser: '@typescript-eslint/parser',
},
extends: [
'@antfu/eslint-config',
'plugin:vue/recommended',
'@antfu/eslint-config-ts',
],
plugins: [
'vue'
],
rules: {}
rules: {
'vue/max-attributes-per-line': ['warn', { singleline: 5 }],
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-vue",
"version": "0.1.5",
"version": "0.2.5",
"description": "",
"main": "index.js",
"keywords": [],
@@ -19,12 +19,13 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config": "^0.1.5",
"@antfu/eslint-config-ts": "^0.2.2",
"eslint-plugin-nuxt": "0.4.3",
"eslint-plugin-vue": "5.2.3"
},
"devDependencies": {
"eslint": "^6.0.1"
"eslint": "^6.0.1",
"typescript": "^3.5.3"
},
"gitHead": "bd0460759c73f7fcdf32570f40a13e37ab6961c0"
}

15
renovate.json Normal file
View File

@@ -0,0 +1,15 @@
{
"extends": [
"config:base",
":preserveSemverRanges",
"schedule:weekly",
"group:allNonMajor",
":maintainLockFilesWeekly"
],
"lockFileMaintenance": {
"extends": [
"group:allNonMajor"
],
"commitMessageAction": "Update"
}
}