This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { compose, withHandlers } from 'recompose' | |
import { animateScroll } from 'react-scroll' | |
const scrollToFirstError = errors => { | |
const errorFields = errors | |
// Using breakable for loop | |
for (let i = 0; i < errorFields.length; i++) { | |
const fieldName = `position-${errorFields[i]}` | |
// Checking if the marker exists in DOM | |
const elements = document.querySelectorAll(`[name="${fieldName}"]`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: ['commitlint-plugin-jira-rules'], | |
extends: ['jira'], | |
rules: { | |
'jira-task-id-separator': [0], | |
'jira-task-id-case': [0], | |
'jira-task-id-min-length': [0], | |
'jira-commit-status-case': [0], | |
'header-max-length': [0], | |
'jira-task-id-max-length': [0], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// package.json | |
{ | |
"name": "semantic_release_example", | |
"description": "example frontend app", | |
"version": "1.0.0", | |
"main": "index.js", | |
"repository": { | |
"type": "git", | |
"url": "https://gitlab.com/yyynnn/semantic_release_example.git" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-template-curly-in-string */ | |
const gitlabUrl = 'https://gitlab.com' | |
const gitlabApiPathPrefix = '/api/v4' | |
const assets = [ | |
{ path: 'index.js', label: 'JS distribution' } | |
] | |
const verifyConditions = [ | |
['@semantic-release/changelog'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- stage:release | |
# This version is important! See https://github.com/semantic-release/gitlab/issues/139 | |
image: node:12.14.1 | |
# This folder is cached between builds | |
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
cache: | |
paths: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
hooks: { | |
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS' | |
} | |
} |