Compare commits

...

11 Commits

Author SHA1 Message Date
Anthony Fu
f62730648a chore: release v0.35.2 2023-02-07 14:40:21 +01:00
Anthony Fu
229b6cb188 chore: update deps 2023-02-07 14:37:18 +01:00
Anthony Fu
7a2d63cf3a fix: disable vue/no-v-text-v-html-on-component 2023-02-05 13:12:32 +01:00
Anthony Fu
2cf571c341 chore: release v0.35.1 2023-01-29 15:15:46 +01:00
Anthony Fu
4b57638f82 fix: disable @typescript-eslint/no-unused-vars 2023-01-29 15:15:30 +01:00
Anthony Fu
d8f05127c6 chore: release v0.35.0 2023-01-29 01:59:20 +01:00
Anthony Fu
f466ac5446 feat: auto fix for unused imports 2023-01-29 01:58:08 +01:00
Anthony Fu
6e750c6000 chore: release v0.34.2 2023-01-29 00:36:44 +01:00
Anthony Fu
39795b47a4 chore: upgrade deps 2023-01-29 00:36:40 +01:00
Anthony Fu
f45a0d9bd3 feat: allow require() in cjs 2023-01-29 00:35:25 +01:00
Percy Ma
44bcb19269 fix: group &&, || and ?: (#152) 2023-01-12 16:04:23 +01:00
13 changed files with 869 additions and 915 deletions

View File

@@ -15,48 +15,48 @@
"up": "taze major -I" "up": "taze major -I"
}, },
"dependencies": { "dependencies": {
"@unocss/reset": "^0.48.3", "@unocss/reset": "^0.49.4",
"@vueuse/core": "^9.10.0", "@vueuse/core": "^9.12.0",
"@vueuse/head": "^1.0.22", "@vueuse/head": "^1.0.25",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pinia": "^2.0.28", "pinia": "^2.0.30",
"vue": "^3.2.45", "vue": "^3.2.47",
"vue-demi": "^0.13.11", "vue-demi": "^0.13.11",
"vue-i18n": "^9.2.2", "vue-i18n": "^9.2.2",
"vue-router": "^4.1.6" "vue-router": "^4.1.6"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^0.34.0", "@antfu/eslint-config": "^0.35.1",
"@iconify-json/carbon": "^1.1.13", "@iconify-json/carbon": "^1.1.14",
"@intlify/vite-plugin-vue-i18n": "^7.0.0", "@intlify/vite-plugin-vue-i18n": "^7.0.0",
"@types/markdown-it-link-attributes": "^3.0.1", "@types/markdown-it-link-attributes": "^3.0.1",
"@types/nprogress": "^0.2.0", "@types/nprogress": "^0.2.0",
"@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue": "^4.0.0",
"@vue/test-utils": "^2.2.7", "@vue/test-utils": "^2.2.10",
"critters": "^0.0.16", "critters": "^0.0.16",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"cypress": "^12.3.0", "cypress": "^12.5.1",
"eslint": "^8.31.0", "eslint": "^8.33.0",
"eslint-plugin-cypress": "^2.12.1", "eslint-plugin-cypress": "^2.12.1",
"https-localhost": "^4.7.1", "https-localhost": "^4.7.1",
"markdown-it-link-attributes": "^4.0.1", "markdown-it-link-attributes": "^4.0.1",
"markdown-it-shiki": "^0.7.2", "markdown-it-shiki": "^0.7.2",
"pnpm": "^7.23.0", "pnpm": "^7.26.3",
"shiki": "^0.12.1", "shiki": "^0.14.0",
"taze": "^0.8.5", "taze": "^0.8.5",
"typescript": "^4.9.4", "typescript": "^4.9.5",
"unocss": "^0.48.3", "unocss": "^0.49.4",
"unplugin-auto-import": "^0.12.1", "unplugin-auto-import": "^0.13.0",
"unplugin-vue-components": "^0.22.12", "unplugin-vue-components": "^0.23.0",
"vite": "^4.0.4", "vite": "^4.1.1",
"vite-plugin-inspect": "^0.7.12", "vite-plugin-inspect": "^0.7.15",
"vite-plugin-pages": "^0.28.0", "vite-plugin-pages": "^0.28.0",
"vite-plugin-pwa": "^0.14.1", "vite-plugin-pwa": "^0.14.1",
"vite-plugin-vue-layouts": "^0.7.0", "vite-plugin-vue-layouts": "^0.7.0",
"vite-plugin-vue-markdown": "^0.22.2", "vite-plugin-vue-markdown": "^0.22.4",
"vite-ssg": "^0.22.1", "vite-ssg": "^0.22.1",
"vite-ssg-sitemap": "^0.4.3", "vite-ssg-sitemap": "^0.4.3",
"vitest": "^0.26.3", "vitest": "^0.28.4",
"vue-tsc": "^1.0.24" "vue-tsc": "^1.0.24"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-monorepo", "name": "@antfu/eslint-config-monorepo",
"version": "0.34.1", "version": "0.35.2",
"private": true, "private": true,
"packageManager": "pnpm@7.1.0", "packageManager": "pnpm@7.1.0",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -14,9 +14,9 @@
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "*", "@antfu/eslint-config": "*",
"bumpp": "^8.2.1", "bumpp": "^8.2.1",
"eslint": "^8.31.0", "eslint": "^8.33.0",
"eslint-plugin-antfu": "workspace:*", "eslint-plugin-antfu": "workspace:*",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.4" "typescript": "^4.9.5"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config", "name": "@antfu/eslint-config",
"version": "0.34.1", "version": "0.35.2",
"description": "Anthony's ESLint config", "description": "Anthony's ESLint config",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -17,21 +17,21 @@
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-vue": "workspace:*", "@antfu/eslint-config-vue": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.48.0", "@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.48.0", "@typescript-eslint/parser": "^5.51.0",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^7.1.0", "eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsonc": "^2.6.0", "eslint-plugin-jsonc": "^2.6.0",
"eslint-plugin-n": "^15.6.0", "eslint-plugin-n": "^15.6.1",
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^45.0.2", "eslint-plugin-unicorn": "^45.0.2",
"eslint-plugin-vue": "^9.8.0", "eslint-plugin-vue": "^9.9.0",
"eslint-plugin-yml": "^1.4.0", "eslint-plugin-yml": "^1.4.0",
"jsonc-eslint-parser": "^2.1.0", "jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^1.1.0" "yaml-eslint-parser": "^1.1.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.31.0" "eslint": "^8.33.0"
} }
} }

View File

@@ -37,6 +37,7 @@ module.exports = {
'unicorn', 'unicorn',
'antfu', 'antfu',
'no-only-tests', 'no-only-tests',
'unused-imports',
], ],
settings: { settings: {
'import/resolver': { 'import/resolver': {
@@ -142,7 +143,7 @@ module.exports = {
}, },
}, },
{ {
files: ['*.js'], files: ['*.js', '*.cjs'],
rules: { rules: {
'@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/no-var-requires': 'off',
}, },
@@ -177,6 +178,8 @@ module.exports = {
'@typescript-eslint/comma-dangle': 'off', '@typescript-eslint/comma-dangle': 'off',
'@typescript-eslint/consistent-type-imports': 'off', '@typescript-eslint/consistent-type-imports': 'off',
'import/no-unresolved': 'off', 'import/no-unresolved': 'off',
'unused-imports/no-unused-imports': 'off',
'unused-imports/no-unused-vars': 'off',
'no-alert': 'off', 'no-alert': 'off',
'no-console': 'off', 'no-console': 'off',
'no-restricted-imports': 'off', 'no-restricted-imports': 'off',
@@ -199,7 +202,13 @@ module.exports = {
'curly': ['error', 'multi-or-nest', 'consistent'], 'curly': ['error', 'multi-or-nest', 'consistent'],
'quotes': ['error', 'single'], 'quotes': ['error', 'single'],
'quote-props': ['error', 'consistent-as-needed'], 'quote-props': ['error', 'consistent-as-needed'],
'no-unused-vars': 'warn',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
],
'no-param-reassign': 'off', 'no-param-reassign': 'off',
'array-bracket-spacing': ['error', 'never'], 'array-bracket-spacing': ['error', 'never'],
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }], 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-basic", "name": "@antfu/eslint-config-basic",
"version": "0.34.1", "version": "0.35.2",
"description": "", "description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -22,18 +22,19 @@
"eslint-plugin-antfu": "workspace:*", "eslint-plugin-antfu": "workspace:*",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^7.1.0", "eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsonc": "^2.6.0", "eslint-plugin-jsonc": "^2.6.0",
"eslint-plugin-markdown": "^3.0.0", "eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-n": "^15.6.0", "eslint-plugin-n": "^15.6.1",
"eslint-plugin-no-only-tests": "^3.1.0", "eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^45.0.2", "eslint-plugin-unicorn": "^45.0.2",
"eslint-plugin-unused-imports": "^2.0.0",
"eslint-plugin-yml": "^1.4.0", "eslint-plugin-yml": "^1.4.0",
"jsonc-eslint-parser": "^2.1.0", "jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^1.1.0" "yaml-eslint-parser": "^1.1.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.31.0" "eslint": "^8.33.0"
} }
} }

View File

@@ -126,7 +126,7 @@ module.exports = {
'no-mixed-operators': ['error', { 'no-mixed-operators': ['error', {
groups: [ groups: [
['==', '!=', '===', '!==', '>', '>=', '<', '<='], ['==', '!=', '===', '!==', '>', '>=', '<', '<='],
['&&', '||'], ['&&', '||', '?:'],
['in', 'instanceof'], ['in', 'instanceof'],
], ],
allowSamePrecedence: true, allowSamePrecedence: true,

View File

@@ -1,6 +1,6 @@
{ {
"name": "eslint-plugin-antfu", "name": "eslint-plugin-antfu",
"version": "0.34.1", "version": "0.35.2",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/antfu/eslint-config", "homepage": "https://github.com/antfu/eslint-config",
"main": "./dist/index.cjs", "main": "./dist/index.cjs",
@@ -16,11 +16,11 @@
"prepublishOnly": "nr build" "prepublishOnly": "nr build"
}, },
"dependencies": { "dependencies": {
"@typescript-eslint/utils": "^5.48.0" "@typescript-eslint/utils": "^5.51.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^18.11.18", "@types/node": "^18.13.0",
"unbuild": "^1.0.2", "unbuild": "^1.1.1",
"vitest": "^0.26.3" "vitest": "^0.28.4"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-react", "name": "@antfu/eslint-config-react",
"version": "0.34.1", "version": "0.35.2",
"description": "", "description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -20,12 +20,12 @@
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-ts": "workspace:*", "@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.31.11", "eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0" "eslint-plugin-react-hooks": "^4.6.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.31.0", "eslint": "^8.33.0",
"react": "^18.2.0", "react": "^18.2.0",
"typescript": "^4.9.4" "typescript": "^4.9.5"
} }
} }

View File

@@ -113,8 +113,6 @@ module.exports = {
], ],
offsetTernaryExpressions: true, offsetTernaryExpressions: true,
}], }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-redeclare': 'off', 'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error', '@typescript-eslint/no-redeclare': 'error',
'no-use-before-define': 'off', 'no-use-before-define': 'off',
@@ -173,5 +171,7 @@ module.exports = {
'@typescript-eslint/ban-types': 'off', '@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/triple-slash-reference': 'off', '@typescript-eslint/triple-slash-reference': 'off',
// handled by unused-imports/no-unused-imports
'@typescript-eslint/no-unused-vars': 'off',
}, },
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-ts", "name": "@antfu/eslint-config-ts",
"version": "0.34.1", "version": "0.35.2",
"description": "", "description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -18,11 +18,11 @@
}, },
"dependencies": { "dependencies": {
"@antfu/eslint-config-basic": "workspace:*", "@antfu/eslint-config-basic": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.48.0", "@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.48.0", "@typescript-eslint/parser": "^5.51.0",
"eslint-plugin-jest": "^27.2.1" "eslint-plugin-jest": "^27.2.1"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.31.0" "eslint": "^8.33.0"
} }
} }

View File

@@ -35,6 +35,7 @@ module.exports = {
'vue/require-default-prop': 'off', 'vue/require-default-prop': 'off',
'vue/multi-word-component-names': 'off', 'vue/multi-word-component-names': 'off',
'vue/prefer-import-from-vue': 'off', 'vue/prefer-import-from-vue': 'off',
'vue/no-v-text-v-html-on-component': 'off',
// reactivity transform // reactivity transform
'vue/no-setup-props-destructure': 'off', 'vue/no-setup-props-destructure': 'off',
@@ -57,7 +58,6 @@ module.exports = {
}], }],
'vue/no-restricted-v-bind': ['error', '/^v-/'], 'vue/no-restricted-v-bind': ['error', '/^v-/'],
'vue/no-useless-v-bind': 'error', 'vue/no-useless-v-bind': 'error',
'vue/no-v-text-v-html-on-component': 'error',
'vue/padding-line-between-blocks': ['error', 'always'], 'vue/padding-line-between-blocks': ['error', 'always'],
'vue/prefer-separate-static-class': 'error', 'vue/prefer-separate-static-class': 'error',

View File

@@ -1,6 +1,6 @@
{ {
"name": "@antfu/eslint-config-vue", "name": "@antfu/eslint-config-vue",
"version": "0.34.1", "version": "0.35.2",
"description": "", "description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT", "license": "MIT",
@@ -17,10 +17,10 @@
"dependencies": { "dependencies": {
"@antfu/eslint-config-basic": "workspace:*", "@antfu/eslint-config-basic": "workspace:*",
"@antfu/eslint-config-ts": "workspace:*", "@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-vue": "^9.8.0", "eslint-plugin-vue": "^9.9.0",
"local-pkg": "^0.4.2" "local-pkg": "^0.4.3"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.31.0" "eslint": "^8.33.0"
} }
} }

1658
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff