Skip to content

Commit f725ac6

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-335
1 parent 684c345 commit f725ac6

11 files changed

+1602
-110
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/

.husky/pre-commit

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
# Copyright (c) 2016-present Sven Greb <[email protected]>
4+
# This source code is licensed under the MIT license found in the license file.
5+
6+
. "$(dirname "$0")/_/husky.sh"
7+
8+
npm exec lint-staged

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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 reformat) certain files and folders.
5+
# See https://prettier.io/docs/en/ignore for more details.
6+
7+
.husky/_/
8+
node_modules/

.remarkignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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 when searching for files.
5+
# See https://github.com/unifiedjs/unified-engine/blob/HEAD/doc/ignore.md for more details.
6+
7+
node_modules/

.remarkrc.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
*/
5+
6+
/**
7+
* Configurations for remark-lint.
8+
* @see https://github.com/remarkjs/remark-lint
9+
* @see https://remark.js.org
10+
*/
11+
module.exports = {
12+
plugins: ["@arcticicestudio/remark-preset-lint"],
13+
};

lint-staged.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
*/
5+
6+
/**
7+
* Configurations for lint-staged.
8+
* @see https://github.com/okonet/lint-staged#configuration
9+
*/
10+
module.exports = {
11+
"*.json": "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",
15+
};

0 commit comments

Comments
 (0)