Compare commits
23 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
65626a180f | ||
|
0a2b8cdede | ||
|
d2aae84352 | ||
|
d93b98c721 | ||
|
1f4250e75e | ||
|
b4b704fb81 | ||
|
23506b57c1 | ||
|
be4d232fb8 | ||
|
2e208c4d05 | ||
|
03b3d7a295 | ||
|
559d60c3ec | ||
|
cbf7bca6d2 | ||
|
7105b268ee | ||
|
c8c6f07341 | ||
|
5d507f1d93 | ||
|
9153f9e759 | ||
|
0b40222ae9 | ||
|
e6e7a00698 | ||
|
5b47b8f0aa | ||
|
b63428da1a | ||
|
b025b09a5f | ||
|
25922716ee | ||
|
2022fc2a1f |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -78,4 +78,4 @@ dist
|
||||
.idea
|
||||
|
||||
package-lock.json
|
||||
*.learna_backup
|
||||
*.lerna_backup
|
79
CHANGELOG.md
Normal file
79
CHANGELOG.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# 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.6](https://github.com/antfu/eslint-config/compare/v0.2.5...v0.2.6) (2019-08-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency eslint-plugin-unicorn to v10 ([b4b704f](https://github.com/antfu/eslint-config/commit/b4b704f))
|
||||
* **deps:** update typescript-eslint monorepo to v2 ([1f4250e](https://github.com/antfu/eslint-config/commit/1f4250e))
|
||||
* update ts config ([0a2b8cd](https://github.com/antfu/eslint-config/commit/0a2b8cd))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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
21
LICENSE
Normal 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.
|
@@ -2,5 +2,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.1.4"
|
||||
"version": "0.2.6"
|
||||
}
|
||||
|
19
package.json
19
package.json
@@ -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": "2.0.0",
|
||||
"@typescript-eslint/parser": "^2.0.0",
|
||||
"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": "^10.0.0",
|
||||
"eslint-plugin-vue": "5.2.3",
|
||||
"lerna": "^3.14.1",
|
||||
"typescript": "^3.5.3"
|
||||
}
|
||||
}
|
||||
|
23
packages/common/CHANGELOG.md
Normal file
23
packages/common/CHANGELOG.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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.6](https://github.com/antfu/eslint-config/compare/v0.2.5...v0.2.6) (2019-08-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency eslint-plugin-unicorn to v10 ([b4b704f](https://github.com/antfu/eslint-config/commit/b4b704f))
|
||||
* **deps:** update typescript-eslint monorepo to v2 ([1f4250e](https://github.com/antfu/eslint-config/commit/1f4250e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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))
|
@@ -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',
|
||||
}
|
||||
},
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config",
|
||||
"version": "0.1.4",
|
||||
"version": "0.2.6",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"keywords": [],
|
||||
@@ -12,21 +12,24 @@
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">=5.16.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "1.11.0",
|
||||
"@typescript-eslint/parser": "^1.10.2",
|
||||
"@typescript-eslint/eslint-plugin": "2.0.0",
|
||||
"@typescript-eslint/parser": "^2.0.0",
|
||||
"eslint-config-standard": "^12.0.0",
|
||||
"eslint-plugin-import": "^2.18.0",
|
||||
"eslint-plugin-node": "^9.1.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-standard": "^4.0.0",
|
||||
"eslint-plugin-unicorn": "^9.1.1"
|
||||
"eslint-plugin-unicorn": "^10.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^6.0.1",
|
||||
"standard-version": "^6.0.1"
|
||||
}
|
||||
"eslint": "^6.0.1"
|
||||
},
|
||||
"gitHead": "bd0460759c73f7fcdf32570f40a13e37ab6961c0"
|
||||
}
|
||||
|
45
packages/typescript/CHANGELOG.md
Normal file
45
packages/typescript/CHANGELOG.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# 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.6](https://github.com/antfu/eslint-config/compare/v0.2.5...v0.2.6) (2019-08-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update typescript-eslint monorepo to v2 ([1f4250e](https://github.com/antfu/eslint-config/commit/1f4250e))
|
||||
* update ts config ([0a2b8cd](https://github.com/antfu/eslint-config/commit/0a2b8cd))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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))
|
26
packages/typescript/index.js
Normal file
26
packages/typescript/index.js
Normal file
@@ -0,0 +1,26 @@
|
||||
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',
|
||||
'@typescript-eslint/ban-ts-ignore': 'off',
|
||||
}
|
||||
}
|
32
packages/typescript/package.json
Normal file
32
packages/typescript/package.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-ts",
|
||||
"version": "0.2.6",
|
||||
"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.6",
|
||||
"@typescript-eslint/eslint-plugin": "2.0.0",
|
||||
"@typescript-eslint/parser": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^6.0.1",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"gitHead": "bd0460759c73f7fcdf32570f40a13e37ab6961c0"
|
||||
}
|
63
packages/vue/CHANGELOG.md
Normal file
63
packages/vue/CHANGELOG.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# 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.6](https://github.com/antfu/eslint-config/compare/v0.2.5...v0.2.6) (2019-08-22)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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))
|
@@ -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 }],
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-vue",
|
||||
"version": "0.1.4",
|
||||
"version": "0.2.6",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"keywords": [],
|
||||
@@ -15,12 +15,17 @@
|
||||
"peerDependencies": {
|
||||
"eslint": ">=5.16.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config": "^0.1.4",
|
||||
"@antfu/eslint-config-ts": "^0.2.6",
|
||||
"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
15
renovate.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base",
|
||||
":preserveSemverRanges",
|
||||
"schedule:weekly",
|
||||
"group:allNonMajor",
|
||||
":maintainLockFilesWeekly"
|
||||
],
|
||||
"lockFileMaintenance": {
|
||||
"extends": [
|
||||
"group:allNonMajor"
|
||||
],
|
||||
"commitMessageAction": "Update"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user