Skip to content

Commit

Permalink
feat: bump dependencies, migrate to eslint-community
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Apr 1, 2023
1 parent bcf3ab2 commit 20b1b9e
Show file tree
Hide file tree
Showing 16 changed files with 3,290 additions and 1,397 deletions.
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@
"typecov": "type-coverage"
},
"devDependencies": {
"@angular/compiler": "^14.2.12",
"@angular/compiler-cli": "^14.2.12",
"@angular/core": "^14.2.12",
"@changesets/changelog-github": "^0.4.7",
"@changesets/cli": "^2.25.2",
"@types/babel__core": "^7.1.20",
"@types/jest": "^29.2.1",
"@types/node": "^18.11.9",
"@types/react": "^18.0.24",
"@angular/compiler": "^15.2.5",
"@angular/compiler-cli": "^15.2.5",
"@angular/core": "^15.2.5",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@types/babel__core": "^7.20.0",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"@types/react": "^18.0.31",
"@types/unist": "^2.0.6",
"@vitest/coverage-istanbul": "^0.24.5",
"postcss": "^8.4.18",
"@vitest/coverage-istanbul": "^0.29.8",
"postcss": "^8.4.21",
"react": "^18.2.0",
"rxjs": "^7.5.7",
"rxjs": "^7.8.0",
"simple-git-hooks": "^2.8.1",
"svelte": "^3.52.0",
"type-coverage": "^2.22.0",
"typescript": "^4.8.4",
"vitest": "^0.24.5",
"vue": "^3.2.41",
"vue-tsc": "^1.0.9"
"svelte": "^3.58.0",
"type-coverage": "^2.25.0",
"typescript": "^5.0.3",
"vitest": "^0.29.8",
"vue": "^3.2.47",
"vue-tsc": "^1.2.0"
},
"resolutions": {
"prettier": "^2.7.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/app-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"@1stg/stylelint-config": "^4.8.2",
"@pkgr/es-modules": "^0.6.3",
"@pkgr/imagemin": "^3.1.2",
"browserslist": "^4.21.4",
"postcss": "^8.4.16",
"stylelint": "^14.12.0"
"browserslist": "^4.21.5",
"postcss": "^8.4.21",
"stylelint": "^15.4.0"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 6 additions & 6 deletions packages/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
"@babel/core": ">=7.14.1"
},
"dependencies": {
"@babel/helper-plugin-utils": "^7.19.0",
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.19.1",
"@babel/preset-env": "^7.19.1",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/preset-typescript": "^7.21.4",
"@pkgr/utils": "^2.3.1",
"@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
"@vue/babel-plugin-jsx": "^1.1.1",
"@vue/babel-preset-jsx": "^1.4.0",
"babel-plugin-import": "^1.13.5",
"babel-plugin-import": "^1.13.6",
"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": "^3.0.0",
"core-js": "^3.25.2",
"core-js": "^3.29.1",
"fast-async": "^7.0.6"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"node": "^14.18.0 || >=16.0.0"
},
"dependencies": {
"@commitlint/config-conventional": "^17.1.0",
"@commitlint/config-lerna-scopes": "^17.0.2",
"@commitlint/config-conventional": "^17.4.4",
"@commitlint/config-lerna-scopes": "^17.4.2",
"@pkgr/utils": "^2.3.1"
},
"publishConfig": {
Expand Down
14 changes: 7 additions & 7 deletions packages/common-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"@1stg/remark-preset": "^2.0.0",
"@1stg/simple-git-hooks": "^0.2.3",
"@1stg/tsconfig": "^2.3.2",
"@babel/core": "^7.19.1",
"@commitlint/cli": "^17.1.2",
"eslint": "^8.26.0",
"lint-staged": "^13.0.3",
"@babel/core": "^7.21.4",
"@commitlint/cli": "^17.5.1",
"eslint": "^8.37.0",
"lint-staged": "^13.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"simple-git-hooks": "^2.8.0",
"tslib": "^2.4.0"
"prettier": "^2.8.7",
"simple-git-hooks": "^2.8.1",
"tslib": "^2.5.0"
},
"publishConfig": {
"access": "public"
Expand Down
16 changes: 8 additions & 8 deletions packages/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
module.exports = {
extends: [
'eslint:recommended',
'plugin:eslint-comments/recommended',
'plugin:@eslint-community/eslint-comments/recommended',
'plugin:css/recommended',
'plugin:import/recommended',
'plugin:n/recommended',
Expand All @@ -26,6 +26,13 @@ module.exports = {
plugins: ['es-x', 'simple-import-sort'],
globals: isWebpackAvailable ? getGlobals(webpackSpecVars) : undefined,
rules: {
'@eslint-community/eslint-comments/disable-enable-pair': [
2,
{
allowWholeFile: true,
},
],
'@eslint-community/eslint-comments/no-unused-disable': 2,
'arrow-body-style': 2,
camelcase: [
2,
Expand All @@ -36,13 +43,6 @@ module.exports = {
},
],
curly: [2, 'all'],
'eslint-comments/disable-enable-pair': [
2,
{
allowWholeFile: true,
},
],
'eslint-comments/no-unused-disable': 2,
'import/first': 2,
'import/newline-after-import': 2,
'import/no-duplicates': 2,
Expand Down
56 changes: 28 additions & 28 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,44 +15,44 @@
},
"dependencies": {
"@1stg/config": "^0.2.1",
"@angular-eslint/eslint-plugin": "^14.1.2",
"@angular-eslint/eslint-plugin-template": "^14.1.2",
"@angular-eslint/template-parser": "^14.1.2",
"@babel/eslint-parser": "^7.19.1",
"@angular-eslint/eslint-plugin": "^15.2.1",
"@angular-eslint/eslint-plugin-template": "^15.2.1",
"@angular-eslint/template-parser": "^15.2.1",
"@babel/eslint-parser": "^7.21.3",
"@babel/eslint-plugin": "^7.19.1",
"@eslint-community/eslint-plugin-eslint-comments": "^3.2.1",
"@pkgr/utils": "^2.3.1",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"angular-eslint-template-parser": "^0.1.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard": "^17.0.0",
"eslint-config-standard-jsx": "^11.0.0",
"eslint-config-standard-react": "^12.0.0",
"eslint-config-standard-react": "^13.0.0",
"eslint-formatter-friendly": "^7.0.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-css": "^0.6.0",
"eslint-plugin-es-x": "^5.3.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "npm:eslint-plugin-i@^2.26.0-2",
"eslint-plugin-jest": "^27.0.4",
"eslint-plugin-jsdoc": "^39.3.6",
"eslint-plugin-jsonc": "^2.4.0",
"eslint-import-resolver-typescript": "^3.5.4",
"eslint-plugin-css": "^0.7.0",
"eslint-plugin-es-x": "^6.0.0",
"eslint-plugin-import": "npm:eslint-plugin-i@^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsdoc": "^40.1.1",
"eslint-plugin-jsonc": "^2.7.0",
"eslint-plugin-markup": "^0.10.2",
"eslint-plugin-mdx": "^2.0.5",
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-regexp": "^1.9.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-sonar": "^0.10.0",
"eslint-plugin-sonarjs": "^0.16.0",
"eslint-plugin-svelte": "^2.8.0",
"eslint-plugin-toml": "^0.3.1",
"eslint-plugin-unicorn": "^44.0.2",
"eslint-plugin-vue": "^9.5.1",
"eslint-plugin-yml": "^1.2.0"
"eslint-plugin-regexp": "^1.14.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-sonar": "^0.11.0",
"eslint-plugin-sonarjs": "^0.19.0",
"eslint-plugin-svelte": "^2.24.0",
"eslint-plugin-toml": "^0.4.0",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-plugin-vue": "^9.10.0",
"eslint-plugin-yml": "^1.5.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/lint-staged/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@1stg/prettier-config": "^3.9.2",
"@1stg/tsconfig": "^2.3.2",
"@pkgr/utils": "^2.3.1",
"prettier": "^2.7.1"
"prettier": "^2.8.7"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/markuplint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"markuplint": "^2.0.0"
},
"dependencies": {
"@markuplint/svelte-parser": "^2.2.4",
"@markuplint/vue-parser": "^2.3.2",
"@markuplint/vue-spec": "^2.1.1",
"@markuplint/svelte-parser": "^3.5.0",
"@markuplint/vue-parser": "^3.5.0",
"@markuplint/vue-spec": "^3.5.0",
"markuplint-angular-parser": "^1.1.3"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions packages/postcss-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
},
"dependencies": {
"@pkgr/utils": "^2.3.1",
"autoprefixer": "^10.4.11",
"cssnano": "^5.1.13",
"cssnano-preset-advanced": "^5.3.8",
"postcss-import": "^15.0.0",
"postcss-modules": "^5.0.0",
"autoprefixer": "^10.4.14",
"cssnano": "^6.0.0",
"cssnano-preset-advanced": "^6.0.0",
"postcss-import": "^15.1.0",
"postcss-modules": "^6.0.0",
"postcss-normalize": "^10.0.1",
"postcss-preset-env": "^7.8.2",
"postcss-preset-env": "^8.3.0",
"postcss-url": "^10.1.3"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
},
"dependencies": {
"@1stg/config": "^0.2.1",
"@prettier/plugin-pug": "^2.2.0",
"@prettier/plugin-ruby": "^3.2.1",
"@prettier/plugin-pug": "^2.4.2",
"@prettier/plugin-ruby": "^3.2.2",
"@prettier/plugin-xml": "^2.2.0",
"prettier-plugin-ini": "^1.1.0",
"prettier-plugin-pkg": "^0.17.1",
"prettier-plugin-properties": "^0.2.0",
"prettier-plugin-sh": "^0.12.8",
"prettier-plugin-stylus": "^0.0.1-beta.8",
"prettier-plugin-svelte": "^2.7.0",
"prettier-plugin-svelte": "^2.10.0",
"prettier-plugin-toml": "^0.3.1"
},
"publishConfig": {
Expand Down
3 changes: 3 additions & 0 deletions packages/stylelint-config/_overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ module.exports = loose => ({
files: ['**/*.styl', '**/*.stylus'],
customSyntax: 'postcss-styl',
extends: ['stylelint-stylus/standard', 'stylelint-prettier/recommended'],
rules: {
'function-no-unknown': null,
},
},
],
})
16 changes: 8 additions & 8 deletions packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"postcss-html": "^1.5.0",
"postcss-less": "^6.0.0",
"postcss-markdown": "^1.2.0",
"postcss-scss": "^4.0.5",
"postcss-scss": "^4.0.6",
"postcss-syntax": "^0.36.2",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^29.0.0",
"stylelint-high-performance-animation": "^1.6.0",
"stylelint-no-unsupported-browser-features": "^6.0.1",
"stylelint-prettier": "^2.0.0",
"stylelint-scss": "^4.3.0",
"stylelint-stylus": "^0.17.0"
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard": "^32.0.0",
"stylelint-high-performance-animation": "^1.8.0",
"stylelint-no-unsupported-browser-features": "^6.1.0",
"stylelint-prettier": "^3.0.0",
"stylelint-scss": "^4.6.0",
"stylelint-stylus": "^0.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 6 additions & 0 deletions packages/stylelint-config/scss/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ module.exports = {
ignoreAnnotations: ['default'],
},
],
'at-rule-empty-line-before': [
'always',
{
ignoreAtRules: ['else'],
},
],
'at-rule-no-unknown': null,
'function-no-unknown': null,
'scss/at-each-key-value-single-line': true,
Expand Down
9 changes: 6 additions & 3 deletions tests/test.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@

.component {
width: 300px;
@media (min-width: 768px) {

@media (width >= 768px) {
width: 600px;
@media (min-resolution: 192dpi) {

@media (resolution >= 192dpi) {
background-image: url('/img/retina2x.png');
}
}
@media (min-width: 1280px) {

@media (width >= 1280px) {
width: 800px;
}
}
Loading

0 comments on commit 20b1b9e

Please sign in to comment.