Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
540786d482 | ||
|
b876b7b1d9 | ||
|
d463449db4 | ||
|
37d30e9e7d | ||
|
58b8383d4c | ||
|
35a5d3ef9d | ||
|
f618005402 |
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-monorepo",
|
||||
"version": "0.23.0",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config",
|
||||
"version": "0.23.0",
|
||||
"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"
|
||||
|
@@ -44,9 +44,15 @@ module.exports = {
|
||||
files: ['*.json', '*.json5'],
|
||||
parser: 'jsonc-eslint-parser',
|
||||
rules: {
|
||||
'jsonc/quotes': ['error', 'double'],
|
||||
'jsonc/quote-props': ['error', 'always'],
|
||||
'jsonc/array-bracket-spacing': ['error', 'never'],
|
||||
'jsonc/comma-dangle': ['error', 'never'],
|
||||
'jsonc/comma-style': ['error', 'last'],
|
||||
'jsonc/indent': ['error', 2],
|
||||
'jsonc/key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
||||
'jsonc/no-octal-escape': 'error',
|
||||
'jsonc/object-curly-newline': ['error', { multiline: true, consistent: true }],
|
||||
'jsonc/object-curly-spacing': ['error', 'always'],
|
||||
'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -217,6 +223,7 @@ module.exports = {
|
||||
avoidQuotes: true,
|
||||
},
|
||||
],
|
||||
'prefer-exponentiation-operator': 'error',
|
||||
'prefer-rest-params': 'error',
|
||||
'prefer-spread': 'error',
|
||||
'prefer-template': 'error',
|
||||
@@ -259,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
|
||||
@@ -282,6 +287,8 @@ module.exports = {
|
||||
'no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
|
||||
'eslint-comments/disable-enable-pair': 'off',
|
||||
'import/no-named-as-default-member': 'off',
|
||||
'import/no-named-as-default': 'off',
|
||||
'import/namespace': 'off',
|
||||
'n/no-callback-literal': 'off',
|
||||
|
||||
'sort-imports': [
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-basic",
|
||||
"version": "0.23.0",
|
||||
"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"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-plugin-antfu",
|
||||
"version": "0.23.0",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-react",
|
||||
"version": "0.23.0",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@@ -126,5 +126,6 @@ module.exports = {
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'@typescript-eslint/ban-types': 'off',
|
||||
'@typescript-eslint/no-namespace': 'off',
|
||||
'@typescript-eslint/triple-slash-reference': 'off',
|
||||
},
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-ts",
|
||||
"version": "0.23.0",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-vue",
|
||||
"version": "0.23.0",
|
||||
"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
641
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user