Compare commits

..

4 Commits

Author SHA1 Message Date
Anthony Fu
540786d482 release v0.24.0 2022-05-25 05:09:42 +08:00
Anthony Fu
b876b7b1d9 chore: update deps 2022-05-25 05:09:36 +08:00
N
d463449db4 fix: deprecated-rules (#93)
unicorn/prefer-exponentiation-operator was deprecated since 16.0 [deprecated-rules](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/deprecated-rules.md#prefer-exponentiation-operator)
2022-05-14 11:36:03 +08:00
N
37d30e9e7d fix: rule renamed (#94) 2022-05-14 11:35:44 +08:00
9 changed files with 446 additions and 258 deletions

View File

@@ -1,8 +1,8 @@
{
"name": "@antfu/eslint-config-monorepo",
"version": "0.23.1",
"packageManager": "pnpm@7.0.0",
"version": "0.24.0",
"private": true,
"packageManager": "pnpm@7.1.0",
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"scripts": {
@@ -13,8 +13,8 @@
"devDependencies": {
"@antfu/eslint-config": "*",
"bumpp": "^7.1.1",
"eslint": "^8.14.0",
"eslint": "^8.16.0",
"eslint-plugin-antfu": "workspace:*",
"typescript": "^4.6.4"
"typescript": "^4.7.2"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config",
"version": "0.23.1",
"version": "0.24.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -15,8 +15,8 @@
"dependencies": {
"@antfu/eslint-config-react": "workspace:*",
"@antfu/eslint-config-vue": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.26.0",
@@ -24,13 +24,13 @@
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-vue": "^8.7.1",
"eslint-plugin-yml": "^0.14.0",
"eslint-plugin-vue": "^9.0.1",
"eslint-plugin-yml": "^1.0.0",
"jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^0.5.0"
"yaml-eslint-parser": "^1.0.1"
},
"devDependencies": {
"eslint": "^8.14.0"
"eslint": "^8.16.0"
},
"publishConfig": {
"access": "public"

View File

@@ -223,6 +223,7 @@ module.exports = {
avoidQuotes: true,
},
],
'prefer-exponentiation-operator': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
@@ -265,15 +266,13 @@ module.exports = {
// Uppercase regex escapes
'unicorn/escape-case': 'error',
// Array.isArray instead of instanceof
'unicorn/no-array-instanceof': 'error',
'unicorn/no-instanceof-array': 'error',
// Prevent deprecated `new Buffer()`
'unicorn/no-new-buffer': 'error',
// Keep regex literals safe!
'unicorn/no-unsafe-regex': 'off',
// Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
'unicorn/number-literal-case': 'error',
// ** instead of Math.pow()
'unicorn/prefer-exponentiation-operator': 'error',
// includes over indexOf when checking for existence
'unicorn/prefer-includes': 'error',
// String methods startsWith/endsWith instead of more complicated stuff

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.23.1",
"version": "0.24.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -25,12 +25,12 @@
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-yml": "^0.14.0",
"eslint-plugin-yml": "^1.0.0",
"jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^0.5.0"
"yaml-eslint-parser": "^1.0.1"
},
"devDependencies": {
"eslint": "^8.14.0"
"eslint": "^8.16.0"
},
"publishConfig": {
"access": "public"

View File

@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-antfu",
"version": "0.23.1",
"version": "0.24.0",
"license": "MIT",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
@@ -22,10 +22,10 @@
"prepublishOnly": "nr build"
},
"dependencies": {
"@typescript-eslint/utils": "^5.22.0"
"@typescript-eslint/utils": "^5.26.0"
},
"devDependencies": {
"unbuild": "^0.7.4",
"vitest": "^0.9.4"
"vitest": "^0.12.9"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.23.1",
"version": "0.24.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -20,11 +20,11 @@
},
"dependencies": {
"@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.29.4"
"eslint-plugin-react": "^7.30.0"
},
"devDependencies": {
"eslint": "^8.14.0",
"eslint": "^8.16.0",
"react": "^18.1.0",
"typescript": "^4.6.4"
"typescript": "^4.7.2"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.23.1",
"version": "0.24.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -18,10 +18,10 @@
},
"dependencies": {
"@antfu/eslint-config-basic": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0"
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0"
},
"devDependencies": {
"eslint": "^8.14.0"
"eslint": "^8.16.0"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-vue",
"version": "0.23.1",
"version": "0.24.0",
"description": "",
"keywords": [],
"license": "MIT",
@@ -17,9 +17,9 @@
},
"dependencies": {
"@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-vue": "^8.7.1"
"eslint-plugin-vue": "^9.0.1"
},
"devDependencies": {
"eslint": "^8.14.0"
"eslint": "^8.16.0"
}
}

641
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff