Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: antfu/eslint-config
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.34.1
Choose a base ref
...
head repository: antfu/eslint-config
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.34.2
Choose a head ref
  • 4 commits
  • 11 files changed
  • 2 contributors

Commits on Jan 12, 2023

  1. fix: group &&, || and ?: (#152)

    kecrily authored Jan 12, 2023
    Copy the full SHA
    44bcb19 View commit details

Commits on Jan 28, 2023

  1. feat: allow require() in cjs

    antfu committed Jan 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f45a0d9 View commit details
  2. chore: upgrade deps

    antfu committed Jan 28, 2023
    Copy the full SHA
    39795b4 View commit details
  3. chore: release v0.34.2

    antfu committed Jan 28, 2023
    Copy the full SHA
    6e750c6 View commit details
32 changes: 16 additions & 16 deletions fixtures/vitesse/package.json
Original file line number Diff line number Diff line change
@@ -15,48 +15,48 @@
"up": "taze major -I"
},
"dependencies": {
"@unocss/reset": "^0.48.3",
"@vueuse/core": "^9.10.0",
"@vueuse/head": "^1.0.22",
"@unocss/reset": "^0.49.1",
"@vueuse/core": "^9.11.1",
"@vueuse/head": "^1.0.23",
"nprogress": "^0.2.0",
"pinia": "^2.0.28",
"pinia": "^2.0.29",
"vue": "^3.2.45",
"vue-demi": "^0.13.11",
"vue-i18n": "^9.2.2",
"vue-router": "^4.1.6"
},
"devDependencies": {
"@antfu/eslint-config": "^0.34.0",
"@iconify-json/carbon": "^1.1.13",
"@antfu/eslint-config": "^0.34.1",
"@iconify-json/carbon": "^1.1.14",
"@intlify/vite-plugin-vue-i18n": "^7.0.0",
"@types/markdown-it-link-attributes": "^3.0.1",
"@types/nprogress": "^0.2.0",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/test-utils": "^2.2.7",
"@vue/test-utils": "^2.2.8",
"critters": "^0.0.16",
"cross-env": "^7.0.3",
"cypress": "^12.3.0",
"eslint": "^8.31.0",
"cypress": "^12.4.1",
"eslint": "^8.33.0",
"eslint-plugin-cypress": "^2.12.1",
"https-localhost": "^4.7.1",
"markdown-it-link-attributes": "^4.0.1",
"markdown-it-shiki": "^0.7.2",
"pnpm": "^7.23.0",
"shiki": "^0.12.1",
"pnpm": "^7.26.1",
"shiki": "^0.13.0",
"taze": "^0.8.5",
"typescript": "^4.9.4",
"unocss": "^0.48.3",
"unplugin-auto-import": "^0.12.1",
"unplugin-vue-components": "^0.22.12",
"unocss": "^0.49.1",
"unplugin-auto-import": "^0.12.2",
"unplugin-vue-components": "^0.23.0",
"vite": "^4.0.4",
"vite-plugin-inspect": "^0.7.12",
"vite-plugin-inspect": "^0.7.15",
"vite-plugin-pages": "^0.28.0",
"vite-plugin-pwa": "^0.14.1",
"vite-plugin-vue-layouts": "^0.7.0",
"vite-plugin-vue-markdown": "^0.22.2",
"vite-ssg": "^0.22.1",
"vite-ssg-sitemap": "^0.4.3",
"vitest": "^0.26.3",
"vitest": "^0.28.3",
"vue-tsc": "^1.0.24"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-monorepo",
"version": "0.34.1",
"version": "0.34.2",
"private": true,
"packageManager": "pnpm@7.1.0",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -14,9 +14,9 @@
"devDependencies": {
"@antfu/eslint-config": "*",
"bumpp": "^8.2.1",
"eslint": "^8.31.0",
"eslint": "^8.33.0",
"eslint-plugin-antfu": "workspace:*",
"rimraf": "^3.0.2",
"rimraf": "^4.1.2",
"typescript": "^4.9.4"
}
}
14 changes: 7 additions & 7 deletions packages/all/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config",
"version": "0.34.1",
"version": "0.34.2",
"description": "Anthony's ESLint config",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
@@ -17,21 +17,21 @@
},
"dependencies": {
"@antfu/eslint-config-vue": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"eslint-plugin-eslint-comments": "^3.2.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-n": "^15.6.0",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^45.0.2",
"eslint-plugin-vue": "^9.8.0",
"eslint-plugin-vue": "^9.9.0",
"eslint-plugin-yml": "^1.4.0",
"jsonc-eslint-parser": "^2.1.0",
"yaml-eslint-parser": "^1.1.0"
},
"devDependencies": {
"eslint": "^8.31.0"
"eslint": "^8.33.0"
}
}
2 changes: 1 addition & 1 deletion packages/basic/index.js
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ module.exports = {
},
},
{
files: ['*.js'],
files: ['*.js', '*.cjs'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
8 changes: 4 additions & 4 deletions packages/basic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.34.1",
"version": "0.34.2",
"description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
@@ -22,10 +22,10 @@
"eslint-plugin-antfu": "workspace:*",
"eslint-plugin-eslint-comments": "^3.2.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-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-promise": "^6.1.1",
"eslint-plugin-unicorn": "^45.0.2",
@@ -34,6 +34,6 @@
"yaml-eslint-parser": "^1.1.0"
},
"devDependencies": {
"eslint": "^8.31.0"
"eslint": "^8.33.0"
}
}
2 changes: 1 addition & 1 deletion packages/basic/standard.js
Original file line number Diff line number Diff line change
@@ -126,7 +126,7 @@ module.exports = {
'no-mixed-operators': ['error', {
groups: [
['==', '!=', '===', '!==', '>', '>=', '<', '<='],
['&&', '||'],
['&&', '||', '?:'],
['in', 'instanceof'],
],
allowSamePrecedence: true,
8 changes: 4 additions & 4 deletions packages/eslint-plugin-antfu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-antfu",
"version": "0.34.1",
"version": "0.34.2",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"main": "./dist/index.cjs",
@@ -16,11 +16,11 @@
"prepublishOnly": "nr build"
},
"dependencies": {
"@typescript-eslint/utils": "^5.48.0"
"@typescript-eslint/utils": "^5.49.0"
},
"devDependencies": {
"@types/node": "^18.11.18",
"unbuild": "^1.0.2",
"vitest": "^0.26.3"
"unbuild": "^1.1.1",
"vitest": "^0.28.3"
}
}
6 changes: 3 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.34.1",
"version": "0.34.2",
"description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
@@ -20,11 +20,11 @@
},
"dependencies": {
"@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-react-hooks": "^4.6.0"
},
"devDependencies": {
"eslint": "^8.31.0",
"eslint": "^8.33.0",
"react": "^18.2.0",
"typescript": "^4.9.4"
}
8 changes: 4 additions & 4 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.34.1",
"version": "0.34.2",
"description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
@@ -18,11 +18,11 @@
},
"dependencies": {
"@antfu/eslint-config-basic": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"eslint-plugin-jest": "^27.2.1"
},
"devDependencies": {
"eslint": "^8.31.0"
"eslint": "^8.33.0"
}
}
8 changes: 4 additions & 4 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-vue",
"version": "0.34.1",
"version": "0.34.2",
"description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
@@ -17,10 +17,10 @@
"dependencies": {
"@antfu/eslint-config-basic": "workspace:*",
"@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-vue": "^9.8.0",
"local-pkg": "^0.4.2"
"eslint-plugin-vue": "^9.9.0",
"local-pkg": "^0.4.3"
},
"devDependencies": {
"eslint": "^8.31.0"
"eslint": "^8.33.0"
}
}
Loading