Skip to content

Commit ae7d8ca

Browse files
committed
style 💄(core): change style using prettier
Signed-off-by: Luis Mayta <luis@hadenlabs.com>
1 parent 11ce23d commit ae7d8ca

25 files changed

+123
-123
lines changed

‎.ci/linters/.eslintrc.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
module.exports = {
2-
parser: '@typescript-eslint/parser',
2+
parser: "@typescript-eslint/parser",
33
env: {
44
node: true,
55
es2021: true
66
},
77
parserOptions: {
88
ecmaVersion: 6,
9-
sourceType: 'module' // Allows for the use of imports
9+
sourceType: "module" // Allows for the use of imports
1010
},
1111
extends: [
12-
'plugin:prettier/recommended',
13-
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
14-
'plugin:import/warnings'
12+
"plugin:prettier/recommended",
13+
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
14+
"plugin:import/warnings"
1515
],
16-
plugins: ['@typescript-eslint'],
16+
plugins: ["@typescript-eslint"],
1717
rules: {
18-
'@typescript-eslint/semicolon': 'off',
19-
'@typescript-eslint/member-delimiter-style': 'off',
20-
'@typescript-eslint/naming-convention': 'warn',
21-
'@typescript-eslint/semi': 'off',
22-
'no-throw-literal': 'warn',
23-
curly: 'warn',
24-
eqeqeq: 'warn',
25-
semi: 'off'
18+
"@typescript-eslint/semicolon": "off",
19+
"@typescript-eslint/member-delimiter-style": "off",
20+
"@typescript-eslint/naming-convention": "warn",
21+
"@typescript-eslint/semi": "off",
22+
"no-throw-literal": "warn",
23+
curly: "warn",
24+
eqeqeq: "warn",
25+
semi: "off"
2626
},
27-
ignorePatterns: ['**/*.d.ts']
27+
ignorePatterns: ["**/*.d.ts"]
2828
}

‎.ci/linters/.goreleaser.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ archives:
3939
builds:
4040
- default
4141
wrap_in_directory: true
42-
name_template: '{{.ProjectName}}-{{.Os}}-{{.Arch}}'
42+
name_template: "{{.ProjectName}}-{{.Os}}-{{.Arch}}"
4343
format: tar.gz
4444
format_overrides:
4545
- goos: windows
@@ -52,15 +52,15 @@ archives:
5252
- systemd/*
5353
# https://goreleaser.com/snapshots/
5454
snapshot:
55-
name_template: 'dev@{{.ShortCommit}}'
55+
name_template: "dev@{{.ShortCommit}}"
5656

5757
# https://goreleaser.com/checksum/
5858
checksum:
59-
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
59+
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
6060
algorithm: sha256
6161
changelog:
6262
sort: asc
6363
filters:
6464
exclude:
65-
- '^docs:'
66-
- '^test:'
65+
- "^docs:"
66+
- "^test:"

‎.ci/linters/.lintstagedrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
const escape = require('shell-quote').quote
1+
const escape = require("shell-quote").quote
22

33
module.exports = {
4-
'*.{ts,tsx,js,json,css}': (filenames) => [
4+
"*.{ts,tsx,js,json,css}": (filenames) => [
55
...filenames.map((filename) => `prettier --check "${escape([filename])}"`),
66
...filenames.map((filename) => `git add "${filename}"`)
77
],
8-
'*.{ts,tsx,js,jsx}': ['eslint'],
9-
'*.{ts,tsx,css}': ['stylelint']
8+
"*.{ts,tsx,js,jsx}": ["eslint"],
9+
"*.{ts,tsx,css}": ["stylelint"]
1010
}

‎.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: publish package npm
33
on:
44
push:
55
tags:
6-
- '[0-9]+.[0-9]+.[0-9]+'
6+
- "[0-9]+.[0-9]+.[0-9]+"
77
# https://semver.org/ proper release tags, more or less
8-
- 'v[0-9]+.[0-9]+.[0-9]+'
8+
- "v[0-9]+.[0-9]+.[0-9]+"
99
# prerelease tags, more or less
10-
- 'v[0-9]+.[0-9]+.[0-9]+-*'
10+
- "v[0-9]+.[0-9]+.[0-9]+-*"
1111

1212
env:
1313
NODE_VERSION: 14.15.5

‎.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ repos:
100100
args:
101101
- --config=.ci/linters/.hadolint.yaml
102102
- repo: https://github.com/bridgecrewio/checkov.git
103-
rev: '2.2.111'
103+
rev: "2.2.111"
104104
hooks:
105105
- id: checkov
106106
args:
107107
- --config-file=.ci/linters/checkov.yml
108108
exclude: >
109109
(?x)^(
110110
.+\.terraform.*$|
111-
)$
111+
)$

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Add to `package.json` next section:
8888
<!-- Include: ./../disclaimer.md -->
8989
<!-- Include: ac:toc -->
9090

91-
### common
91+
### Common
9292

9393
## Help
9494

@@ -117,7 +117,7 @@ Using the given version number of `MAJOR.MINOR.PATCH`, we apply the following co
117117

118118
## Copyright
119119

120-
Copyright © 2018-2022 [Hadenlabs](https://hadenlabs.com)
120+
Copyright © 2018-2025 [Hadenlabs](https://hadenlabs.com)
121121

122122
## Trademarks
123123

‎Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ tasks:
103103
silent: true
104104

105105
summary:
106-
desc: 'Summary information'
106+
desc: "Summary information"
107107
cmds:
108108
- echo Go available {{.GO}}
109109
- echo Python available {{.PYTHON}}
@@ -112,7 +112,7 @@ tasks:
112112
silent: true
113113

114114
check:
115-
desc: 'Check all dependencies'
115+
desc: "Check all dependencies"
116116
deps:
117117
- python:check
118118
- changelog:check

‎commitlint.config.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
2+
extends: ["@commitlint/config-conventional"],
33
rules: {
4-
'header-max-length': [2, 'always', 80],
5-
'subject-case': [2, 'always', ['lower-case']],
6-
'type-enum': [
4+
"header-max-length": [2, "always", 80],
5+
"subject-case": [2, "always", ["lower-case"]],
6+
"type-enum": [
77
2,
8-
'always',
8+
"always",
99
[
10-
'build',
11-
'chore',
12-
'ci',
13-
'docs',
14-
'feat',
15-
'fix',
16-
'perf',
17-
'refactor',
18-
'revert',
19-
'style',
20-
'test',
21-
'sample'
10+
"build",
11+
"chore",
12+
"ci",
13+
"docs",
14+
"feat",
15+
"fix",
16+
"perf",
17+
"refactor",
18+
"revert",
19+
"style",
20+
"test",
21+
"sample"
2222
]
2323
]
2424
}

‎mkdocs.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
site_name: commitlint-config Documentation
2-
theme: 'material'
2+
theme: "material"
33
markdown_extensions:
44
- toc:
55
permalink: True
@@ -10,15 +10,15 @@ markdown_extensions:
1010
linenums: True
1111
extra:
1212
palette:
13-
primary: '#087da1'
14-
accent: '#00a889'
13+
primary: "#087da1"
14+
accent: "#00a889"
1515
font:
16-
text: 'Source Sans Pro'
16+
text: "Source Sans Pro"
1717

18-
repo_name: 'hadenlabs/commitlint-config'
19-
repo_url: 'https://github.com/hadenlabs/commitlint-config'
18+
repo_name: "hadenlabs/commitlint-config"
19+
repo_url: "https://github.com/hadenlabs/commitlint-config"
2020
copyright: 'Copyright © 2021 <a href="https://hadenlabs.com">hadenlabs</a>'
2121

2222
google_analytics:
23-
- ''
24-
- 'auto'
23+
- ""
24+
- "auto"

‎provision/generators/README.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ email:
1414
# logo: docs/logo.png
1515

1616
# License of this project
17-
license: 'LGPL-3.0'
17+
license: "LGPL-3.0"
1818

1919
# Canonical GitHub repo
2020
github_repo: hadenlabs/commitlint-config
@@ -60,8 +60,8 @@ usages:
6060
- docs/usage.md
6161

6262
installation:
63-
- 'docs/include/installation/yarn.md'
64-
- 'docs/include/installation/npm.md'
63+
- "docs/include/installation/yarn.md"
64+
- "docs/include/installation/npm.md"
6565

6666
examples:
67-
- 'docs/examples/common.md'
67+
- "docs/examples/common.md"

‎provision/task/changelog.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3'
1+
version: "3"
22

33
env:
44
TMP_CHANGELOG_FILENAME: TMP_CHANGELOG.md
@@ -16,14 +16,14 @@ tasks:
1616
run: once
1717
preconditions:
1818
- sh: command -v git-chglog
19-
msg: 'Please install git-chglog'
19+
msg: "Please install git-chglog"
2020

2121
check:go:
2222
desc: Exist go
2323
run: once
2424
preconditions:
2525
- sh: command -v go
26-
msg: 'Please install go'
26+
msg: "Please install go"
2727

2828
install:
2929
desc: install dependences git-chglog

‎provision/task/confluence.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://taskfile.dev
22

3-
version: '3'
3+
version: "3"
44

55
tasks:
66
default:
@@ -22,18 +22,18 @@ tasks:
2222
run: once
2323
preconditions:
2424
- sh: command -v docker
25-
msg: 'Please Install docker'
25+
msg: "Please Install docker"
2626

2727
check:vars:
2828
desc: Exist vars for mark
2929
run: once
3030
preconditions:
3131
- sh: test -v CONFLUENCE_BASE_URL
32-
msg: 'Please add var environment CONFLUENCE_BASE_URL'
32+
msg: "Please add var environment CONFLUENCE_BASE_URL"
3333
- sh: test -v CONFLUENCE_ACCESS_TOKEN
34-
msg: 'Please add var environment CONFLUENCE_ACCESS_TOKEN'
34+
msg: "Please add var environment CONFLUENCE_ACCESS_TOKEN"
3535
- sh: test -v CONFLUENCE_USER
36-
msg: 'Please add var environment CONFLUENCE_USER'
36+
msg: "Please add var environment CONFLUENCE_USER"
3737

3838
make:credentials:
3939
desc: run sync mark.

‎provision/task/docker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3'
1+
version: "3"
22

33
tasks:
44
check:
@@ -12,18 +12,18 @@ tasks:
1212
run: once
1313
preconditions:
1414
- sh: command -v docker
15-
msg: 'Please Install docker'
15+
msg: "Please Install docker"
1616

1717
check:vars:
1818
desc: Exist vars for docker
1919
run: once
2020
preconditions:
2121
- sh: test -v CI_REGISTRY_USER
22-
msg: 'Please add var environment CI_REGISTRY_USER'
22+
msg: "Please add var environment CI_REGISTRY_USER"
2323
- sh: test -v CI_REGISTRY_PASSWORD
24-
msg: 'Please add var environment CI_REGISTRY_PASSWORD'
24+
msg: "Please add var environment CI_REGISTRY_PASSWORD"
2525
- sh: test -v CI_REGISTRY
26-
msg: 'Please add var environment CI_REGISTRY'
26+
msg: "Please add var environment CI_REGISTRY"
2727

2828
login:
2929
silent: true

‎provision/task/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3'
1+
version: "3"
22

33
tasks:
44
check:
@@ -15,28 +15,28 @@ tasks:
1515
run: once
1616
preconditions:
1717
- sh: command -v python
18-
msg: 'Please Install python'
18+
msg: "Please Install python"
1919

2020
check:pipenv:
2121
desc: Exist Pipenv
2222
run: once
2323
preconditions:
2424
- sh: command -v pipenv
25-
msg: 'Please Install pipenv'
25+
msg: "Please Install pipenv"
2626

2727
check:mkdocs:
2828
desc: Exist mkdocs
2929
run: once
3030
preconditions:
3131
- sh: test "pipenv run command -v mkdocs"
32-
msg: 'Please Install mkdocs'
32+
msg: "Please Install mkdocs"
3333

3434
check:grip:
3535
desc: Exist grip
3636
run: once
3737
preconditions:
3838
- sh: test "pipenv run command -v grip"
39-
msg: 'Please Install grip'
39+
msg: "Please Install grip"
4040

4141
show:
4242
desc: Show grip readme.

‎provision/task/git.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3'
1+
version: "3"
22

33
tasks:
44
check:
@@ -12,7 +12,7 @@ tasks:
1212
run: once
1313
preconditions:
1414
- sh: command -v git
15-
msg: 'Please Install git'
15+
msg: "Please Install git"
1616

1717
setup:
1818
desc: Setup git.

0 commit comments

Comments
 (0)