Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e2c094d1d3 | ||
|
339866483a | ||
|
fa24ca77a4 | ||
|
8bceb3ef50 | ||
|
108f55bbe8 | ||
|
87419670fd | ||
|
cdb1849476 | ||
|
55ffba3288 | ||
|
8ddaee3bf8 | ||
|
af2c3273cf | ||
|
12e57fce54 | ||
|
b08b769a8a | ||
|
65cef9437a | ||
|
f1b9dc396b | ||
|
b8fe7fe4e7 | ||
|
001de3b060 |
22
.github/workflows/release.yml
vendored
Normal file
22
.github/workflows/release.yml
vendored
Normal 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}}
|
@@ -63,4 +63,4 @@ Create `.vscode/settings.json`
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
[MIT](./LICENSE) License © 2019-PRESENT [Anthony Fu](https://github.com/antfu)
|
||||
|
11
package.json
11
package.json
@@ -1,20 +1,21 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-monorepo",
|
||||
"version": "0.24.1",
|
||||
"version": "0.26.1",
|
||||
"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.21.0",
|
||||
"eslint-plugin-antfu": "workspace:*",
|
||||
"typescript": "^4.7.2"
|
||||
"typescript": "^4.7.4"
|
||||
}
|
||||
}
|
||||
|
@@ -1,10 +1,13 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config",
|
||||
"version": "0.24.1",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"version": "0.26.1",
|
||||
"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.32.0",
|
||||
"@typescript-eslint/parser": "^5.32.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-jsonc": "^2.2.1",
|
||||
"eslint-plugin-n": "^15.2.0",
|
||||
"eslint-plugin-jsonc": "^2.3.1",
|
||||
"eslint-plugin-n": "^15.2.4",
|
||||
"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-unicorn": "^43.0.2",
|
||||
"eslint-plugin-vue": "^9.3.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.21.0"
|
||||
}
|
||||
}
|
||||
|
@@ -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*',
|
||||
@@ -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
|
||||
|
@@ -1,10 +1,13 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-basic",
|
||||
"version": "0.24.1",
|
||||
"version": "0.26.1",
|
||||
"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-jsonc": "^2.3.1",
|
||||
"eslint-plugin-markdown": "^3.0.0",
|
||||
"eslint-plugin-n": "^15.2.4",
|
||||
"eslint-plugin-promise": "^6.0.0",
|
||||
"eslint-plugin-unicorn": "^42.0.0",
|
||||
"eslint-plugin-yml": "^1.0.0",
|
||||
"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.21.0"
|
||||
}
|
||||
}
|
||||
|
@@ -1,17 +1,11 @@
|
||||
{
|
||||
"name": "eslint-plugin-antfu",
|
||||
"version": "0.24.1",
|
||||
"version": "0.26.1",
|
||||
"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.32.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"unbuild": "^0.7.4",
|
||||
"vitest": "^0.12.9"
|
||||
"unbuild": "^0.7.6",
|
||||
"vitest": "^0.21.0"
|
||||
}
|
||||
}
|
||||
|
@@ -1,10 +1,13 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-react",
|
||||
"version": "0.24.1",
|
||||
"version": "0.26.1",
|
||||
"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.30.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.16.0",
|
||||
"react": "^18.1.0",
|
||||
"typescript": "^4.7.2"
|
||||
"eslint": "^8.21.0",
|
||||
"react": "^18.2.0",
|
||||
"typescript": "^4.7.4"
|
||||
}
|
||||
}
|
||||
|
@@ -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',
|
||||
|
@@ -1,27 +1,27 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-ts",
|
||||
"version": "0.24.1",
|
||||
"version": "0.26.1",
|
||||
"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.32.0",
|
||||
"@typescript-eslint/parser": "^5.32.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.16.0"
|
||||
"eslint": "^8.21.0"
|
||||
}
|
||||
}
|
||||
|
@@ -1,10 +1,12 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-vue",
|
||||
"version": "0.24.1",
|
||||
"version": "0.26.1",
|
||||
"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.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.16.0"
|
||||
"eslint": "^8.21.0"
|
||||
}
|
||||
}
|
||||
|
1315
pnpm-lock.yaml
generated
1315
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user