Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
18e673f773 | ||
|
98708f1996 | ||
|
8b0a239f8f | ||
|
a60cd80ba9 | ||
|
48cc619ec2 | ||
|
97975dafc5 | ||
|
b425b251ea | ||
|
9346e47d92 | ||
|
b6133dcd42 | ||
|
b7cff5d6a2 | ||
|
e54ac17e09 | ||
|
8f51445a67 | ||
|
4a0c791207 | ||
|
8e1140aef2 |
46
CHANGELOG.md
46
CHANGELOG.md
@@ -3,6 +3,52 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
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)
|
||||
|
||||
|
||||
|
15
README.md
15
README.md
@@ -14,19 +14,10 @@ pnpm add -D eslint @antfu/eslint-config
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": [
|
||||
"@antfu"
|
||||
]
|
||||
"extends": "@antfu"
|
||||
}
|
||||
```
|
||||
|
||||
### Config `.eslintignore`
|
||||
|
||||
```txt
|
||||
dist
|
||||
public
|
||||
```
|
||||
|
||||
### Add script for package.json
|
||||
|
||||
For example:
|
||||
@@ -34,12 +25,12 @@ For example:
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"lint": "eslint \"**/*.{vue,ts,js}\""
|
||||
"lint": "eslint ."
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Config VSCode auto fix
|
||||
### Config VS Code auto fix
|
||||
|
||||
Create `.vscode/settings.json`
|
||||
|
||||
|
@@ -2,5 +2,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.18.2"
|
||||
"version": "0.18.6"
|
||||
}
|
||||
|
@@ -1,12 +1,11 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-monorepo",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"lint": "npx eslint --ext .js,.json,.vue,.md .",
|
||||
"lint": "eslint .",
|
||||
"release": "lerna publish --conventional-commits"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@@ -3,6 +3,38 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
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
|
||||
|
@@ -1,20 +1,20 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config",
|
||||
"version": "0.18.2",
|
||||
"version": "0.18.6",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"peerDependencies": {
|
||||
"eslint": ">=7.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config-react": "^0.18.2",
|
||||
"@antfu/eslint-config-vue": "^0.18.2",
|
||||
"@antfu/eslint-config-react": "^0.18.6",
|
||||
"@antfu/eslint-config-vue": "^0.18.6",
|
||||
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
||||
"@typescript-eslint/parser": "^5.13.0",
|
||||
"eslint-config-standard": "17.0.0-1",
|
||||
|
@@ -3,6 +3,52 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
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)
|
||||
|
||||
|
||||
|
@@ -13,13 +13,19 @@ module.exports = {
|
||||
'plugin:markdown/recommended',
|
||||
],
|
||||
ignorePatterns: [
|
||||
'.cache',
|
||||
'*.min.*',
|
||||
'CHANGELOG.md',
|
||||
'dist',
|
||||
'LICENSE.*',
|
||||
'LICENSE*',
|
||||
'output',
|
||||
'packages-lock.json',
|
||||
'pnpm-lock.yaml',
|
||||
'public',
|
||||
'temp',
|
||||
'yarn.lock',
|
||||
'!.github',
|
||||
'!.vitepress',
|
||||
'!.vscode',
|
||||
],
|
||||
plugins: [
|
||||
'html',
|
||||
@@ -54,27 +60,33 @@ module.exports = {
|
||||
pathPattern: '^$',
|
||||
order: [
|
||||
'name',
|
||||
'type',
|
||||
'version',
|
||||
'private',
|
||||
'packageManager',
|
||||
'description',
|
||||
'keywords',
|
||||
'license',
|
||||
'author',
|
||||
'repository',
|
||||
'funding',
|
||||
'author',
|
||||
'type',
|
||||
'files',
|
||||
'exports',
|
||||
'main',
|
||||
'module',
|
||||
'types',
|
||||
'unpkg',
|
||||
'jsdelivr',
|
||||
'exports',
|
||||
'files',
|
||||
'bin',
|
||||
'sideEffects',
|
||||
'scripts',
|
||||
'husky',
|
||||
'lint-staged',
|
||||
'peerDependencies',
|
||||
'peerDependenciesMeta',
|
||||
'dependencies',
|
||||
'optionalDependencies',
|
||||
'devDependencies',
|
||||
'husky',
|
||||
'lint-staged',
|
||||
'eslintConfig',
|
||||
],
|
||||
},
|
||||
@@ -113,13 +125,16 @@ module.exports = {
|
||||
// Code blocks in markdown file
|
||||
files: ['**/*.md/*.*'],
|
||||
rules: {
|
||||
'no-unused-vars': 'off',
|
||||
'no-undef': 'off',
|
||||
'no-console': 'off',
|
||||
'no-unused-expressions': 'off',
|
||||
'import/no-unresolved': '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-unused-expressions': 'off',
|
||||
'no-unused-vars': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -251,6 +266,7 @@ module.exports = {
|
||||
'no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
|
||||
'eslint-comments/disable-enable-pair': 'off',
|
||||
'import/no-named-as-default-member': 'off',
|
||||
'n/no-callback-literal': 'off',
|
||||
|
||||
'sort-imports': [
|
||||
'error',
|
||||
@@ -262,5 +278,8 @@ module.exports = {
|
||||
allowSeparatedGroups: false,
|
||||
},
|
||||
],
|
||||
|
||||
// yml
|
||||
'yml/quotes': ['error', { prefer: 'single', avoidEscape: false }],
|
||||
},
|
||||
}
|
||||
|
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-basic",
|
||||
"version": "0.18.2",
|
||||
"version": "0.18.6",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint . --config=index.js"
|
||||
},
|
||||
|
@@ -3,6 +3,38 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
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
|
||||
|
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-react",
|
||||
"version": "0.18.2",
|
||||
"version": "0.18.6",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint . --config=index.js"
|
||||
},
|
||||
@@ -19,7 +19,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config-ts": "^0.18.2",
|
||||
"@antfu/eslint-config-ts": "^0.18.6",
|
||||
"eslint-plugin-react": "^7.29.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@@ -3,6 +3,38 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
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
|
||||
|
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-ts",
|
||||
"version": "0.18.2",
|
||||
"version": "0.18.6",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -17,7 +17,7 @@
|
||||
"typescript": ">=3.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config-basic": "^0.18.2",
|
||||
"@antfu/eslint-config-basic": "^0.18.6",
|
||||
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
||||
"@typescript-eslint/parser": "^5.13.0"
|
||||
},
|
||||
|
@@ -3,6 +3,38 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
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
|
||||
|
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-vue",
|
||||
"version": "0.18.2",
|
||||
"version": "0.18.6",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"peerDependencies": {
|
||||
"eslint": ">=7.4.0"
|
||||
},
|
||||
@@ -16,7 +16,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config-ts": "^0.18.2",
|
||||
"@antfu/eslint-config-ts": "^0.18.6",
|
||||
"eslint-plugin-vue": "^8.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
Reference in New Issue
Block a user