Skip to content

Commit

Permalink
More nordtheme organization migration adapations
Browse files Browse the repository at this point in the history
To align with the latest Nord project standards more changes have been
made for as part of the `nordtheme` organization migration.

nordtheme/nord#185
  • Loading branch information
svengreb committed Apr 10, 2023
1 parent 246f4df commit c45a282
Show file tree
Hide file tree
Showing 119 changed files with 3,423 additions and 874 deletions.
17 changes: 17 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2016-present Sven Greb <development@svengreb.de>
# This source code is licensed under the MIT license found in the license file.

# Path match pattern to ignore (i.e. not lint) certain files and folders.
# References:
# 1. https://eslint.org/docs/latest/use/configure/ignore

node_modules/

# Explicitly include specific "dotfiles".
# ESLint automatically applies ignore pattern for "dotfiles" by default to prevent accidentally lint over paths like
# `.git` or any other critical paths.
!**/.eslintrc.js
!.remarkrc.js
!.stylelintrc.js
!lint-staged.config.js
!prettier.config.js
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) 2016-present Sven Greb <development@svengreb.de>
* This source code is licensed under the MIT license found in the license file.
*/

/**
* Configurations for ESLint.
* @see https://eslint.org/docs/latest/use/configure
* @see https://eslint.org/docs/latest/use/configure/#using-configuration-files
* @see https://eslint.org/docs/latest/use/configure/#specifying-environments
* @see https://eslint.org/docs/latest/rules
*/
module.exports = {
root: true,
extends: ["@arcticicestudio/eslint-config-base", "@arcticicestudio/eslint-config-base/prettier"],
overrides: [
{
files: ["*.js"],
rules: {
"capitalized-comments": "off",
},
},
],
};
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# +---------+
# + Node.js +
# +---------+
**/node_modules/
node_modules/
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
# Path match pattern to ignore (i.e. not reformat) certain files and folders.
# See https://prettier.io/docs/en/ignore for more details.

**/node_modules/*
# +--------+
# + Binary +
# +--------+
# *-- Affinity Designer 2 --*
**/*.afdesign binary

**/*.jpg binary
**/*.png binary

# +---------+
# + Node.js +
# +---------+
node_modules/
3 changes: 2 additions & 1 deletion .remarkignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

# Important: Directories must have no "asterisk" wildcard character at the path end,
# otherwise the pattern won't match!
**/node_modules/

node_modules/
!static/*.md
6 changes: 4 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @see https://github.com/okonet/lint-staged#configuration
*/
module.exports = {
"*.{js,md}": "prettier --check",
"*.md": ["remark --no-stdout", "prettier --check"],
"*.{json,svg}": "prettier --check --ignore-unknown --no-editorconfig",
"*.js": ["eslint", "prettier --check --ignore-unknown --no-editorconfig"],
"*.md": ["remark --no-stdout", "prettier --check --ignore-unknown --no-editorconfig"],
".husky/pre-*": "prettier --check --ignore-unknown --no-editorconfig",
};
Loading

0 comments on commit c45a282

Please sign in to comment.