Commits (53)
......@@ -23,8 +23,10 @@ Build:
name: ${CI_PROJECT_PATH_SLUG}-${CI_PIPELINE_ID}-build
paths:
- dist/
- packages/*/dist/
script:
- npm run --if-present build
- npm exec lerna exec npm pack
Prettier:
stage: test
......
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
exec npx --no-install commitlint --edit "$1"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
exec npx --no-install lint-staged
# @html-validate/eslint-config-monorepo changelog
## [4.0.0](https://gitlab.com/html-validate/eslint-config/compare/v3.2.0...v4.0.0) (2021-02-28)
### ⚠ BREAKING CHANGES
- **deps:** Update dependency eslint-config-prettier to v8
### Dependency upgrades
- **deps:** Update dependency eslint-config-prettier to v8 ([ec03e87](https://gitlab.com/html-validate/eslint-config/commit/ec03e8766dbc1683183037aa47507db648da1e38))
## [3.2.0](https://gitlab.com/html-validate/eslint-config/compare/v3.1.0...v3.2.0) (2021-02-14)
### Features
- **@html-validate/eslint-config:** include `eslint-formatter-gitlab` ([2223e25](https://gitlab.com/html-validate/eslint-config/commit/2223e25add1e592b79b69c4bbe8d41af093a9d01))
## [3.1.0](https://gitlab.com/html-validate/eslint-config/compare/v3.0.1...v3.1.0) (2020-12-19)
### Features
- **@html-validate/eslint-config:** `--write` will install presets as needed ([1c44910](https://gitlab.com/html-validate/eslint-config/commit/1c4491023e165595e4a94222da92ce1d64763d19))
### [3.0.1](https://gitlab.com/html-validate/eslint-config/compare/v3.0.0...v3.0.1) (2020-12-19)
### Bug Fixes
- **@html-validate/eslint-config:** add missing file ([75ede61](https://gitlab.com/html-validate/eslint-config/commit/75ede61c1a8ab1b6f0b9535bd98dff2487a4aa28))
## [3.0.0](https://gitlab.com/html-validate/eslint-config/compare/v2.3.2...v3.0.0) (2020-12-19)
### ⚠ BREAKING CHANGES
......
......@@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "3.0.0"
"version": "4.0.0"
}
This diff is collapsed.
{
"name": "@html-validate/eslint-config-monorepo",
"version": "3.0.0",
"version": "4.0.0",
"private": true,
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
......@@ -23,18 +23,12 @@
"scripts": {
"build": "lerna run build",
"eslint": "eslint .",
"prepare": "git config commit.template ./node_modules/@html-validate/commitlint-config/gitmessage",
"prepare": "husky install && git config commit.template ./node_modules/@html-validate/commitlint-config/gitmessage",
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write .",
"semantic-release": "semantic-release",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@html-validate"
......@@ -52,24 +46,24 @@
"preset": "@html-validate/jest-config"
},
"devDependencies": {
"@commitlint/cli": "11.0.0",
"@html-validate/commitlint-config": "1.2.0",
"@html-validate/jest-config": "1.2.2",
"@commitlint/cli": "12.0.1",
"@html-validate/commitlint-config": "1.3.1",
"@html-validate/jest-config": "1.2.5",
"@html-validate/prettier-config": "1.1.0",
"@html-validate/semantic-release-monorepo-config": "1.2.3",
"@types/argparse": "2.0.4",
"@types/jest": "26.0.19",
"@types/nunjucks": "3.1.3",
"eslint": "7.15.0",
"husky": "4.3.6",
"@html-validate/semantic-release-monorepo-config": "1.2.4",
"@types/argparse": "2.0.5",
"@types/jest": "26.0.20",
"@types/nunjucks": "3.1.4",
"eslint": "7.20.0",
"husky": "5.1.1",
"jest": "26.6.3",
"lerna": "3.22.1",
"lint-staged": "10.5.3",
"lint-staged": "10.5.4",
"prettier": "2.2.1",
"semantic-release": "17.3.0",
"semantic-release-lerna": "0.1.2",
"ts-jest": "26.4.4",
"typescript": "4.1.3"
"semantic-release": "17.4.0",
"semantic-release-lerna": "0.1.4",
"ts-jest": "26.5.2",
"typescript": "4.2.2"
},
"engines": {
"node": ">= 10.0"
......@@ -82,7 +76,7 @@
},
"renovate": {
"extends": [
"@html-validate:proxy"
"@html-validate"
]
}
}
{
"name": "@html-validate/eslint-config-cypress",
"version": "3.0.0",
"version": "4.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "@html-validate/eslint-config-cypress",
"version": "3.0.0",
"version": "4.0.0",
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
"eslint",
......
{
"name": "@html-validate/eslint-config-jest",
"version": "3.0.0",
"version": "4.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "@html-validate/eslint-config-jest",
"version": "3.0.0",
"version": "4.0.0",
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
"eslint",
......
{
"name": "@html-validate/eslint-config-typescript",
"version": "3.0.0",
"version": "4.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "@html-validate/eslint-config-typescript",
"version": "3.0.0",
"version": "4.0.0",
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
"eslint",
......
{
"name": "@html-validate/eslint-config",
"version": "3.0.0",
"version": "4.0.0",
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
"eslint"
......@@ -31,8 +31,9 @@
},
"dependencies": {
"argparse": "^2.0.1",
"eslint-config-prettier": "^7.0.0",
"eslint-config-prettier": "^8.0.0",
"eslint-config-sidvind": "^1.3.2",
"eslint-formatter-gitlab": "^2.2.0",
"eslint-plugin-array-func": "^3.1.7",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.0.0",
......@@ -51,6 +52,6 @@
"access": "public"
},
"devDependencies": {
"prettier": "^2.2.1"
"prettier": "2.2.1"
}
}
......@@ -158,6 +158,15 @@ async function writeConfig(options: Options, features: Features): Promise<boolea
/* ensure dependencies are up-to-date */
await ensureDependency("eslint", options);
await ensureDependency("@html-validate/eslint-config", options);
if (features.typescript) {
await ensureDependency("@html-validate/eslint-config-typescript", options);
}
if (features.jest) {
await ensureDependency("@html-validate/eslint-config-jest", options);
}
if (features.cypress) {
await ensureDependency("@html-validate/eslint-config-cypress", options);
}
/* non-dryrun is always ok */
if (!options.dryRun) {
......