Compare commits

...

13 Commits

Author SHA1 Message Date
Anthony Fu
39820a3f06 chore: release v0.26.2 2022-08-29 08:50:45 +08:00
Anthony Fu
083c719361 chore: update deps 2022-08-29 08:50:41 +08:00
Oumar Barry
b34da44baf chore(basic): fix typo (#107) 2022-08-23 14:14:23 +08:00
Anthony Fu
e2c094d1d3 chore: release v0.26.1 2022-08-10 16:53:28 +08:00
karasu
339866483a fix: rule renamed (#106) 2022-08-10 16:52:59 +08:00
Anthony Fu
fa24ca77a4 chore: release v0.26.0 2022-08-08 18:17:10 +08:00
Anthony Fu
8bceb3ef50 chore: update deps 2022-08-08 18:15:43 +08:00
Anthony Fu
108f55bbe8 chore: add release script 2022-07-10 10:46:19 +08:00
Anthony Fu
87419670fd docs: update license section 2022-07-10 10:44:34 +08:00
Anthony Fu
cdb1849476 release v0.25.2 2022-06-25 01:03:09 +08:00
Anthony Fu
55ffba3288 fix: ignore .d.ts by default 2022-06-25 01:03:04 +08:00
Anthony Fu
8ddaee3bf8 release v0.25.1 2022-06-03 22:08:51 +08:00
Anthony Fu
af2c3273cf fix: disable consistent-indexed-object-style 2022-06-03 22:08:48 +08:00
12 changed files with 1056 additions and 894 deletions

22
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

View File

@@ -63,4 +63,4 @@ Create `.vscode/settings.json`
## License ## License
MIT [MIT](./LICENSE) License © 2019-PRESENT [Anthony Fu](https://github.com/antfu)

View File

@@ -1,20 +1,21 @@
{ {
"name": "@antfu/eslint-config-monorepo", "name": "@antfu/eslint-config-monorepo",
"version": "0.25.0", "version": "0.26.2",
"private": true, "private": true,
"packageManager": "pnpm@7.1.0", "packageManager": "pnpm@7.1.0",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"lint": "eslint .", "lint": "eslint .",
"test": "pnpm -r run test",
"prepare": "pnpm -r run stub", "prepare": "pnpm -r run stub",
"release": "bumpp package.json packages/*/package.json --commit --push --tag && pnpm -r publish --access public" "release": "bumpp package.json packages/*/package.json --commit --push --tag && pnpm -r publish --access public"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "*", "@antfu/eslint-config": "*",
"bumpp": "^7.1.1", "bumpp": "^8.2.1",
"eslint": "^8.16.0", "eslint": "^8.23.0",
"eslint-plugin-antfu": "workspace:*", "eslint-plugin-antfu": "workspace:*",
"typescript": "^4.7.2" "typescript": "^4.8.2"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config", "name": "@antfu/eslint-config",
"version": "0.25.0", "version": "0.26.2",
"description": "Anthony's ESLint config", "description": "Anthony's ESLint config",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -18,21 +18,21 @@
"dependencies": { "dependencies": {
"@antfu/eslint-config-react": "workspace:*", "@antfu/eslint-config-react": "workspace:*",
"@antfu/eslint-config-vue": "workspace:*", "@antfu/eslint-config-vue": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.26.0", "@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.26.0", "@typescript-eslint/parser": "^5.35.1",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0", "eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsonc": "^2.2.1", "eslint-plugin-jsonc": "^2.4.0",
"eslint-plugin-n": "^15.2.0", "eslint-plugin-n": "^15.2.5",
"eslint-plugin-promise": "^6.0.0", "eslint-plugin-promise": "^6.0.1",
"eslint-plugin-unicorn": "^42.0.0", "eslint-plugin-unicorn": "^43.0.2",
"eslint-plugin-vue": "^9.0.1", "eslint-plugin-vue": "^9.4.0",
"eslint-plugin-yml": "^1.0.0", "eslint-plugin-yml": "^1.1.0",
"jsonc-eslint-parser": "^2.1.0", "jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^1.0.1" "yaml-eslint-parser": "^1.1.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.16.0" "eslint": "^8.23.0"
} }
} }

View File

@@ -15,6 +15,7 @@ module.exports = {
], ],
ignorePatterns: [ ignorePatterns: [
'*.min.*', '*.min.*',
'*.d.ts',
'CHANGELOG.md', 'CHANGELOG.md',
'dist', 'dist',
'LICENSE*', 'LICENSE*',
@@ -22,7 +23,7 @@ module.exports = {
'coverage', 'coverage',
'public', 'public',
'temp', 'temp',
'packages-lock.json', 'package-lock.json',
'pnpm-lock.yaml', 'pnpm-lock.yaml',
'yarn.lock', 'yarn.lock',
'__snapshots__', '__snapshots__',
@@ -299,7 +300,7 @@ module.exports = {
// includes over indexOf when checking for existence // includes over indexOf when checking for existence
'unicorn/prefer-includes': 'error', 'unicorn/prefer-includes': 'error',
// String methods startsWith/endsWith instead of more complicated stuff // String methods startsWith/endsWith instead of more complicated stuff
'unicorn/prefer-starts-ends-with': 'error', 'unicorn/prefer-string-starts-ends-with': 'error',
// textContent instead of innerText // textContent instead of innerText
'unicorn/prefer-text-content': 'error', 'unicorn/prefer-text-content': 'error',
// Enforce throwing type error when throwing error while checking typeof // Enforce throwing type error when throwing error while checking typeof

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-basic", "name": "@antfu/eslint-config-basic",
"version": "0.25.0", "version": "0.26.2",
"description": "", "description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -21,18 +21,18 @@
"dependencies": { "dependencies": {
"eslint-plugin-antfu": "workspace:*", "eslint-plugin-antfu": "workspace:*",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0", "eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsonc": "^2.2.1", "eslint-plugin-jsonc": "^2.4.0",
"eslint-plugin-markdown": "^2.2.1", "eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-n": "^15.2.0", "eslint-plugin-n": "^15.2.5",
"eslint-plugin-promise": "^6.0.0", "eslint-plugin-promise": "^6.0.1",
"eslint-plugin-unicorn": "^42.0.0", "eslint-plugin-unicorn": "^43.0.2",
"eslint-plugin-yml": "^1.0.0", "eslint-plugin-yml": "^1.1.0",
"jsonc-eslint-parser": "^2.1.0", "jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^1.0.1" "yaml-eslint-parser": "^1.1.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.16.0" "eslint": "^8.23.0"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "eslint-plugin-antfu", "name": "eslint-plugin-antfu",
"version": "0.25.0", "version": "0.26.2",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/antfu/eslint-config", "homepage": "https://github.com/antfu/eslint-config",
"main": "./dist/index.cjs", "main": "./dist/index.cjs",
@@ -16,10 +16,10 @@
"prepublishOnly": "nr build" "prepublishOnly": "nr build"
}, },
"dependencies": { "dependencies": {
"@typescript-eslint/utils": "^5.26.0" "@typescript-eslint/utils": "^5.35.1"
}, },
"devDependencies": { "devDependencies": {
"unbuild": "^0.7.4", "unbuild": "^0.8.9",
"vitest": "^0.12.9" "vitest": "^0.22.1"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-react", "name": "@antfu/eslint-config-react",
"version": "0.25.0", "version": "0.26.2",
"description": "", "description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -20,11 +20,11 @@
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-ts": "workspace:*", "@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.30.0" "eslint-plugin-react": "^7.31.1"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.16.0", "eslint": "^8.23.0",
"react": "^18.1.0", "react": "^18.2.0",
"typescript": "^4.7.2" "typescript": "^4.8.2"
} }
} }

View File

@@ -21,7 +21,6 @@ module.exports = {
'@typescript-eslint/type-annotation-spacing': ['error', {}], '@typescript-eslint/type-annotation-spacing': ['error', {}],
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', disallowTypeAnnotations: false }], '@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', disallowTypeAnnotations: false }],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'], '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
'@typescript-eslint/prefer-ts-expect-error': 'error', '@typescript-eslint/prefer-ts-expect-error': 'error',
// Override JS // Override JS
@@ -113,6 +112,7 @@ module.exports = {
// '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }], // '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],
// off // off
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/naming-convention': 'off', '@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off', '@typescript-eslint/explicit-member-accessibility': 'off',

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-ts", "name": "@antfu/eslint-config-ts",
"version": "0.25.0", "version": "0.26.2",
"description": "", "description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -18,10 +18,10 @@
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-basic": "workspace:*", "@antfu/eslint-config-basic": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.26.0", "@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.26.0" "@typescript-eslint/parser": "^5.35.1"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.16.0" "eslint": "^8.23.0"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-vue", "name": "@antfu/eslint-config-vue",
"version": "0.25.0", "version": "0.26.2",
"description": "", "description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -16,9 +16,9 @@
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-ts": "workspace:*", "@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-vue": "^9.0.1" "eslint-plugin-vue": "^9.4.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.16.0" "eslint": "^8.23.0"
} }
} }

1834
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff