Skip to content

Commit

Permalink
fix(eslint): move prefer-optional-chain to type awared section (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored Aug 25, 2022
1 parent c8fa1d9 commit 990677b
Show file tree
Hide file tree
Showing 26 changed files with 456 additions and 772 deletions.
9 changes: 9 additions & 0 deletions .changeset/honest-shrimps-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@1stg/app-config": patch
"@1stg/common-config": patch
"@1stg/eslint-config": patch
"@1stg/lib-config": patch
"@1stg/lint-staged": patch
---

fix(eslint): move `prefer-optional-chain` to type awared section
9 changes: 9 additions & 0 deletions .changeset/itchy-lemons-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@1stg/app-config": minor
"@1stg/common-config": minor
"@1stg/eslint-config": minor
"@1stg/lib-config": minor
"@1stg/lint-staged": minor
---

feat(eslint): enable `curly` with `all` option
8 changes: 8 additions & 0 deletions .changeset/sharp-socks-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@1stg/app-config": minor
"@1stg/babel-preset": minor
"@1stg/common-config": minor
"@1stg/lib-config": minor
---

feat(babel): bump `babel-preset-proposal-typescript@v3`
21 changes: 21 additions & 0 deletions .changeset/tiny-hairs-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
"@1stg/app-config": patch
"@1stg/babel-preset": patch
"@1stg/browserslist-config": patch
"@1stg/commitlint-config": patch
"@1stg/common-config": patch
"@1stg/config": patch
"@1stg/eslint-config": patch
"@1stg/lib-config": patch
"@1stg/lint-staged": patch
"@1stg/markuplint-config": patch
"@1stg/postcss-config": patch
"@1stg/prettier-config": patch
"@1stg/remark-preset": patch
"@1stg/renovate-config": patch
"@1stg/simple-git-hooks": patch
"@1stg/stylelint-config": patch
"@1stg/tsconfig": patch
---

chore: bump all (dev)Dependencies
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"workspaces": [
"packages/*"
],
"packageManager": "[email protected].0",
"packageManager": "[email protected].5",
"scripts": {
"check": "run-p check:*",
"check:eslint": "eslint-config-prettier .eslintrc.js",
"check:stylelint": "stylelint-config-prettier-check",
"codesandbox:install": "npx [email protected].0 i --no-frozen-lockfile",
"codesandbox:install": "npx [email protected].5 i --no-frozen-lockfile",
"lint": "run-p lint:*",
"lint:es": "eslint . --cache -f friendly",
"lint:style": "stylelint . --cache",
Expand Down Expand Up @@ -48,8 +48,8 @@
"@changesets/changelog-github": "^0.4.6",
"@changesets/cli": "^2.24.3",
"@types/babel__core": "^7.1.19",
"@types/jest": "^28.1.7",
"@types/node": "^18.7.8",
"@types/jest": "^28.1.8",
"@types/node": "^18.7.13",
"@types/react": "^18.0.17",
"@types/unist": "^2.0.6",
"@vitest/coverage-istanbul": "^0.22.1",
Expand Down
33 changes: 1 addition & 32 deletions packages/app-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,6 @@
"repository": "git+https://github.com/1stG/configs.git",
"homepage": "https://github.com/1stG/configs/tree/master/packages/app-config",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"donate": {
"recipients": [
{
"name": "unts",
"platform": "opencollective",
"address": "https://opencollective.com/unts",
"weight": 60
},
{
"name": "rxts",
"platform": "opencollective",
"address": "https://opencollective.com/rxts",
"weight": 20
},
{
"name": "1stG",
"email": "[email protected]",
"weight": 20,
"platforms": [
{
"platform": "opencollective",
"address": "https://opencollective.com/1stG"
},
{
"platform": "patreon",
"address": "https://www.patreon.com/1stG"
}
]
}
]
},
"funding": "https://www.patreon.com/1stG",
"license": "MIT",
"engines": {
Expand All @@ -50,7 +19,7 @@
"@pkgr/imagemin": "^3.1.1",
"browserslist": "^4.21.3",
"postcss": "^8.4.16",
"stylelint": "^14.10.0"
"stylelint": "^14.11.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = declare(
],
bugfixes: true,
corejs: {
version: '3.13',
version: '3.25',
proposals: true,
},
shippedProposals: true,
Expand Down
39 changes: 4 additions & 35 deletions packages/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,6 @@
"description": "Personal but Shareable Babel Preset for all 1stG.me projects",
"repository": "git+https://github.com/1stG/configs.git",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"donate": {
"recipients": [
{
"name": "unts",
"platform": "opencollective",
"address": "https://opencollective.com/unts",
"weight": 60
},
{
"name": "rxts",
"platform": "opencollective",
"address": "https://opencollective.com/rxts",
"weight": 20
},
{
"name": "1stG",
"email": "[email protected]",
"weight": 20,
"platforms": [
{
"platform": "opencollective",
"address": "https://opencollective.com/1stG"
},
{
"platform": "patreon",
"address": "https://www.patreon.com/1stG"
}
]
}
]
},
"funding": "https://www.patreon.com/1stG",
"license": "MIT",
"engines": {
Expand All @@ -51,16 +20,16 @@
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@pkgr/utils": "^2.3.0",
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
"@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
"@vue/babel-plugin-jsx": "^1.1.1",
"@vue/babel-preset-jsx": "^1.3.1",
"@vue/babel-preset-jsx": "^1.4.0",
"babel-plugin-import": "^1.13.5",
"babel-plugin-transform-async-to-promises": "^0.8.18",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"babel-plugin-transform-remove-console": "^6.9.4",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"babel-preset-proposal-typescript": "^2.2.0",
"core-js": "^3.24.1",
"babel-preset-proposal-typescript": "^3.0.0",
"core-js": "^3.25.0",
"fast-async": "^7.0.6"
},
"publishConfig": {
Expand Down
31 changes: 0 additions & 31 deletions packages/browserslist-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,6 @@
"description": "Personal but Shareable Browserslist Configuration for all 1stG.me projects",
"repository": "git+https://github.com/1stG/configs.git",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"donate": {
"recipients": [
{
"name": "unts",
"platform": "opencollective",
"address": "https://opencollective.com/unts",
"weight": 60
},
{
"name": "rxts",
"platform": "opencollective",
"address": "https://opencollective.com/rxts",
"weight": 20
},
{
"name": "1stG",
"email": "[email protected]",
"weight": 20,
"platforms": [
{
"platform": "opencollective",
"address": "https://opencollective.com/1stG"
},
{
"platform": "patreon",
"address": "https://www.patreon.com/1stG"
}
]
}
]
},
"funding": "https://www.patreon.com/1stG",
"license": "MIT",
"peerDependencies": {
Expand Down
31 changes: 0 additions & 31 deletions packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,6 @@
"description": "Personal but Shareable Commitlint Configuration for all 1stG.me projects",
"repository": "git+https://github.com/1stG/configs.git",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"donate": {
"recipients": [
{
"name": "unts",
"platform": "opencollective",
"address": "https://opencollective.com/unts",
"weight": 60
},
{
"name": "rxts",
"platform": "opencollective",
"address": "https://opencollective.com/rxts",
"weight": 20
},
{
"name": "1stG",
"email": "[email protected]",
"weight": 20,
"platforms": [
{
"platform": "opencollective",
"address": "https://opencollective.com/1stG"
},
{
"platform": "patreon",
"address": "https://www.patreon.com/1stG"
}
]
}
]
},
"funding": "https://www.patreon.com/1stG",
"license": "MIT",
"engines": {
Expand Down
33 changes: 1 addition & 32 deletions packages/common-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,6 @@
"repository": "git+https://github.com/1stG/configs.git",
"homepage": "https://github.com/1stG/configs/tree/master/packages/common-config",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"donate": {
"recipients": [
{
"name": "unts",
"platform": "opencollective",
"address": "https://opencollective.com/unts",
"weight": 60
},
{
"name": "rxts",
"platform": "opencollective",
"address": "https://opencollective.com/rxts",
"weight": 20
},
{
"name": "1stG",
"email": "[email protected]",
"weight": 20,
"platforms": [
{
"platform": "opencollective",
"address": "https://opencollective.com/1stG"
},
{
"platform": "patreon",
"address": "https://www.patreon.com/1stG"
}
]
}
]
},
"funding": "https://www.patreon.com/1stG",
"license": "MIT",
"engines": {
Expand All @@ -51,7 +20,7 @@
"@1stg/remark-preset": "^1.0.0",
"@1stg/simple-git-hooks": "^0.2.1",
"@1stg/tsconfig": "^2.3.0",
"@babel/core": "^7.18.10",
"@babel/core": "^7.18.13",
"@commitlint/cli": "^17.0.3",
"eslint": "^8.22.0",
"lint-staged": "^13.0.3",
Expand Down
31 changes: 0 additions & 31 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,6 @@
"description": "Personal but Shareable Configuration for all 1stG.me projects",
"repository": "git+https://github.com/1stG/configs.git",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"donate": {
"recipients": [
{
"name": "unts",
"platform": "opencollective",
"address": "https://opencollective.com/unts",
"weight": 60
},
{
"name": "rxts",
"platform": "opencollective",
"address": "https://opencollective.com/rxts",
"weight": 20
},
{
"name": "1stG",
"email": "[email protected]",
"weight": 20,
"platforms": [
{
"platform": "opencollective",
"address": "https://opencollective.com/1stG"
},
{
"platform": "patreon",
"address": "https://www.patreon.com/1stG"
}
]
}
]
},
"funding": "https://www.patreon.com/1stG",
"license": "MIT",
"publishConfig": {
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = {
allow: isWebpackAvailable ? webpackSpecVars : undefined,
},
],
curly: [2, 'all'],
'eslint-comments/disable-enable-pair': [
2,
{
Expand Down
Loading

0 comments on commit 990677b

Please sign in to comment.