Compare commits

...

21 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
Anthony Fu
12e57fce54 release v0.25.0 2022-05-29 23:01:40 +08:00
Anthony Fu
b08b769a8a feat: enable reportUnusedDisableDirectives by default 2022-05-29 23:01:36 +08:00
Anthony Fu
65cef9437a release v0.24.3 2022-05-29 15:54:04 +08:00
QiroNT
f1b9dc396b fix: prioritize require (#98) 2022-05-29 15:53:45 +08:00
Anthony Fu
b8fe7fe4e7 release v0.24.2 2022-05-25 07:02:48 +08:00
Anthony Fu
001de3b060 feat: improve package.json sorting 2022-05-25 07:02:45 +08:00
Anthony Fu
761a0ce4ee release v0.24.1 2022-05-25 05:31:09 +08:00
Anthony Fu
a9d330cac3 fix: disable vue/prefer-import-from-vue 2022-05-25 05:31:00 +08:00
13 changed files with 1114 additions and 936 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
MIT
[MIT](./LICENSE) License © 2019-PRESENT [Anthony Fu](https://github.com/antfu)

View File

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

View File

@@ -1,10 +1,13 @@
{
"name": "@antfu/eslint-config",
"version": "0.24.0",
"description": "",
"keywords": [],
"license": "MIT",
"version": "0.26.2",
"description": "Anthony's ESLint config",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"keywords": [
"eslint-config"
],
"main": "index.js",
"files": [
"index.js"
@@ -15,24 +18,21 @@
"dependencies": {
"@antfu/eslint-config-react": "workspace:*",
"@antfu/eslint-config-vue": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"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-jsonc": "^2.2.1",
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-vue": "^9.0.1",
"eslint-plugin-yml": "^1.0.0",
"eslint-plugin-jsonc": "^2.4.0",
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-unicorn": "^43.0.2",
"eslint-plugin-vue": "^9.4.0",
"eslint-plugin-yml": "^1.1.0",
"jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^1.0.1"
"yaml-eslint-parser": "^1.1.0"
},
"devDependencies": {
"eslint": "^8.16.0"
},
"publishConfig": {
"access": "public"
"eslint": "^8.23.0"
}
}

View File

@@ -4,6 +4,7 @@ module.exports = {
browser: true,
node: true,
},
reportUnusedDisableDirectives: true,
extends: [
'./standard',
'plugin:import/recommended',
@@ -14,6 +15,7 @@ module.exports = {
],
ignorePatterns: [
'*.min.*',
'*.d.ts',
'CHANGELOG.md',
'dist',
'LICENSE*',
@@ -21,7 +23,7 @@ module.exports = {
'coverage',
'public',
'temp',
'packages-lock.json',
'package-lock.json',
'pnpm-lock.yaml',
'yarn.lock',
'__snapshots__',
@@ -71,33 +73,47 @@ module.exports = {
{
pathPattern: '^$',
order: [
'publisher',
'name',
'displayName',
'type',
'version',
'private',
'packageManager',
'description',
'keywords',
'license',
'author',
'repository',
'license',
'funding',
'homepage',
'repository',
'bugs',
'keywords',
'categories',
'sideEffects',
'exports',
'main',
'module',
'types',
'unpkg',
'jsdelivr',
'exports',
'files',
'types',
'typesVersions',
'bin',
'sideEffects',
'icon',
'files',
'engines',
'activationEvents',
'contributes',
'scripts',
'peerDependencies',
'peerDependenciesMeta',
'dependencies',
'optionalDependencies',
'devDependencies',
'pnpm',
'overrides',
'resolutions',
'husky',
'simple-git-hooks',
'lint-staged',
'eslintConfig',
],
@@ -106,6 +122,14 @@ module.exports = {
pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies$',
order: { type: 'asc' },
},
{
pathPattern: '^exports.*$',
order: [
'types',
'require',
'import',
],
},
],
},
},
@@ -276,7 +300,7 @@ module.exports = {
// includes over indexOf when checking for existence
'unicorn/prefer-includes': 'error',
// 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
'unicorn/prefer-text-content': 'error',
// Enforce throwing type error when throwing error while checking typeof

View File

@@ -1,10 +1,13 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.24.0",
"version": "0.26.2",
"description": "",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"keywords": [
"eslint-config"
],
"main": "index.js",
"files": [
"*.js"
@@ -18,21 +21,18 @@
"dependencies": {
"eslint-plugin-antfu": "workspace:*",
"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-jsonc": "^2.2.1",
"eslint-plugin-markdown": "^2.2.1",
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-yml": "^1.0.0",
"eslint-plugin-jsonc": "^2.4.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-unicorn": "^43.0.2",
"eslint-plugin-yml": "^1.1.0",
"jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^1.0.1"
"yaml-eslint-parser": "^1.1.0"
},
"devDependencies": {
"eslint": "^8.16.0"
},
"publishConfig": {
"access": "public"
"eslint": "^8.23.0"
}
}

View File

@@ -1,17 +1,11 @@
{
"name": "eslint-plugin-antfu",
"version": "0.24.0",
"version": "0.26.2",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist"
],
@@ -22,10 +16,10 @@
"prepublishOnly": "nr build"
},
"dependencies": {
"@typescript-eslint/utils": "^5.26.0"
"@typescript-eslint/utils": "^5.35.1"
},
"devDependencies": {
"unbuild": "^0.7.4",
"vitest": "^0.12.9"
"unbuild": "^0.8.9",
"vitest": "^0.22.1"
}
}

View File

@@ -1,10 +1,13 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.24.0",
"version": "0.26.2",
"description": "",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"keywords": [
"eslint-config"
],
"main": "index.js",
"files": [
"index.js"
@@ -15,16 +18,13 @@
"peerDependencies": {
"eslint": ">=7.4.0"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.30.0"
"eslint-plugin-react": "^7.31.1"
},
"devDependencies": {
"eslint": "^8.16.0",
"react": "^18.1.0",
"typescript": "^4.7.2"
"eslint": "^8.23.0",
"react": "^18.2.0",
"typescript": "^4.8.2"
}
}

View File

@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const basic = require('@antfu/eslint-config-basic')
module.exports = {
@@ -22,7 +21,6 @@ module.exports = {
'@typescript-eslint/type-annotation-spacing': ['error', {}],
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', disallowTypeAnnotations: false }],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
'@typescript-eslint/prefer-ts-expect-error': 'error',
// Override JS
@@ -114,6 +112,7 @@ module.exports = {
// '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],
// off
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',

View File

@@ -1,27 +1,27 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.24.0",
"version": "0.26.2",
"description": "",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"keywords": [
"eslint-config"
],
"main": "index.js",
"files": [
"index.js"
],
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"eslint": ">=7.4.0",
"typescript": ">=3.9"
},
"dependencies": {
"@antfu/eslint-config-basic": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0"
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1"
},
"devDependencies": {
"eslint": "^8.16.0"
"eslint": "^8.23.0"
}
}

View File

@@ -23,6 +23,7 @@ module.exports = {
'vue/require-prop-types': 'off',
'vue/require-default-prop': 'off',
'vue/multi-word-component-names': 'off',
'vue/prefer-import-from-vue': 'off',
// reactivity transform
'vue/no-setup-props-destructure': 'off',

View File

@@ -1,10 +1,12 @@
{
"name": "@antfu/eslint-config-vue",
"version": "0.24.0",
"version": "0.26.2",
"description": "",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"keywords": [
"eslint-config"
],
"main": "index.js",
"files": [
"index.js"
@@ -12,14 +14,11 @@
"peerDependencies": {
"eslint": ">=7.4.0"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-vue": "^9.0.1"
"eslint-plugin-vue": "^9.4.0"
},
"devDependencies": {
"eslint": "^8.16.0"
"eslint": "^8.23.0"
}
}

1834
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff