Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
9153f9e759 | ||
|
0b40222ae9 | ||
|
e6e7a00698 | ||
|
5b47b8f0aa | ||
|
b63428da1a | ||
|
b025b09a5f |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -78,4 +78,4 @@ dist
|
||||
.idea
|
||||
|
||||
package-lock.json
|
||||
*.learna_backup
|
||||
*.lerna_backup
|
22
CHANGELOG.md
Normal file
22
CHANGELOG.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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.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.5"
|
||||
"version": "0.2.1"
|
||||
}
|
||||
|
17
package.json
17
package.json
@@ -5,9 +5,24 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"postinstall": "lerna bootstrap",
|
||||
"lint": "lerna run lint",
|
||||
"lint:fix": "lerna run lint -- -- --fix",
|
||||
"release": "lerna publish --conventional-commits"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
11
packages/common/CHANGELOG.md
Normal file
11
packages/common/CHANGELOG.md
Normal 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))
|
@@ -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.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"
|
||||
}
|
||||
|
22
packages/typescript/CHANGELOG.md
Normal file
22
packages/typescript/CHANGELOG.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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.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
packages/typescript/index.js
Normal file
21
packages/typescript/index.js
Normal file
@@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
],
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'@antfu/eslint-config',
|
||||
],
|
||||
rules: {
|
||||
// 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',
|
||||
}
|
||||
}
|
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.1",
|
||||
"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"
|
||||
}
|
22
packages/vue/CHANGELOG.md
Normal file
22
packages/vue/CHANGELOG.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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.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,8 +4,8 @@ module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
},
|
||||
extends: [
|
||||
'@antfu/eslint-config',
|
||||
'plugin:vue/recommended',
|
||||
'@antfu/eslint-config-ts',
|
||||
],
|
||||
plugins: [
|
||||
'vue'
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-vue",
|
||||
"version": "0.1.5",
|
||||
"version": "0.2.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"keywords": [],
|
||||
@@ -19,12 +19,13 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config": "^0.1.5",
|
||||
"@antfu/eslint-config": "^0.2.0",
|
||||
"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