Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
48cc619ec2 | ||
|
97975dafc5 | ||
|
b425b251ea | ||
|
9346e47d92 | ||
|
b6133dcd42 | ||
|
b7cff5d6a2 | ||
|
e54ac17e09 | ||
|
8f51445a67 |
24
CHANGELOG.md
24
CHANGELOG.md
@@ -3,6 +3,30 @@
|
|||||||
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.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)
|
## [0.18.3](https://github.com/antfu/eslint-config/compare/v0.18.2...v0.18.3) (2022-03-07)
|
||||||
|
|
||||||
|
|
||||||
|
15
README.md
15
README.md
@@ -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`
|
||||||
|
|
||||||
|
@@ -2,5 +2,5 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"version": "0.18.3"
|
"version": "0.18.5"
|
||||||
}
|
}
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-monorepo",
|
"name": "@antfu/eslint-config-monorepo",
|
||||||
"version": "0.1.0",
|
"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": {
|
||||||
|
@@ -3,6 +3,22 @@
|
|||||||
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.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)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config",
|
"name": "@antfu/eslint-config",
|
||||||
"version": "0.18.3",
|
"version": "0.18.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -13,8 +13,8 @@
|
|||||||
"eslint": ">=7.4.0"
|
"eslint": ">=7.4.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-react": "^0.18.3",
|
"@antfu/eslint-config-react": "^0.18.5",
|
||||||
"@antfu/eslint-config-vue": "^0.18.3",
|
"@antfu/eslint-config-vue": "^0.18.5",
|
||||||
"@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",
|
||||||
|
@@ -3,6 +3,30 @@
|
|||||||
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.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)
|
## [0.18.3](https://github.com/antfu/eslint-config/compare/v0.18.2...v0.18.3) (2022-03-07)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -13,13 +13,15 @@ module.exports = {
|
|||||||
'plugin:markdown/recommended',
|
'plugin:markdown/recommended',
|
||||||
],
|
],
|
||||||
ignorePatterns: [
|
ignorePatterns: [
|
||||||
'.cache',
|
|
||||||
'*.min.*',
|
'*.min.*',
|
||||||
'CHANGELOG.md',
|
'CHANGELOG.md',
|
||||||
'dist',
|
'dist',
|
||||||
'LICENSE.*',
|
'LICENSE*',
|
||||||
'public',
|
'public',
|
||||||
'temp',
|
'temp',
|
||||||
|
'!.vitepress',
|
||||||
|
'!.github',
|
||||||
|
'!.vscode',
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
'html',
|
'html',
|
||||||
@@ -54,27 +56,32 @@ 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',
|
||||||
'bin',
|
'bin',
|
||||||
|
'files',
|
||||||
'scripts',
|
'scripts',
|
||||||
'husky',
|
|
||||||
'lint-staged',
|
|
||||||
'peerDependencies',
|
'peerDependencies',
|
||||||
'peerDependenciesMeta',
|
'peerDependenciesMeta',
|
||||||
'dependencies',
|
'dependencies',
|
||||||
|
'optionalDependencies',
|
||||||
'devDependencies',
|
'devDependencies',
|
||||||
|
'husky',
|
||||||
|
'lint-staged',
|
||||||
'eslintConfig',
|
'eslintConfig',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -113,13 +120,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',
|
||||||
'no-undef': 'off',
|
|
||||||
'no-console': 'off',
|
|
||||||
'no-unused-expressions': 'off',
|
|
||||||
'import/no-unresolved': 'off',
|
|
||||||
'@typescript-eslint/no-unused-vars': 'off',
|
'@typescript-eslint/no-unused-vars': 'off',
|
||||||
'@typescript-eslint/no-use-before-define': '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-unused-expressions': 'off',
|
||||||
|
'no-unused-vars': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -263,5 +273,8 @@ module.exports = {
|
|||||||
allowSeparatedGroups: false,
|
allowSeparatedGroups: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
// yml
|
||||||
|
'yml/quotes': ['error', { prefer: 'single', avoidEscape: false }],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-basic",
|
"name": "@antfu/eslint-config-basic",
|
||||||
"version": "0.18.3",
|
"version": "0.18.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@@ -3,6 +3,22 @@
|
|||||||
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.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)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-react",
|
"name": "@antfu/eslint-config-react",
|
||||||
"version": "0.18.3",
|
"version": "0.18.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-ts": "^0.18.3",
|
"@antfu/eslint-config-ts": "^0.18.5",
|
||||||
"eslint-plugin-react": "^7.29.3"
|
"eslint-plugin-react": "^7.29.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@@ -3,6 +3,22 @@
|
|||||||
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.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)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-ts",
|
"name": "@antfu/eslint-config-ts",
|
||||||
"version": "0.18.3",
|
"version": "0.18.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
"typescript": ">=3.9"
|
"typescript": ">=3.9"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-basic": "^0.18.3",
|
"@antfu/eslint-config-basic": "^0.18.5",
|
||||||
"@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"
|
||||||
},
|
},
|
||||||
|
@@ -3,6 +3,22 @@
|
|||||||
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.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)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-vue",
|
"name": "@antfu/eslint-config-vue",
|
||||||
"version": "0.18.3",
|
"version": "0.18.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-ts": "^0.18.3",
|
"@antfu/eslint-config-ts": "^0.18.5",
|
||||||
"eslint-plugin-vue": "^8.5.0"
|
"eslint-plugin-vue": "^8.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Reference in New Issue
Block a user