Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump all (dev)Dependencies, fix related usage #153

Merged
merged 7 commits into from Aug 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chilled-donkeys-promise.md
@@ -0,0 +1,5 @@
---
"@1stg/tsconfig": minor
---

feat: enable `removeComments` for libraries
8 changes: 8 additions & 0 deletions .changeset/curly-moles-search.md
@@ -0,0 +1,8 @@
---
"@1stg/app-config": patch
"@1stg/common-config": patch
"@1stg/lib-config": patch
"@1stg/lint-staged": patch
---

fix(lint-staged): run `prettier` after `eslint` if `CONFIG_PREFER_PRETTIER` enabled
9 changes: 9 additions & 0 deletions .changeset/honest-cobras-sip.md
@@ -0,0 +1,9 @@
---
"@1stg/app-config": minor
"@1stg/common-config": minor
"@1stg/eslint-config": minor
"@1stg/prettier-config": minor
"@1stg/stylelint-config": minor
---

chore(deps): bump all (dev)Dependencies, fix related usage
5 changes: 5 additions & 0 deletions .changeset/long-bags-battle.md
@@ -0,0 +1,5 @@
---
"@1stg/stylelint-config": patch
---

fix: enable `ignoreAnnotations: ['default']` for `.scss` files
5 changes: 5 additions & 0 deletions .changeset/spotty-ladybugs-impress.md
@@ -0,0 +1,5 @@
---
"@1stg/eslint-config": patch
---

fix: ignore UPPER_CASE yaml files as markdown for files like `.github/FUNDING.yml`
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -4,4 +4,5 @@ lib
node_modules
CHANGELOG.md
/pnpm-lock.yaml
!/.github
!/.*.js
24 changes: 12 additions & 12 deletions package.json
Expand Up @@ -9,12 +9,12 @@
"workspaces": [
"packages/*"
],
"packageManager": "pnpm@7.6.0",
"packageManager": "pnpm@7.9.0",
"scripts": {
"check": "run-p check:*",
"check:eslint": "eslint-config-prettier .eslintrc.js",
"check:stylelint": "stylelint-config-prettier-check",
"codesandbox:install": "npx pnpm@7.6.0 i --no-frozen-lockfile",
"codesandbox:install": "npx pnpm@7.9.0 i --no-frozen-lockfile",
"lint": "run-p lint:*",
"lint:es": "eslint . --cache -f friendly",
"lint:style": "stylelint . --cache",
Expand Down Expand Up @@ -42,28 +42,28 @@
"@1stg/simple-git-hooks": "workspace:*",
"@1stg/stylelint-config": "workspace:*",
"@1stg/tsconfig": "workspace:*",
"@angular/compiler": "^14.1.0",
"@angular/compiler-cli": "^14.1.0",
"@angular/core": "^14.1.0",
"@angular/compiler": "^14.1.2",
"@angular/compiler-cli": "^14.1.2",
"@angular/core": "^14.1.2",
"@changesets/changelog-github": "^0.4.6",
"@changesets/cli": "^2.24.0",
"@changesets/cli": "^2.24.3",
"@types/babel__core": "^7.1.19",
"@types/jest": "^28.1.6",
"@types/node": "^18.0.6",
"@types/react": "^18.0.15",
"@types/node": "^18.7.3",
"@types/react": "^18.0.17",
"@types/unist": "^2.0.6",
"c8": "^7.12.0",
"markuplint": "^2.10.0",
"postcss": "^8.4.14",
"markuplint": "^2.10.1",
"postcss": "^8.4.16",
"react": "^18.2.0",
"rxjs": "^7.5.6",
"simple-git-hooks": "^2.8.0",
"svelte": "^3.49.0",
"type-coverage": "^2.22.0",
"typescript": "^4.7.4",
"vitest": "^0.19.0",
"vitest": "^0.21.1",
"vue": "^3.2.37",
"vue-tsc": "^0.39.0"
"vue-tsc": "^0.40.1"
},
"resolutions": {
"prettier": "^2.7.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/app-config/package.json
Expand Up @@ -48,9 +48,9 @@
"@1stg/stylelint-config": "^4.6.1",
"@pkgr/es-modules": "^0.6.2",
"@pkgr/imagemin": "^3.1.1",
"browserslist": "^4.21.2",
"postcss": "^8.4.14",
"stylelint": "^14.9.1"
"browserslist": "^4.21.3",
"postcss": "^8.4.16",
"stylelint": "^14.10.0"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-preset/package.json
Expand Up @@ -46,8 +46,8 @@
"dependencies": {
"@babel/helper-plugin-utils": "^7.18.9",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.18.9",
"@babel/preset-env": "^7.18.9",
"@babel/plugin-proposal-decorators": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@pkgr/utils": "^2.3.0",
Expand All @@ -60,7 +60,7 @@
"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.23.5",
"core-js": "^3.24.1",
"fast-async": "^7.0.6"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/common-config/package.json
Expand Up @@ -51,9 +51,9 @@
"@1stg/remark-config": "^4.0.3",
"@1stg/simple-git-hooks": "^0.2.1",
"@1stg/tsconfig": "^2.2.5",
"@babel/core": "^7.18.9",
"@babel/core": "^7.18.10",
"@commitlint/cli": "^17.0.3",
"eslint": "^8.20.0",
"eslint": "^8.22.0",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/base.js
Expand Up @@ -107,8 +107,8 @@ module.exports = {
kebabCase: true,
pascalCase: true,
},
// ignore UPPER_CASE markdown filenames
ignore: [/^[A-Z](([\dA-Z]+_)*[\dA-Z]+)?\.mdx?$/],
// ignore UPPER_CASE markdown or yaml filenames
ignore: [/^[A-Z](([\dA-Z]+_)*[\dA-Z]+)?\.(mdx?|ya?ml)$/],
},
],
'unicorn/no-array-reduce': 0,
Expand Down
26 changes: 13 additions & 13 deletions packages/eslint-config/package.json
Expand Up @@ -50,24 +50,24 @@
"@angular-eslint/eslint-plugin-template": "^14.0.2",
"@angular-eslint/template-parser": "^14.0.2",
"@babel/eslint-parser": "^7.18.9",
"@babel/eslint-plugin": "^7.17.7",
"@babel/eslint-plugin": "^7.18.10",
"@pkgr/utils": "^2.3.0",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"angular-eslint-template-parser": "^0.1.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-config-standard-jsx": "^11.0.0",
"eslint-config-standard-react": "^11.0.1",
"eslint-formatter-friendly": "^7.0.0",
"eslint-import-resolver-typescript": "^3.3.0",
"eslint-import-resolver-typescript": "^3.4.1",
"eslint-plugin-css": "^0.6.0",
"eslint-plugin-es-x": "^5.2.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "npm:eslint-plugin-i@^2.26.0",
"eslint-plugin-jest": "^26.6.0",
"eslint-plugin-jsdoc": "^39.3.3",
"eslint-plugin-json-schema-validator": "^4.0.0",
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-jsdoc": "^39.3.6",
"eslint-plugin-json-schema-validator": "^4.0.1",
"eslint-plugin-jsonc": "^2.3.1",
"eslint-plugin-markup": "^0.10.1",
"eslint-plugin-mdx": "^2.0.2",
Expand All @@ -76,15 +76,15 @@
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-regexp": "^1.7.0",
"eslint-plugin-regexp": "^1.8.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-sonar": "^0.8.0",
"eslint-plugin-sonarjs": "^0.14.0",
"eslint-plugin-svelte": "^2.2.0",
"eslint-plugin-sonar": "^0.9.0",
"eslint-plugin-sonarjs": "^0.15.0",
"eslint-plugin-svelte": "^2.5.0",
"eslint-plugin-toml": "^0.3.1",
"eslint-plugin-unicorn": "^43.0.2",
"eslint-plugin-vue": "^9.2.0",
"eslint-plugin-yml": "^1.0.0"
"eslint-plugin-vue": "^9.3.0",
"eslint-plugin-yml": "^1.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
15 changes: 11 additions & 4 deletions packages/lint-staged/base.js
Expand Up @@ -13,26 +13,33 @@ const STYLELINT_PRETTIER_FILES = 'css,less,sass,scss,styl,stylus,svelte,vue'

const config = [
`*.{*sh,env,env.*,gql,ini,properties,rb${
useEslintPrettier ? '' : ',' + ESLINT_PRETTIER_FILES
}${useStylelintPrettier ? '' : ',' + STYLELINT_PRETTIER_FILES}}`,
isEslintAvailable ? '' : ',' + ESLINT_PRETTIER_FILES
}${isStylelintAvailable ? '' : ',' + STYLELINT_PRETTIER_FILES}}`,
'.!(browserslistrc|nvm)rc',
'Dockerfile',
].reduce(
(acc, files) =>
Object.assign(acc, {
// eslint-disable-next-line sonarjs/no-duplicate-string
[files]: 'prettier --write',
}),
{},
)

if (isEslintAvailable) {
Object.assign(config, {
[`*.{${ESLINT_PRETTIER_FILES}}`]: 'eslint --cache -f friendly --fix',
[`*.{${ESLINT_PRETTIER_FILES}}`]: [
'eslint --cache -f friendly --fix',
...(useEslintPrettier ? [] : ['prettier --write']),
],
})
}

if (isStylelintAvailable) {
config[`*.{${STYLELINT_PRETTIER_FILES}}`] = 'stylelint --cache --fix'
config[`*.{${STYLELINT_PRETTIER_FILES}}`] = [
'stylelint --cache --fix',
...(useStylelintPrettier ? [] : ['prettier --write']),
]
}

if (isPkgAvailable('@pkgr/imagemin')) {
Expand Down
2 changes: 1 addition & 1 deletion packages/markuplint-config/package.json
Expand Up @@ -45,7 +45,7 @@
"markuplint": "^2.0.0"
},
"dependencies": {
"@markuplint/svelte-parser": "^2.2.3",
"@markuplint/svelte-parser": "^2.2.4",
"@markuplint/vue-parser": "^2.3.2",
"@markuplint/vue-spec": "^2.1.1",
"markuplint-angular-parser": "^1.1.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/postcss-config/package.json
Expand Up @@ -45,8 +45,8 @@
},
"dependencies": {
"@pkgr/utils": "^2.3.0",
"autoprefixer": "^10.4.7",
"cssnano": "^5.1.12",
"autoprefixer": "^10.4.8",
"cssnano": "^5.1.13",
"cssnano-preset-advanced": "^5.3.8",
"postcss-import": "^14.1.0",
"postcss-modules": "^4.3.1",
Expand Down
12 changes: 6 additions & 6 deletions packages/prettier-config/package.json
Expand Up @@ -42,14 +42,14 @@
},
"dependencies": {
"@1stg/config": "^0.2.0",
"@prettier/plugin-pug": "^2.1.1",
"@prettier/plugin-pug": "^2.2.0",
"@prettier/plugin-ruby": "^3.2.0",
"@prettier/plugin-xml": "^2.2.0",
"prettier-plugin-ini": "^1.0.0",
"prettier-plugin-pkg": "^0.16.0",
"prettier-plugin-properties": "^0.1.0",
"prettier-plugin-sh": "^0.12.6",
"prettier-plugin-stylus": "^0.0.1-beta.3",
"prettier-plugin-ini": "^1.1.0",
"prettier-plugin-pkg": "^0.16.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-toml": "^0.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-config/package.json
Expand Up @@ -52,7 +52,7 @@
"remark-preset-lint-consistent": "^5.1.1",
"remark-preset-lint-markdown-style-guide": "^5.1.2",
"remark-preset-lint-recommended": "^6.1.2",
"remark-preset-prettier": "^1.0.1",
"remark-preset-prettier": "^1.0.2",
"remark-validate-links": "^12.0.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config/package.json
Expand Up @@ -53,7 +53,7 @@
"postcss-scss": "^4.0.4",
"postcss-syntax": "^0.36.2",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^26.0.0",
"stylelint-config-standard": "^27.0.0",
"stylelint-high-performance-animation": "^1.6.0",
"stylelint-no-unsupported-browser-features": "^5.0.3",
"stylelint-prettier": "^2.0.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/stylelint-config/scss/base.js
Expand Up @@ -2,6 +2,12 @@ module.exports = {
customSyntax: 'postcss-scss',
plugins: ['stylelint-scss'],
rules: {
'annotation-no-unknown': [
true,
{
ignoreAnnotations: ['default'],
},
],
'at-rule-no-unknown': null,
'function-no-unknown': null,
'scss/at-each-key-value-single-line': true,
Expand Down
3 changes: 2 additions & 1 deletion packages/tsconfig/lib.json
Expand Up @@ -3,6 +3,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"outDir": "lib"
"outDir": "lib",
"removeComments": true
}
}