Skip to content

Commit 1d05698

Browse files
committed
feat(lint): added my linting configs
1 parent 2415dff commit 1d05698

35 files changed

+3504
-549
lines changed

.commitlintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@ivuorinen/commitlint-config"]
3+
}

.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@ivuorinen"]
3+
}

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## Handle line endings automatically for files detected as
1414
## text and leave all files detected as binary untouched.
1515
## This will handle all files NOT defined below.
16-
* text=auto
16+
* text=auto oel=lf
1717

1818
# Source code
1919
*.bash text eol=lf

.github/dependabot.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
updates:
33
# Maintain dependencies for GitHub Actions
4-
- package-ecosystem: "github-actions"
5-
directory: "/"
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
66
schedule:
7-
interval: "weekly"
7+
interval: 'weekly'

.github/renovate.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"local>ivuorinen/.github:renovate-config"
5-
]
3+
"extends": ["local>ivuorinen/.github:renovate-config"]
64
}

.github/tag-changelog-config.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ module.exports = {
1616
excludeTypes: [],
1717

1818
renderTypeSection: function (label, commits) {
19-
let text = `\n## ${ label }\n\n`
19+
let text = `\n## ${label}\n\n`
2020

21-
commits.forEach((commit) => {
22-
const scope = commit.scope ? `**${ commit.scope }:** ` : ''
23-
text += `- ${ scope }${ commit.subject }\n`
21+
commits.forEach(commit => {
22+
const scope = commit.scope ? `**${commit.scope}:** ` : ''
23+
text += `- ${scope}${commit.subject}\n`
2424
})
2525

2626
return text
2727
},
2828

2929
renderChangelog: function (release, changes) {
3030
const now = new Date()
31-
const d = now.toISOString().substring(0, 10);
32-
const header = `# ${ release } - ${ d }\n`;
31+
const d = now.toISOString().substring(0, 10)
32+
const header = `# ${release} - ${d}\n`
3333
return header + changes + '\n\n'
3434
},
3535
}

.github/workflows/changelog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
with:
1313
token: ${{ secrets.GITHUB_TOKEN }}
1414
config_file: .github/tag-changelog-config.js
15-
- name: "Echo results"
15+
- name: 'Echo results'
1616
id: output-changelog
1717
run: |
1818
echo "${{ steps.changelog.outputs.changes }}"

.github/workflows/new-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release Daily State # Workflow name displayed on GitHub
22
on:
33
workflow_dispatch: # Trigger manually
44
schedule:
5-
- cron: "30 20 * * *" # UTC is 2-3 hours behind Europe/Helsinki, my timezone
5+
- cron: '30 20 * * *' # UTC is 2-3 hours behind Europe/Helsinki, my timezone
66
permissions:
77
contents: write
88
jobs:

.github/workflows/update-submodules.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Update submodules
22
on:
3-
schedule: [{cron: 0 3 * * *}]
3+
schedule: [{ cron: 0 3 * * * }]
44
workflow_dispatch:
55
permissions:
66
contents: write

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ ssh/local.d/*
1414
!.gitkeep
1515
.env
1616
local/share/fonts/NerdFonts
17+
node_modules
1718

.ignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ config/cheat/cheatsheets/community/**
33
tools/dotbot/**
44
tools/dotbot-brew/**
55
tools/dotbot-include/**
6-
6+
node_modules

.markdownlint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "markdownlint/style/prettier",
2+
"extends": "@ivuorinen/markdownlint-config",
33
"code-block-style": {
44
"style": "fenced"
55
},

.markdownlintignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# only care about files that are under our control
2+
config/cheat/cheatsheets/community/*
3+
config/tmux/plugins/*
4+
tools/*
5+
node_modules/*
6+

.prettierignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.mypy_cache/*
2+
tools/dotbot*
3+
local/bin/antigen.zsh
4+
config/cheat/cheatsheets/community
5+
config/tmux/plugins/*
6+
lazy-lock.json
7+
Brewfile.lock.json
8+

.prettierrc.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
...require('@ivuorinen/prettier-config'),
3+
trailingComma: 'all',
4+
// Add custom options below:
5+
overrides: [
6+
{
7+
files: '*.md',
8+
options: {
9+
printWidth: 120,
10+
proseWrap: 'preserve',
11+
},
12+
},
13+
],
14+
}

.yamlfmt

-21
This file was deleted.

.yamlignore

-2
This file was deleted.

config/alacritty/alacritty.yml

+47-47
Original file line numberDiff line numberDiff line change
@@ -78,82 +78,82 @@ debug.render_timer: false
7878
# https://github.com/catppuccin/alacritty
7979
colors:
8080
primary:
81-
background: "#1E1E2E" # base
82-
foreground: "#CDD6F4" # text
81+
background: '#1E1E2E' # base
82+
foreground: '#CDD6F4' # text
8383
# Bright and dim foreground colors
84-
dim_foreground: "#CDD6F4" # text
85-
bright_foreground: "#CDD6F4" # text
84+
dim_foreground: '#CDD6F4' # text
85+
bright_foreground: '#CDD6F4' # text
8686

8787
# Cursor colors
8888
cursor:
89-
text: "#1E1E2E" # base
90-
cursor: "#F5E0DC" # rosewater
89+
text: '#1E1E2E' # base
90+
cursor: '#F5E0DC' # rosewater
9191
vi_mode_cursor:
92-
text: "#1E1E2E" # base
93-
cursor: "#B4BEFE" # lavender
92+
text: '#1E1E2E' # base
93+
cursor: '#B4BEFE' # lavender
9494

9595
# Search colors
9696
search:
9797
matches:
98-
foreground: "#1E1E2E" # base
99-
background: "#A6ADC8" # subtext0
98+
foreground: '#1E1E2E' # base
99+
background: '#A6ADC8' # subtext0
100100
focused_match:
101-
foreground: "#1E1E2E" # base
102-
background: "#A6E3A1" # green
101+
foreground: '#1E1E2E' # base
102+
background: '#A6E3A1' # green
103103
footer_bar:
104-
foreground: "#1E1E2E" # base
105-
background: "#A6ADC8" # subtext0
104+
foreground: '#1E1E2E' # base
105+
background: '#A6ADC8' # subtext0
106106

107107
# Keyboard regex hints
108108
hints:
109109
start:
110-
foreground: "#1E1E2E" # base
111-
background: "#F9E2AF" # yellow
110+
foreground: '#1E1E2E' # base
111+
background: '#F9E2AF' # yellow
112112
end:
113-
foreground: "#1E1E2E" # base
114-
background: "#A6ADC8" # subtext0
113+
foreground: '#1E1E2E' # base
114+
background: '#A6ADC8' # subtext0
115115

116116
# Selection colors
117117
selection:
118-
text: "#1E1E2E" # base
119-
background: "#F5E0DC" # rosewater
118+
text: '#1E1E2E' # base
119+
background: '#F5E0DC' # rosewater
120120

121121
# Normal colors
122122
normal:
123-
black: "#45475A" # surface1
124-
red: "#F38BA8" # red
125-
green: "#A6E3A1" # green
126-
yellow: "#F9E2AF" # yellow
127-
blue: "#89B4FA" # blue
128-
magenta: "#F5C2E7" # pink
129-
cyan: "#94E2D5" # teal
130-
white: "#BAC2DE" # subtext1
123+
black: '#45475A' # surface1
124+
red: '#F38BA8' # red
125+
green: '#A6E3A1' # green
126+
yellow: '#F9E2AF' # yellow
127+
blue: '#89B4FA' # blue
128+
magenta: '#F5C2E7' # pink
129+
cyan: '#94E2D5' # teal
130+
white: '#BAC2DE' # subtext1
131131

132132
# Bright colors
133133
bright:
134-
black: "#585B70" # surface2
135-
red: "#F38BA8" # red
136-
green: "#A6E3A1" # green
137-
yellow: "#F9E2AF" # yellow
138-
blue: "#89B4FA" # blue
139-
magenta: "#F5C2E7" # pink
140-
cyan: "#94E2D5" # teal
141-
white: "#A6ADC8" # subtext0
134+
black: '#585B70' # surface2
135+
red: '#F38BA8' # red
136+
green: '#A6E3A1' # green
137+
yellow: '#F9E2AF' # yellow
138+
blue: '#89B4FA' # blue
139+
magenta: '#F5C2E7' # pink
140+
cyan: '#94E2D5' # teal
141+
white: '#A6ADC8' # subtext0
142142

143143
# Dim colors
144144
dim:
145-
black: "#45475A" # surface1
146-
red: "#F38BA8" # red
147-
green: "#A6E3A1" # green
148-
yellow: "#F9E2AF" # yellow
149-
blue: "#89B4FA" # blue
150-
magenta: "#F5C2E7" # pink
151-
cyan: "#94E2D5" # teal
152-
white: "#BAC2DE" # subtext1
145+
black: '#45475A' # surface1
146+
red: '#F38BA8' # red
147+
green: '#A6E3A1' # green
148+
yellow: '#F9E2AF' # yellow
149+
blue: '#89B4FA' # blue
150+
magenta: '#F5C2E7' # pink
151+
cyan: '#94E2D5' # teal
152+
white: '#BAC2DE' # subtext1
153153

154154
indexed_colors:
155-
- { index: 16, color: "#FAB387" }
156-
- { index: 17, color: "#F5E0DC" }
155+
- { index: 16, color: '#FAB387' }
156+
- { index: 17, color: '#F5E0DC' }
157157

158158
# Visual Bell
159159
#
@@ -262,7 +262,7 @@ key_bindings:
262262
- { key: F10, chars: "\e[21~" }
263263
- { key: F11, chars: "\e[23~" }
264264
- { key: F12, chars: "\e[24~" }
265-
- { key: Back, chars: "" }
265+
- { key: Back, chars: '' }
266266
- { key: Back, mods: Alt, chars: "\e" }
267267
- { key: Insert, chars: "\e[2~" }
268268
- { key: Delete, chars: "\e[3~" }

config/cheat/conf.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ colorize: true
66
# Which 'chroma' colorscheme should be applied to the output?
77
# Options are available here:
88
# https://github.com/alecthomas/chroma/tree/master/styles
9-
style: "catppuccin"
9+
style: 'catppuccin'
1010
# Which 'chroma' "formatter" should be applied?
1111
# One of: "terminal", "terminal256", "terminal16m"
1212
formatter: terminal256
@@ -74,7 +74,6 @@ cheatpaths:
7474
path: ~/.dotfiles/config/cheat/cheatsheets/tldr
7575
tags: [tldr]
7676
readonly: true
77-
7877
# While it requires no configuration here, it's also worth noting that
7978
# cheat will automatically append directories named '.cheat' within the
8079
# current working directory to the 'cheatpath'. This can be very useful if

config/gh-changelog/config.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
check_for_updates: true
22
excluded_labels:
3-
- maintenance
4-
- dependencies
3+
- maintenance
4+
- dependencies
55
file_name: CHANGELOG.md
66
logger: spinner
77
no_color: false
88
sections:
9-
added:
10-
- feature
11-
- enhancement
12-
changed:
13-
- backwards-incompatible
14-
fixed:
15-
- bug
16-
- bugfix
17-
- documentation
9+
added:
10+
- feature
11+
- enhancement
12+
changed:
13+
- backwards-incompatible
14+
fixed:
15+
- bug
16+
- bugfix
17+
- documentation
1818
show_unreleased: true
1919
skip_entries_without_label: false

config/gh-dash/config.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
prSections:
2-
- title: My Pull Requests
3-
filters: is:open author:@me
4-
- title: Needs My Review
5-
filters: is:open review-requested:@me
6-
- title: Involved
7-
filters: is:open involves:@me -author:@me
2+
- title: My Pull Requests
3+
filters: is:open author:@me
4+
- title: Needs My Review
5+
filters: is:open review-requested:@me
6+
- title: Involved
7+
filters: is:open involves:@me -author:@me
88
issuesSections:
9-
- title: My Issues
10-
filters: is:open author:@me
11-
- title: Assigned
12-
filters: is:open assignee:@me
13-
- title: Involved
14-
filters: is:open involves:@me -author:@me
9+
- title: My Issues
10+
filters: is:open author:@me
11+
- title: Assigned
12+
filters: is:open assignee:@me
13+
- title: Involved
14+
filters: is:open involves:@me -author:@me
1515
defaults:
1616
preview:
1717
open: true
@@ -51,4 +51,4 @@ keybindings:
5151
prs: []
5252
repoPaths: {}
5353
pager:
54-
diff: ""
54+
diff: ''

config/gh/hosts.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
github.com:
2-
user: ivuorinen
3-
git_protocol: https
2+
user: ivuorinen
3+
git_protocol: https

0 commit comments

Comments
 (0)