Compare commits

...

3 Commits

Author SHA1 Message Date
Anthony Fu
8b15a8349f v0.11.0 2021-11-28 01:02:05 +08:00
Anthony Fu
ffe704965f chore: update deps 2021-11-28 01:01:34 +08:00
云游君
3ac8a75af3 docs: add README (#66) 2021-10-31 22:58:00 +08:00
16 changed files with 435 additions and 410 deletions

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [0.11.0](https://github.com/antfu/eslint-config/compare/v0.10.0...v0.11.0) (2021-11-27)
**Note:** Version bump only for package @antfu/eslint-config-monorepo
# [0.10.0](https://github.com/antfu/eslint-config/compare/v0.9.0...v0.10.0) (2021-10-16)

53
README.md Normal file
View File

@@ -0,0 +1,53 @@
# @antfu/eslint-config
[![npm](https://img.shields.io/npm/v/@antfu/eslint-config)](https://npmjs.com/package/@antfu/eslint-config)
## Usage
### Install
```bash
pnpm add -D eslint @antfu/eslint-config
```
### Config `.eslintrc`
```json
{
"extends": [
"@antfu"
]
}
```
### Config `.eslintignore`
```txt
dist
public
```
### Add script for package.json
For example:
```json
{
"scripts": {
"lint": "eslint \"**/*.{vue,ts,js}\""
}
}
```
### Config VSCode auto fix
Create `.vscode/settings.json`
```json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
```

View File

@@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "0.10.0"
"version": "0.11.0"
}

View File

@@ -11,8 +11,8 @@
},
"devDependencies": {
"@antfu/eslint-config": "*",
"eslint": "^8.0.1",
"eslint": "^8.3.0",
"lerna": "^4.0.0",
"typescript": "^4.4.4"
"typescript": "^4.5.2"
}
}

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [0.11.0](https://github.com/antfu/eslint-config/compare/v0.10.0...v0.11.0) (2021-11-27)
**Note:** Version bump only for package @antfu/eslint-config
# [0.10.0](https://github.com/antfu/eslint-config/compare/v0.9.0...v0.10.0) (2021-10-16)

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config",
"version": "0.10.0",
"version": "0.11.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -13,25 +13,25 @@
"eslint": ">=7.4.0"
},
"dependencies": {
"@antfu/eslint-config-react": "^0.10.0",
"@antfu/eslint-config-vue": "^0.10.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@antfu/eslint-config-react": "^0.11.0",
"@antfu/eslint-config-vue": "^0.11.0",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsonc": "^1.7.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-unicorn": "^37.0.1",
"eslint-plugin-vue": "7.19.1",
"eslint-plugin-yml": "^0.10.1",
"jsonc-eslint-parser": "^1.4.1",
"yaml-eslint-parser": "^0.4.1"
"eslint-plugin-promise": "^5.1.1",
"eslint-plugin-unicorn": "^39.0.0",
"eslint-plugin-vue": "8.1.1",
"eslint-plugin-yml": "^0.12.0",
"jsonc-eslint-parser": "^2.0.4",
"yaml-eslint-parser": "^0.5.0"
},
"devDependencies": {
"eslint": "^8.0.1"
"eslint": "^8.3.0"
},
"publishConfig": {
"access": "public"

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [0.11.0](https://github.com/antfu/eslint-config/compare/v0.10.0...v0.11.0) (2021-11-27)
**Note:** Version bump only for package @antfu/eslint-config-basic
# [0.10.0](https://github.com/antfu/eslint-config/compare/v0.9.0...v0.10.0) (2021-10-16)

View File

@@ -31,8 +31,8 @@ module.exports = {
},
},
{
files: ["*.yaml", "*.yml"],
parser: "yaml-eslint-parser",
files: ['*.yaml', '*.yml'],
parser: 'yaml-eslint-parser',
},
{
files: ['package.json'],

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.10.0",
"version": "0.11.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -19,17 +19,17 @@
"eslint-config-standard": "^16.0.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsonc": "^1.7.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-unicorn": "^37.0.1",
"eslint-plugin-yml": "^0.10.1",
"jsonc-eslint-parser": "^1.4.1",
"yaml-eslint-parser": "^0.4.1"
"eslint-plugin-promise": "^5.1.1",
"eslint-plugin-unicorn": "^39.0.0",
"eslint-plugin-yml": "^0.12.0",
"jsonc-eslint-parser": "^2.0.4",
"yaml-eslint-parser": "^0.5.0"
},
"devDependencies": {
"eslint": "^8.0.1"
"eslint": "^8.3.0"
},
"publishConfig": {
"access": "public"

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [0.11.0](https://github.com/antfu/eslint-config/compare/v0.10.0...v0.11.0) (2021-11-27)
**Note:** Version bump only for package @antfu/eslint-config-react
# [0.10.0](https://github.com/antfu/eslint-config/compare/v0.9.0...v0.10.0) (2021-10-16)

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.10.0",
"version": "0.11.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -19,12 +19,12 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "^0.10.0",
"eslint-plugin-react": "^7.26.1"
"@antfu/eslint-config-ts": "^0.11.0",
"eslint-plugin-react": "^7.27.1"
},
"devDependencies": {
"eslint": "^8.0.1",
"eslint": "^8.3.0",
"react": "^17.0.2",
"typescript": "^4.4.4"
"typescript": "^4.5.2"
}
}

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [0.11.0](https://github.com/antfu/eslint-config/compare/v0.10.0...v0.11.0) (2021-11-27)
**Note:** Version bump only for package @antfu/eslint-config-ts
# [0.10.0](https://github.com/antfu/eslint-config/compare/v0.9.0...v0.10.0) (2021-10-16)

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.10.0",
"version": "0.11.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -17,11 +17,11 @@
"typescript": ">=3.9"
},
"dependencies": {
"@antfu/eslint-config-basic": "^0.10.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0"
"@antfu/eslint-config-basic": "^0.11.0",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0"
},
"devDependencies": {
"eslint": "^8.0.1"
"eslint": "^8.3.0"
}
}

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [0.11.0](https://github.com/antfu/eslint-config/compare/v0.10.0...v0.11.0) (2021-11-27)
**Note:** Version bump only for package @antfu/eslint-config-vue
# [0.10.0](https://github.com/antfu/eslint-config/compare/v0.9.0...v0.10.0) (2021-10-16)

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-vue",
"version": "0.10.0",
"version": "0.11.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -16,10 +16,10 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "^0.10.0",
"eslint-plugin-vue": "7.19.1"
"@antfu/eslint-config-ts": "^0.11.0",
"eslint-plugin-vue": "^8.1.1"
},
"devDependencies": {
"eslint": "^8.0.1"
"eslint": "^8.3.0"
}
}

660
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff