Compare commits
35 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
03ce850ef4 | ||
|
c4a684032b | ||
|
5678d9f5c3 | ||
|
3f7f753a5a | ||
|
4cc878512b | ||
|
a3dd80c160 | ||
|
33b93946af | ||
|
4c35e1bbb8 | ||
|
4c7e189fcd | ||
|
0378f3d423 | ||
|
9755c28da2 | ||
|
7ce57bfbf1 | ||
|
c0c3070075 | ||
|
91a8757a8c | ||
|
245001d081 | ||
|
e25761fcfc | ||
|
7dd8ffaed0 | ||
|
24e025c12d | ||
|
e53f3ec8db | ||
|
14e207d392 | ||
|
c665c58309 | ||
|
f7c8146857 | ||
|
54cb86ec3b | ||
|
a7fbdcad4b | ||
|
f82ee6fce9 | ||
|
2243bf67fa | ||
|
3a6b4ea59e | ||
|
e0b59f271f | ||
|
b962266ba1 | ||
|
9b7f5ce9d1 | ||
|
c5ca025ff8 | ||
|
cd4bed781f | ||
|
093620f3b3 | ||
|
88b8b1ef6b | ||
|
494d99c2bb |
3
.eslintrc.json
Normal file
3
.eslintrc.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "@antfu"
|
||||
}
|
111
CHANGELOG.md
111
CHANGELOG.md
@@ -3,6 +3,117 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [0.5.0](https://github.com/antfu/eslint-config/compare/v0.4.3...v0.5.0) (2021-03-13)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* no unused disable ([5678d9f](https://github.com/antfu/eslint-config/commit/5678d9f5c3f72669d79434fba108c01d28f339e3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.3](https://github.com/antfu/eslint-config/compare/v0.4.2...v0.4.3) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-monorepo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.2](https://github.com/antfu/eslint-config/compare/v0.4.1...v0.4.2) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-monorepo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-monorepo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-monorepo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* disable import/no-absolute-path ([245001d](https://github.com/antfu/eslint-config/commit/245001d08129b3ec4961741d596f70abb2c9be5f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-monorepo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* ref ([e53f3ec](https://github.com/antfu/eslint-config/commit/e53f3ec8dbc1cc3e32d57c08604b2b1d51661ca4))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update all non-major dependencies ([f82ee6f](https://github.com/antfu/eslint-config/commit/f82ee6fce9153f098c8fbbeef17f88261e08176f))
|
||||
* **deps:** update all non-major dependencies ([2243bf6](https://github.com/antfu/eslint-config/commit/2243bf67fac0f75c1a4e35c604f49ebb2092d960))
|
||||
* **deps:** update dependency @typescript-eslint/eslint-plugin to v3.7.0 ([3a6b4ea](https://github.com/antfu/eslint-config/commit/3a6b4ea59ec8b9a4d75452ae1f6fd2c51d96b242))
|
||||
* **deps:** update dependency eslint-plugin-vue to v7.0.0-beta.0 ([e0b59f2](https://github.com/antfu/eslint-config/commit/e0b59f271fa3c679e5c4a7d61b5af79cef37721f))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add react and all ([a7fbdca](https://github.com/antfu/eslint-config/commit/a7fbdcad4b20294e26e817fae468f468376e49cf))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.14](https://github.com/antfu/eslint-config/compare/v0.2.13...v0.2.14) (2020-07-18)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.13](https://github.com/antfu/eslint-config/compare/v0.2.12...v0.2.13) (2020-06-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency @typescript-eslint/eslint-plugin to v3.1.0 ([494d99c](https://github.com/antfu/eslint-config/commit/494d99c2bb52895a055cea7be9b50494a6a67358))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.12](https://github.com/antfu/eslint-config/compare/v0.2.11...v0.2.12) (2020-06-04)
|
||||
|
||||
|
||||
|
@@ -2,5 +2,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.2.12"
|
||||
"version": "0.5.0"
|
||||
}
|
||||
|
9026
package-lock.json
generated
9026
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
30
package.json
30
package.json
@@ -1,30 +1,18 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config",
|
||||
"name": "@antfu/eslint-config-monorepo",
|
||||
"version": "0.1.0",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"postinstall": "lerna bootstrap",
|
||||
"lint": "lerna run lint",
|
||||
"lint:fix": "lerna run lint -- -- --fix",
|
||||
"release": "lerna publish --conventional-commits --graph-type all -y"
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"lint": "npx eslint --ext .js --fix .",
|
||||
"release": "lerna publish --conventional-commits"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.2.11",
|
||||
"eslint": "^7.1.0",
|
||||
"lerna": "^3.22.0",
|
||||
"typescript": "^3.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "3.1.0",
|
||||
"@typescript-eslint/parser": "^3.1.0",
|
||||
"eslint-config-standard": "^14.1.1",
|
||||
"eslint-plugin-import": "^2.20.2",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-nuxt": "1.0.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"eslint-plugin-unicorn": "^20.1.0",
|
||||
"eslint-plugin-vue": "6.2.2"
|
||||
"@antfu/eslint-config": "*",
|
||||
"eslint": "^7.22.0",
|
||||
"lerna": "^4.0.0",
|
||||
"typescript": "^4.2.3"
|
||||
}
|
||||
}
|
||||
|
75
packages/all/CHANGELOG.md
Normal file
75
packages/all/CHANGELOG.md
Normal file
@@ -0,0 +1,75 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [0.5.0](https://github.com/antfu/eslint-config/compare/v0.4.3...v0.5.0) (2021-03-13)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.3](https://github.com/antfu/eslint-config/compare/v0.4.2...v0.4.3) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.2](https://github.com/antfu/eslint-config/compare/v0.4.1...v0.4.2) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add react and all ([a7fbdca](https://github.com/antfu/eslint-config/commit/a7fbdcad4b20294e26e817fae468f468376e49cf))
|
6
packages/all/index.js
Normal file
6
packages/all/index.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'@antfu/eslint-config-react',
|
||||
'@antfu/eslint-config-vue',
|
||||
],
|
||||
}
|
25
packages/all/package.json
Normal file
25
packages/all/package.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config",
|
||||
"version": "0.5.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"keywords": [],
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"eslint": ">=7.4.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config-react": "^0.5.0",
|
||||
"@antfu/eslint-config-vue": "^0.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.22.0"
|
||||
}
|
||||
}
|
@@ -3,6 +3,90 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [0.5.0](https://github.com/antfu/eslint-config/compare/v0.4.3...v0.5.0) (2021-03-13)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* no unused disable ([5678d9f](https://github.com/antfu/eslint-config/commit/5678d9f5c3f72669d79434fba108c01d28f339e3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.3](https://github.com/antfu/eslint-config/compare/v0.4.2...v0.4.3) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-basic
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.2](https://github.com/antfu/eslint-config/compare/v0.4.1...v0.4.2) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-basic
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-basic
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* disable import/no-absolute-path ([245001d](https://github.com/antfu/eslint-config/commit/245001d08129b3ec4961741d596f70abb2c9be5f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-basic
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add react and all ([a7fbdca](https://github.com/antfu/eslint-config/commit/a7fbdcad4b20294e26e817fae468f468376e49cf))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.14](https://github.com/antfu/eslint-config/compare/v0.2.13...v0.2.14) (2020-07-18)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.13](https://github.com/antfu/eslint-config/compare/v0.2.12...v0.2.13) (2020-06-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency @typescript-eslint/eslint-plugin to v3.1.0 ([494d99c](https://github.com/antfu/eslint-config/commit/494d99c2bb52895a055cea7be9b50494a6a67358))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.12](https://github.com/antfu/eslint-config/compare/v0.2.11...v0.2.12) (2020-06-04)
|
||||
|
||||
|
@@ -8,11 +8,9 @@ module.exports = {
|
||||
'standard',
|
||||
'plugin:import/errors',
|
||||
'plugin:import/warnings',
|
||||
'plugin:unicorn/recommended',
|
||||
],
|
||||
plugins: [
|
||||
'unicorn',
|
||||
'plugin:eslint-comments/recommended',
|
||||
],
|
||||
plugins: ['html', 'unicorn'],
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
node: { extensions: ['.js', '.mjs'] },
|
||||
@@ -24,17 +22,18 @@ module.exports = {
|
||||
'import/first': 'error',
|
||||
'import/no-mutable-exports': 'error',
|
||||
'import/no-unresolved': 'off',
|
||||
'import/no-absolute-path': 'off',
|
||||
|
||||
// Common
|
||||
'semi': [2, 'never'],
|
||||
'curly': [2, 'multi-or-nest', 'consistent'],
|
||||
'quotes': ['error', 'single'],
|
||||
semi: [2, 'never'],
|
||||
curly: [2, 'multi-or-nest', 'consistent'],
|
||||
quotes: ['error', 'single'],
|
||||
'no-unused-vars': 'warn',
|
||||
'no-param-reassign': 'off',
|
||||
'array-bracket-spacing': ['error', 'never'],
|
||||
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }],
|
||||
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
|
||||
'block-spacing': ['error', 'always'],
|
||||
'camelcase': 'off',
|
||||
camelcase: 'off',
|
||||
'comma-spacing': ['error', { before: false, after: true }],
|
||||
'comma-style': ['error', 'last'],
|
||||
'comma-dangle': ['error', 'always-multiline'],
|
||||
@@ -44,7 +43,7 @@ module.exports = {
|
||||
'no-cond-assign': ['error', 'always'],
|
||||
'func-call-spacing': ['off', 'never'],
|
||||
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
||||
'indent': ['error', 2, { SwitchCase: 1, VariableDeclarator: 1, outerIIFEBody: 1 }],
|
||||
indent: ['error', 2, { SwitchCase: 1, VariableDeclarator: 1, outerIIFEBody: 1 }],
|
||||
'no-restricted-syntax': [
|
||||
'error',
|
||||
'DebuggerStatement',
|
||||
@@ -59,18 +58,28 @@ module.exports = {
|
||||
|
||||
// es6
|
||||
'no-var': 'error',
|
||||
'prefer-const': ['error', {
|
||||
destructuring: 'any',
|
||||
ignoreReadBeforeAssign: true,
|
||||
}],
|
||||
'prefer-arrow-callback': ['error', {
|
||||
allowNamedFunctions: false,
|
||||
allowUnboundThis: true,
|
||||
}],
|
||||
'object-shorthand': ['error', 'always', {
|
||||
ignoreConstructors: false,
|
||||
avoidQuotes: true,
|
||||
}],
|
||||
'prefer-const': [
|
||||
'error',
|
||||
{
|
||||
destructuring: 'any',
|
||||
ignoreReadBeforeAssign: true,
|
||||
},
|
||||
],
|
||||
'prefer-arrow-callback': [
|
||||
'error',
|
||||
{
|
||||
allowNamedFunctions: false,
|
||||
allowUnboundThis: true,
|
||||
},
|
||||
],
|
||||
'object-shorthand': [
|
||||
'error',
|
||||
'always',
|
||||
{
|
||||
ignoreConstructors: false,
|
||||
avoidQuotes: true,
|
||||
},
|
||||
],
|
||||
'prefer-rest-params': 'error',
|
||||
'prefer-spread': 'error',
|
||||
'prefer-template': 'error',
|
||||
@@ -82,8 +91,8 @@ module.exports = {
|
||||
'array-callback-return': 'error',
|
||||
'block-scoped-var': 'error',
|
||||
'consistent-return': 'off',
|
||||
'complexity': ['off', 11],
|
||||
'eqeqeq': ['error', 'allow-null'],
|
||||
complexity: ['off', 11],
|
||||
eqeqeq: ['error', 'allow-null'],
|
||||
'no-alert': 'warn',
|
||||
'no-case-declarations': 'error',
|
||||
'no-multi-spaces': 'error',
|
34
packages/basic/package.json
Normal file
34
packages/basic/package.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-basic",
|
||||
"version": "0.5.0",
|
||||
"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": ">=7.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"eslint-config-standard": "^16.0.2",
|
||||
"eslint-plugin-html": "^6.1.2",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^4.3.1",
|
||||
"eslint-plugin-standard": "^5.0.0",
|
||||
"eslint-plugin-unicorn": "^28.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.22.0",
|
||||
"eslint-plugin-eslint-comments": "^3.2.0"
|
||||
}
|
||||
}
|
1915
packages/common/package-lock.json
generated
1915
packages/common/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,35 +0,0 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config",
|
||||
"version": "0.2.12",
|
||||
"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": ">=6.6.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "3.0.2",
|
||||
"@typescript-eslint/parser": "^3.0.0",
|
||||
"eslint-config-standard": "^14.1.0",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint-plugin-node": "^11.0.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"eslint-plugin-unicorn": "^20.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.0.0"
|
||||
},
|
||||
"gitHead": "bd0460759c73f7fcdf32570f40a13e37ab6961c0"
|
||||
}
|
78
packages/react/CHANGELOG.md
Normal file
78
packages/react/CHANGELOG.md
Normal file
@@ -0,0 +1,78 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [0.5.0](https://github.com/antfu/eslint-config/compare/v0.4.3...v0.5.0) (2021-03-13)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* no unused disable ([5678d9f](https://github.com/antfu/eslint-config/commit/5678d9f5c3f72669d79434fba108c01d28f339e3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.3](https://github.com/antfu/eslint-config/compare/v0.4.2...v0.4.3) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.2](https://github.com/antfu/eslint-config/compare/v0.4.1...v0.4.2) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add react and all ([a7fbdca](https://github.com/antfu/eslint-config/commit/a7fbdcad4b20294e26e817fae468f468376e49cf))
|
17
packages/react/index.js
Normal file
17
packages/react/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'plugin:react/recommended',
|
||||
'@antfu/eslint-config-ts',
|
||||
],
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'jsx-quotes': [
|
||||
'error',
|
||||
'prefer-double',
|
||||
],
|
||||
},
|
||||
}
|
30
packages/react/package.json
Normal file
30
packages/react/package.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-react",
|
||||
"version": "0.5.0",
|
||||
"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"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"eslint": ">=7.4.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config-ts": "^0.5.0",
|
||||
"eslint-plugin-react": "^7.22.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.22.0",
|
||||
"react": "^17.0.1",
|
||||
"typescript": "^4.2.3"
|
||||
}
|
||||
}
|
@@ -3,6 +3,113 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [0.5.0](https://github.com/antfu/eslint-config/compare/v0.4.3...v0.5.0) (2021-03-13)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* no unused disable ([5678d9f](https://github.com/antfu/eslint-config/commit/5678d9f5c3f72669d79434fba108c01d28f339e3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.3](https://github.com/antfu/eslint-config/compare/v0.4.2...v0.4.3) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.2](https://github.com/antfu/eslint-config/compare/v0.4.1...v0.4.2) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* ref ([e53f3ec](https://github.com/antfu/eslint-config/commit/e53f3ec8dbc1cc3e32d57c08604b2b1d51661ca4))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update all non-major dependencies ([f82ee6f](https://github.com/antfu/eslint-config/commit/f82ee6fce9153f098c8fbbeef17f88261e08176f))
|
||||
* **deps:** update all non-major dependencies ([2243bf6](https://github.com/antfu/eslint-config/commit/2243bf67fac0f75c1a4e35c604f49ebb2092d960))
|
||||
* **deps:** update dependency @typescript-eslint/eslint-plugin to v3.7.0 ([3a6b4ea](https://github.com/antfu/eslint-config/commit/3a6b4ea59ec8b9a4d75452ae1f6fd2c51d96b242))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add react and all ([a7fbdca](https://github.com/antfu/eslint-config/commit/a7fbdcad4b20294e26e817fae468f468376e49cf))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.14](https://github.com/antfu/eslint-config/compare/v0.2.13...v0.2.14) (2020-07-18)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.13](https://github.com/antfu/eslint-config/compare/v0.2.12...v0.2.13) (2020-06-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency @typescript-eslint/eslint-plugin to v3.1.0 ([494d99c](https://github.com/antfu/eslint-config/commit/494d99c2bb52895a055cea7be9b50494a6a67358))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.12](https://github.com/antfu/eslint-config/compare/v0.2.11...v0.2.12) (2020-06-04)
|
||||
|
||||
|
||||
|
@@ -4,17 +4,24 @@ module.exports = {
|
||||
],
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: [
|
||||
'@antfu/eslint-config-basic',
|
||||
'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', {}],
|
||||
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'no-redeclare': 'off',
|
||||
'@typescript-eslint/no-redeclare': 'error',
|
||||
|
||||
|
||||
// off
|
||||
'@typescript-eslint/camelcase': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
'@typescript-eslint/explicit-member-accessibility': 'off',
|
||||
@@ -27,5 +34,5 @@ module.exports = {
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'@typescript-eslint/ban-types': 'off',
|
||||
}
|
||||
},
|
||||
}
|
||||
|
1193
packages/typescript/package-lock.json
generated
1193
packages/typescript/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,11 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-ts",
|
||||
"version": "0.2.12",
|
||||
"version": "0.5.0",
|
||||
"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"
|
||||
],
|
||||
@@ -16,17 +13,15 @@
|
||||
"access": "public"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">=6.6.0",
|
||||
"typescript": ">=3.6"
|
||||
"eslint": ">=7.4.0",
|
||||
"typescript": ">=3.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config": "^0.2.12",
|
||||
"@typescript-eslint/eslint-plugin": "3.0.2",
|
||||
"@typescript-eslint/parser": "^3.0.0"
|
||||
"@antfu/eslint-config-basic": "^0.5.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
||||
"@typescript-eslint/parser": "^4.17.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.0.0",
|
||||
"typescript": "^3.7.1-rc"
|
||||
},
|
||||
"gitHead": "bd0460759c73f7fcdf32570f40a13e37ab6961c0"
|
||||
"eslint": "^7.22.0"
|
||||
}
|
||||
}
|
||||
|
@@ -3,6 +3,107 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [0.5.0](https://github.com/antfu/eslint-config/compare/v0.4.3...v0.5.0) (2021-03-13)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* no unused disable ([5678d9f](https://github.com/antfu/eslint-config/commit/5678d9f5c3f72669d79434fba108c01d28f339e3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.3](https://github.com/antfu/eslint-config/compare/v0.4.2...v0.4.3) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.2](https://github.com/antfu/eslint-config/compare/v0.4.1...v0.4.2) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update all non-major dependencies ([f82ee6f](https://github.com/antfu/eslint-config/commit/f82ee6fce9153f098c8fbbeef17f88261e08176f))
|
||||
* **deps:** update all non-major dependencies ([2243bf6](https://github.com/antfu/eslint-config/commit/2243bf67fac0f75c1a4e35c604f49ebb2092d960))
|
||||
* **deps:** update dependency eslint-plugin-vue to v7.0.0-beta.0 ([e0b59f2](https://github.com/antfu/eslint-config/commit/e0b59f271fa3c679e5c4a7d61b5af79cef37721f))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add react and all ([a7fbdca](https://github.com/antfu/eslint-config/commit/a7fbdcad4b20294e26e817fae468f468376e49cf))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.14](https://github.com/antfu/eslint-config/compare/v0.2.13...v0.2.14) (2020-07-18)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.13](https://github.com/antfu/eslint-config/compare/v0.2.12...v0.2.13) (2020-06-09)
|
||||
|
||||
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.2.12](https://github.com/antfu/eslint-config/compare/v0.2.11...v0.2.12) (2020-06-04)
|
||||
|
||||
|
||||
|
@@ -4,13 +4,14 @@ module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
},
|
||||
extends: [
|
||||
'plugin:vue/recommended',
|
||||
'plugin:vue/vue3-recommended',
|
||||
'@antfu/eslint-config-ts',
|
||||
],
|
||||
plugins: [
|
||||
'vue'
|
||||
'vue',
|
||||
],
|
||||
rules: {
|
||||
'vue/max-attributes-per-line': ['warn', { singleline: 5 }],
|
||||
}
|
||||
'vue/html-self-closing': 'off'
|
||||
},
|
||||
}
|
||||
|
1214
packages/vue/package-lock.json
generated
1214
packages/vue/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,31 +1,25 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-vue",
|
||||
"version": "0.2.12",
|
||||
"version": "0.5.0",
|
||||
"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"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"eslint": ">=6.6.0"
|
||||
"eslint": ">=7.4.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config-ts": "^0.2.12",
|
||||
"eslint-plugin-nuxt": "1.0.0",
|
||||
"eslint-plugin-vue": "6.2.2"
|
||||
"@antfu/eslint-config-ts": "^0.5.0",
|
||||
"eslint-plugin-vue": "7.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.0.0",
|
||||
"typescript": "^3.7.1-rc"
|
||||
},
|
||||
"gitHead": "bd0460759c73f7fcdf32570f40a13e37ab6961c0"
|
||||
"eslint": "^7.22.0"
|
||||
}
|
||||
}
|
||||
|
5991
pnpm-lock.yaml
generated
Normal file
5991
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
2
pnpm-workspace.yaml
Normal file
2
pnpm-workspace.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
- 'packages/*'
|
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base",
|
||||
":preserveSemverRanges",
|
||||
"schedule:weekly",
|
||||
"group:allNonMajor"
|
||||
],
|
||||
"lockFileMaintenance": {
|
||||
"extends": [
|
||||
"group:allNonMajor"
|
||||
],
|
||||
"commitMessageAction": "Update"
|
||||
},
|
||||
"automerge": true
|
||||
}
|
Reference in New Issue
Block a user