Compare commits

..

16 Commits

Author SHA1 Message Date
Anthony Fu
18e673f773 v0.18.6 2022-03-10 20:33:15 +08:00
Anthony Fu
98708f1996 fix: ignore lock files 2022-03-10 20:33:09 +08:00
Anthony Fu
8b0a239f8f chore: package.json keys 2022-03-10 20:29:48 +08:00
Anthony Fu
a60cd80ba9 chore: lint 2022-03-10 20:28:42 +08:00
Anthony Fu
48cc619ec2 v0.18.5 2022-03-10 20:26:37 +08:00
Anthony Fu
97975dafc5 fix: package.json keys order 2022-03-10 20:26:31 +08:00
Anthony Fu
b425b251ea chore: update readme 2022-03-10 20:22:02 +08:00
Anthony Fu
9346e47d92 v0.18.4 2022-03-10 20:20:02 +08:00
Anthony Fu
b6133dcd42 fix: package.json key orders 2022-03-10 20:19:52 +08:00
Anthony Fu
b7cff5d6a2 chore: update ignore pattern 2022-03-10 20:16:17 +08:00
Anthony Fu
e54ac17e09 fix: imporve markdown rules 2022-03-09 19:00:11 +08:00
Anthony Fu
8f51445a67 fix: lint vitepress by default 2022-03-09 18:58:38 +08:00
Anthony Fu
4a0c791207 v0.18.3 2022-03-08 03:29:02 +08:00
Anthony Fu
8e1140aef2 fix: disable no-callback-literal 2022-03-08 03:28:56 +08:00
Anthony Fu
a46866b102 v0.18.2 2022-03-08 03:24:07 +08:00
Anthony Fu
0117961e43 fix: update markdown rules 2022-03-08 03:24:01 +08:00
15 changed files with 327 additions and 41 deletions

View File

@@ -3,6 +3,63 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.18.6](https://github.com/antfu/eslint-config/compare/v0.18.5...v0.18.6) (2022-03-10)
### Bug Fixes
* ignore lock files ([98708f1](https://github.com/antfu/eslint-config/commit/98708f19962c2544ed5fb3385c9cd0054b44c981))
## [0.18.5](https://github.com/antfu/eslint-config/compare/v0.18.4...v0.18.5) (2022-03-10)
### Bug Fixes
* package.json keys order ([97975da](https://github.com/antfu/eslint-config/commit/97975dafc50c919b7a5a46fe94314e4f367bde22))
## [0.18.4](https://github.com/antfu/eslint-config/compare/v0.18.3...v0.18.4) (2022-03-10)
### Bug Fixes
* imporve markdown rules ([e54ac17](https://github.com/antfu/eslint-config/commit/e54ac17e09090fd6ff18e65ecaf312b2a0556aa6))
* lint vitepress by default ([8f51445](https://github.com/antfu/eslint-config/commit/8f51445a6781c98163a439b25b4fa1c1a6649110))
* package.json key orders ([b6133dc](https://github.com/antfu/eslint-config/commit/b6133dcd42b1b051e4bd150897c9b307e61eda51))
## [0.18.3](https://github.com/antfu/eslint-config/compare/v0.18.2...v0.18.3) (2022-03-07)
### Bug Fixes
* disable no-callback-literal ([8e1140a](https://github.com/antfu/eslint-config/commit/8e1140aef29d3562eac9f009f45c7160494eec67))
## [0.18.2](https://github.com/antfu/eslint-config/compare/v0.18.1...v0.18.2) (2022-03-07)
### Bug Fixes
* update markdown rules ([0117961](https://github.com/antfu/eslint-config/commit/0117961e430a4f8cd6ad942ba19631f1c7e19459))
## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07) ## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07)

View File

@@ -14,19 +14,10 @@ pnpm add -D eslint @antfu/eslint-config
```json ```json
{ {
"extends": [ "extends": "@antfu"
"@antfu"
]
} }
``` ```
### Config `.eslintignore`
```txt
dist
public
```
### Add script for package.json ### Add script for package.json
For example: For example:
@@ -34,12 +25,12 @@ For example:
```json ```json
{ {
"scripts": { "scripts": {
"lint": "eslint \"**/*.{vue,ts,js}\"" "lint": "eslint ."
} }
} }
``` ```
### Config VSCode auto fix ### Config VS Code auto fix
Create `.vscode/settings.json` Create `.vscode/settings.json`

View File

@@ -2,5 +2,5 @@
"packages": [ "packages": [
"packages/*" "packages/*"
], ],
"version": "0.18.1" "version": "0.18.6"
} }

View File

@@ -1,12 +1,11 @@
{ {
"name": "@antfu/eslint-config-monorepo", "name": "@antfu/eslint-config-monorepo",
"version": "0.1.0", "private": true,
"license": "MIT", "license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"private": true,
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm", "preinstall": "npx only-allow pnpm",
"lint": "npx eslint --ext .js,.json,.vue,.md .", "lint": "eslint .",
"release": "lerna publish --conventional-commits" "release": "lerna publish --conventional-commits"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -3,6 +3,46 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.18.6](https://github.com/antfu/eslint-config/compare/v0.18.5...v0.18.6) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config
## [0.18.5](https://github.com/antfu/eslint-config/compare/v0.18.4...v0.18.5) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config
## [0.18.4](https://github.com/antfu/eslint-config/compare/v0.18.3...v0.18.4) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config
## [0.18.3](https://github.com/antfu/eslint-config/compare/v0.18.2...v0.18.3) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config
## [0.18.2](https://github.com/antfu/eslint-config/compare/v0.18.1...v0.18.2) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config
## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07) ## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config **Note:** Version bump only for package @antfu/eslint-config

View File

@@ -1,20 +1,20 @@
{ {
"name": "@antfu/eslint-config", "name": "@antfu/eslint-config",
"version": "0.18.1", "version": "0.18.6",
"description": "", "description": "",
"keywords": [], "keywords": [],
"license": "MIT", "license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"main": "index.js",
"files": [ "files": [
"index.js" "index.js"
], ],
"main": "index.js",
"peerDependencies": { "peerDependencies": {
"eslint": ">=7.4.0" "eslint": ">=7.4.0"
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-react": "^0.18.1", "@antfu/eslint-config-react": "^0.18.6",
"@antfu/eslint-config-vue": "^0.18.1", "@antfu/eslint-config-vue": "^0.18.6",
"@typescript-eslint/eslint-plugin": "^5.13.0", "@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0", "@typescript-eslint/parser": "^5.13.0",
"eslint-config-standard": "17.0.0-1", "eslint-config-standard": "17.0.0-1",

View File

@@ -3,6 +3,63 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.18.6](https://github.com/antfu/eslint-config/compare/v0.18.5...v0.18.6) (2022-03-10)
### Bug Fixes
* ignore lock files ([98708f1](https://github.com/antfu/eslint-config/commit/98708f19962c2544ed5fb3385c9cd0054b44c981))
## [0.18.5](https://github.com/antfu/eslint-config/compare/v0.18.4...v0.18.5) (2022-03-10)
### Bug Fixes
* package.json keys order ([97975da](https://github.com/antfu/eslint-config/commit/97975dafc50c919b7a5a46fe94314e4f367bde22))
## [0.18.4](https://github.com/antfu/eslint-config/compare/v0.18.3...v0.18.4) (2022-03-10)
### Bug Fixes
* imporve markdown rules ([e54ac17](https://github.com/antfu/eslint-config/commit/e54ac17e09090fd6ff18e65ecaf312b2a0556aa6))
* lint vitepress by default ([8f51445](https://github.com/antfu/eslint-config/commit/8f51445a6781c98163a439b25b4fa1c1a6649110))
* package.json key orders ([b6133dc](https://github.com/antfu/eslint-config/commit/b6133dcd42b1b051e4bd150897c9b307e61eda51))
## [0.18.3](https://github.com/antfu/eslint-config/compare/v0.18.2...v0.18.3) (2022-03-07)
### Bug Fixes
* disable no-callback-literal ([8e1140a](https://github.com/antfu/eslint-config/commit/8e1140aef29d3562eac9f009f45c7160494eec67))
## [0.18.2](https://github.com/antfu/eslint-config/compare/v0.18.1...v0.18.2) (2022-03-07)
### Bug Fixes
* update markdown rules ([0117961](https://github.com/antfu/eslint-config/commit/0117961e430a4f8cd6ad942ba19631f1c7e19459))
## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07) ## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07)

View File

@@ -13,13 +13,19 @@ module.exports = {
'plugin:markdown/recommended', 'plugin:markdown/recommended',
], ],
ignorePatterns: [ ignorePatterns: [
'.cache',
'*.min.*', '*.min.*',
'CHANGELOG.md', 'CHANGELOG.md',
'dist', 'dist',
'LICENSE.*', 'LICENSE*',
'output',
'packages-lock.json',
'pnpm-lock.yaml',
'public', 'public',
'temp', 'temp',
'yarn.lock',
'!.github',
'!.vitepress',
'!.vscode',
], ],
plugins: [ plugins: [
'html', 'html',
@@ -54,27 +60,33 @@ module.exports = {
pathPattern: '^$', pathPattern: '^$',
order: [ order: [
'name', 'name',
'type',
'version', 'version',
'private',
'packageManager',
'description', 'description',
'keywords', 'keywords',
'license', 'license',
'author',
'repository', 'repository',
'funding', 'funding',
'author',
'type',
'files',
'exports',
'main', 'main',
'module', 'module',
'types',
'unpkg', 'unpkg',
'jsdelivr',
'exports',
'files',
'bin', 'bin',
'sideEffects',
'scripts', 'scripts',
'husky',
'lint-staged',
'peerDependencies', 'peerDependencies',
'peerDependenciesMeta', 'peerDependenciesMeta',
'dependencies', 'dependencies',
'optionalDependencies',
'devDependencies', 'devDependencies',
'husky',
'lint-staged',
'eslintConfig', 'eslintConfig',
], ],
}, },
@@ -113,10 +125,16 @@ module.exports = {
// Code blocks in markdown file // Code blocks in markdown file
files: ['**/*.md/*.*'], files: ['**/*.md/*.*'],
rules: { rules: {
'no-unused-vars': 'off', '@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'import/no-unresolved': 'off',
'no-alert': 'off',
'no-console': 'off',
'no-restricted-imports': 'off',
'no-undef': 'off', 'no-undef': 'off',
'no-unused-expressions': 'off', 'no-unused-expressions': 'off',
'import/no-unresolved': 'off', 'no-unused-vars': 'off',
}, },
}, },
], ],
@@ -248,6 +266,7 @@ module.exports = {
'no-use-before-define': ['error', { functions: false, classes: false, variables: true }], 'no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
'eslint-comments/disable-enable-pair': 'off', 'eslint-comments/disable-enable-pair': 'off',
'import/no-named-as-default-member': 'off', 'import/no-named-as-default-member': 'off',
'n/no-callback-literal': 'off',
'sort-imports': [ 'sort-imports': [
'error', 'error',
@@ -259,5 +278,8 @@ module.exports = {
allowSeparatedGroups: false, allowSeparatedGroups: false,
}, },
], ],
// yml
'yml/quotes': ['error', { prefer: 'single', avoidEscape: false }],
}, },
} }

View File

@@ -1,14 +1,14 @@
{ {
"name": "@antfu/eslint-config-basic", "name": "@antfu/eslint-config-basic",
"version": "0.18.1", "version": "0.18.6",
"description": "", "description": "",
"keywords": [], "keywords": [],
"license": "MIT", "license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"main": "index.js",
"files": [ "files": [
"index.js" "index.js"
], ],
"main": "index.js",
"scripts": { "scripts": {
"lint": "eslint . --config=index.js" "lint": "eslint . --config=index.js"
}, },

View File

@@ -3,6 +3,46 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.18.6](https://github.com/antfu/eslint-config/compare/v0.18.5...v0.18.6) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.18.5](https://github.com/antfu/eslint-config/compare/v0.18.4...v0.18.5) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.18.4](https://github.com/antfu/eslint-config/compare/v0.18.3...v0.18.4) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.18.3](https://github.com/antfu/eslint-config/compare/v0.18.2...v0.18.3) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.18.2](https://github.com/antfu/eslint-config/compare/v0.18.1...v0.18.2) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07) ## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-react **Note:** Version bump only for package @antfu/eslint-config-react

View File

@@ -1,14 +1,14 @@
{ {
"name": "@antfu/eslint-config-react", "name": "@antfu/eslint-config-react",
"version": "0.18.1", "version": "0.18.6",
"description": "", "description": "",
"keywords": [], "keywords": [],
"license": "MIT", "license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"main": "index.js",
"files": [ "files": [
"index.js" "index.js"
], ],
"main": "index.js",
"scripts": { "scripts": {
"lint": "eslint . --config=index.js" "lint": "eslint . --config=index.js"
}, },
@@ -19,7 +19,7 @@
"access": "public" "access": "public"
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-ts": "^0.18.1", "@antfu/eslint-config-ts": "^0.18.6",
"eslint-plugin-react": "^7.29.3" "eslint-plugin-react": "^7.29.3"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -3,6 +3,46 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.18.6](https://github.com/antfu/eslint-config/compare/v0.18.5...v0.18.6) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [0.18.5](https://github.com/antfu/eslint-config/compare/v0.18.4...v0.18.5) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [0.18.4](https://github.com/antfu/eslint-config/compare/v0.18.3...v0.18.4) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [0.18.3](https://github.com/antfu/eslint-config/compare/v0.18.2...v0.18.3) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [0.18.2](https://github.com/antfu/eslint-config/compare/v0.18.1...v0.18.2) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07) ## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-ts **Note:** Version bump only for package @antfu/eslint-config-ts

View File

@@ -1,14 +1,14 @@
{ {
"name": "@antfu/eslint-config-ts", "name": "@antfu/eslint-config-ts",
"version": "0.18.1", "version": "0.18.6",
"description": "", "description": "",
"keywords": [], "keywords": [],
"license": "MIT", "license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"main": "index.js",
"files": [ "files": [
"index.js" "index.js"
], ],
"main": "index.js",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
@@ -17,7 +17,7 @@
"typescript": ">=3.9" "typescript": ">=3.9"
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-basic": "^0.18.1", "@antfu/eslint-config-basic": "^0.18.6",
"@typescript-eslint/eslint-plugin": "^5.13.0", "@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0" "@typescript-eslint/parser": "^5.13.0"
}, },

View File

@@ -3,6 +3,46 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.18.6](https://github.com/antfu/eslint-config/compare/v0.18.5...v0.18.6) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.18.5](https://github.com/antfu/eslint-config/compare/v0.18.4...v0.18.5) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.18.4](https://github.com/antfu/eslint-config/compare/v0.18.3...v0.18.4) (2022-03-10)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.18.3](https://github.com/antfu/eslint-config/compare/v0.18.2...v0.18.3) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.18.2](https://github.com/antfu/eslint-config/compare/v0.18.1...v0.18.2) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07) ## [0.18.1](https://github.com/antfu/eslint-config/compare/v0.18.0...v0.18.1) (2022-03-07)
**Note:** Version bump only for package @antfu/eslint-config-vue **Note:** Version bump only for package @antfu/eslint-config-vue

View File

@@ -1,14 +1,14 @@
{ {
"name": "@antfu/eslint-config-vue", "name": "@antfu/eslint-config-vue",
"version": "0.18.1", "version": "0.18.6",
"description": "", "description": "",
"keywords": [], "keywords": [],
"license": "MIT", "license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"main": "index.js",
"files": [ "files": [
"index.js" "index.js"
], ],
"main": "index.js",
"peerDependencies": { "peerDependencies": {
"eslint": ">=7.4.0" "eslint": ">=7.4.0"
}, },
@@ -16,7 +16,7 @@
"access": "public" "access": "public"
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-ts": "^0.18.1", "@antfu/eslint-config-ts": "^0.18.6",
"eslint-plugin-vue": "^8.5.0" "eslint-plugin-vue": "^8.5.0"
}, },
"devDependencies": { "devDependencies": {