Compare commits

...

4 Commits

Author SHA1 Message Date
Anthony Fu
2d9efd4df6 release v0.20.7 2022-04-23 09:23:16 +08:00
Anthony Fu
b8e6cdf047 chore: updete deps 2022-04-23 09:23:11 +08:00
Anthony Fu
50c962197b release v0.20.6 2022-04-17 13:17:38 +08:00
Anthony Fu
bf19dc0adb fix: indents 2022-04-17 13:17:35 +08:00
9 changed files with 342 additions and 326 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-monorepo",
"version": "0.20.5",
"version": "0.20.7",
"private": true,
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -12,7 +12,7 @@
"devDependencies": {
"@antfu/eslint-config": "*",
"bumpp": "^7.1.1",
"eslint": "^8.12.0",
"eslint": "^8.14.0",
"eslint-plugin-antfu": "workspace:*",
"typescript": "^4.6.3"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config",
"version": "0.20.5",
"version": "0.20.7",
"description": "",
"keywords": [],
"license": "MIT",
@@ -15,22 +15,22 @@
"dependencies": {
"@antfu/eslint-config-react": "workspace:*",
"@antfu/eslint-config-vue": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsonc": "^2.2.1",
"eslint-plugin-n": "^15.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^41.0.1",
"eslint-plugin-vue": "^8.5.0",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-vue": "^8.7.1",
"eslint-plugin-yml": "^0.14.0",
"jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^0.5.0"
},
"devDependencies": {
"eslint": "^8.12.0"
"eslint": "^8.14.0"
},
"publishConfig": {
"access": "public"

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.20.5",
"version": "0.20.7",
"description": "",
"keywords": [],
"license": "MIT",
@@ -19,18 +19,18 @@
"eslint-plugin-antfu": "workspace:*",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsonc": "^2.2.1",
"eslint-plugin-markdown": "^2.2.1",
"eslint-plugin-n": "^15.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^41.0.1",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-yml": "^0.14.0",
"jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^0.5.0"
},
"devDependencies": {
"eslint": "^8.12.0"
"eslint": "^8.14.0"
},
"publishConfig": {
"access": "public"

View File

@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-antfu",
"version": "0.20.5",
"version": "0.20.7",
"license": "MIT",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
@@ -22,10 +22,10 @@
"prepublishOnly": "nr build"
},
"dependencies": {
"@typescript-eslint/utils": "^5.17.0"
"@typescript-eslint/utils": "^5.20.0"
},
"devDependencies": {
"unbuild": "^0.7.0",
"vitest": "^0.8.2"
"unbuild": "^0.7.4",
"vitest": "^0.9.4"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.20.5",
"version": "0.20.7",
"description": "",
"keywords": [],
"license": "MIT",
@@ -23,7 +23,7 @@
"eslint-plugin-react": "^7.29.4"
},
"devDependencies": {
"eslint": "^8.12.0",
"eslint": "^8.14.0",
"react": "^18.0.0",
"typescript": "^4.6.3"
}

View File

@@ -30,11 +30,39 @@ module.exports = {
'no-useless-constructor': 'off',
'indent': 'off',
'@typescript-eslint/indent': ['error', 2, {
SwitchCase: 1,
VariableDeclarator: 1,
outerIIFEBody: 1,
MemberExpression: 1,
FunctionDeclaration: { parameters: 1, body: 1 },
FunctionExpression: { parameters: 1, body: 1 },
CallExpression: { arguments: 1 },
ArrayExpression: 1,
ObjectExpression: 1,
ImportDeclaration: 1,
flatTernaryExpressions: false,
ignoreComments: false,
ignoredNodes: [
'TemplateLiteral *',
'JSXElement',
'JSXElement > *',
'JSXAttribute',
'JSXIdentifier',
'JSXNamespacedName',
'JSXMemberExpression',
'JSXSpreadAttribute',
'JSXExpressionContainer',
'JSXOpeningElement',
'JSXClosingElement',
'JSXFragment',
'JSXOpeningFragment',
'JSXClosingFragment',
'JSXText',
'JSXEmptyExpression',
'JSXSpreadChild',
'TSTypeParameterInstantiation',
],
SwitchCase: 1,
offsetTernaryExpressions: true,
}],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.20.5",
"version": "0.20.7",
"description": "",
"keywords": [],
"license": "MIT",
@@ -18,10 +18,10 @@
},
"dependencies": {
"@antfu/eslint-config-basic": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0"
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0"
},
"devDependencies": {
"eslint": "^8.12.0"
"eslint": "^8.14.0"
}
}

View File

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

586
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff