Skip to content

Commit 6c1532f

Browse files
committed
More nordtheme organization migration adapations
To align with the latest Nord project standards more changes have been made for as part of the `nordtheme` organization migration. GH-79
1 parent e66be97 commit 6c1532f

File tree

11 files changed

+1549
-118
lines changed

11 files changed

+1549
-118
lines changed

.eslintignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) 2016-present Sven Greb <[email protected]>
2+
# This source code is licensed under the MIT license found in the license file.
3+
4+
# Path match pattern to ignore (i.e. not lint) certain files and folders.
5+
# References:
6+
# 1. https://eslint.org/docs/latest/use/configure/ignore
7+
8+
node_modules/
9+
10+
# Explicitly include specific "dotfiles".
11+
# ESLint automatically applies ignore pattern for "dotfiles" by default to prevent accidentally lint over paths like
12+
# `.git` or any other critical paths.
13+
!**/.eslintrc.js
14+
!.remarkrc.js
15+
!lint-staged.config.js
16+
!prettier.config.js

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2016-present Sven Greb <[email protected]>
3+
* This source code is licensed under the MIT license found in the license file.
4+
* References:
5+
*/
6+
7+
/**
8+
* Configurations for ESLint.
9+
* @see https://eslint.org/docs/latest/use/configure
10+
* @see https://eslint.org/docs/latest/use/configure/#using-configuration-files
11+
* @see https://eslint.org/docs/latest/use/configure/#specifying-environments
12+
* @see https://eslint.org/docs/latest/use/configure/#configuring-plugins
13+
* @see https://eslint.org/docs/latest/rules
14+
*/
15+
module.exports = {
16+
root: true,
17+
extends: ["@arcticicestudio/eslint-config-base", "@arcticicestudio/eslint-config-base/prettier"],
18+
overrides: [
19+
{
20+
files: ["*.js"],
21+
rules: {
22+
"capitalized-comments": "off",
23+
},
24+
},
25+
],
26+
};

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
# +---------+
88
# + Node.js +
99
# +---------+
10-
**/node_modules/
10+
node_modules/

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
# Path match pattern to ignore (i.e. not reformat) certain files and folders.
55
# See https://prettier.io/docs/en/ignore for more details.
66

7-
**/node_modules/*
7+
.husky/_/
8+
node_modules/

.remarkignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Path match pattern to ignore when searching for files.
55
# See https://github.com/unifiedjs/unified-engine/blob/HEAD/doc/ignore.md for more details.
66

7-
**/node_modules/*
7+
node_modules/

lint-staged.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* @see https://github.com/okonet/lint-staged#configuration
99
*/
1010
module.exports = {
11-
"*.{conf,js,md}": "prettier --check",
12-
"*.md": ["remark --no-stdout", "prettier --check"],
11+
"*.{json,tmux}": "prettier --check --ignore-unknown --no-editorconfig",
12+
"*.js": ["eslint", "prettier --check --ignore-unknown --no-editorconfig"],
13+
"*.md": ["remark --no-stdout", "prettier --check --ignore-unknown --no-editorconfig"],
14+
".husky/pre-*": "prettier --check --ignore-unknown --no-editorconfig",
1315
};

nord.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE="src/nord-status-content-no-patche
88
NORD_TMUX_STATUS_CONTENT_OPTION="@nord_tmux_show_status_content"
99
NORD_TMUX_STATUS_CONTENT_DATE_FORMAT="@nord_tmux_date_format"
1010
NORD_TMUX_NO_PATCHED_FONT_OPTION="@nord_tmux_no_patched_font"
11-
_current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
11+
_current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1212

1313
__cleanup() {
1414
unset -v NORD_TMUX_COLOR_THEME_FILE NORD_TMUX_VERSION

0 commit comments

Comments
 (0)