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
This commit is contained in:
Sven Greb 2023-04-10 17:40:40 +02:00
parent 684c345b8a
commit f725ac643a
11 changed files with 1506 additions and 14 deletions

16
.eslintignore Normal file
View file

@ -0,0 +1,16 @@
# 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
!lint-staged.config.js
!prettier.config.js

26
.eslintrc.js Normal file
View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2016-present Sven Greb <development@svengreb.de>
* This source code is licensed under the MIT license found in the license file.
* References:
*/
/**
* 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/use/configure/#configuring-plugins
* @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
.gitignore vendored
View file

@ -7,4 +7,4 @@
# +---------+
# + Node.js +
# +---------+
**/node_modules/
node_modules/

8
.husky/pre-commit Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
# Copyright (c) 2016-present Sven Greb <development@svengreb.de>
# This source code is licensed under the MIT license found in the license file.
. "$(dirname "$0")/_/husky.sh"
npm exec lint-staged

8
.prettierignore Normal file
View file

@ -0,0 +1,8 @@
# 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 reformat) certain files and folders.
# See https://prettier.io/docs/en/ignore for more details.
.husky/_/
node_modules/

7
.remarkignore Normal file
View file

@ -0,0 +1,7 @@
# 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 when searching for files.
# See https://github.com/unifiedjs/unified-engine/blob/HEAD/doc/ignore.md for more details.
node_modules/

13
.remarkrc.js Normal file
View file

@ -0,0 +1,13 @@
/*
* 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 remark-lint.
* @see https://github.com/remarkjs/remark-lint
* @see https://remark.js.org
*/
module.exports = {
plugins: ["@arcticicestudio/remark-preset-lint"],
};

15
lint-staged.config.js Normal file
View file

@ -0,0 +1,15 @@
/*
* 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 lint-staged.
* @see https://github.com/okonet/lint-staged#configuration
*/
module.exports = {
"*.json": "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",
};

1371
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,11 @@
"name": "@nordtheme/vim",
"version": "0.19.0",
"description": "An arctic, north-bluish clean and elegant Vim theme",
"author": "Sven Greb <development@svengreb.de> (https://www.svengreb.de)",
"author": {
"name": "Sven Greb",
"email": "development@svengreb.de",
"url": "https://www.svengreb.de"
},
"homepage": "https://www.nordtheme.com/ports/vim",
"repository": {
"type": "git",
@ -18,22 +22,30 @@
"npm": ">=7.7"
},
"scripts": {
"format": "run-s format:pretty",
"format:pretty": "prettier --write .",
"lint": "run-s lint:md lint:pretty",
"lint:ci": "run-s lint:md lint:ci:*",
"lint:ci:pretty": "prettier --loglevel silent --check .",
"lint:md": "remark --no-stdout .",
"lint:pretty": "prettier --check .",
"format": "run-s format:*",
"format:js": "eslint --fix .",
"format:pretty": "prettier --ignore-unknown --no-editorconfig --write \"**\"",
"lint": "run-s lint:js lint:md lint:pretty",
"lint:ci": "run-s --continue-on-error lint:js lint:md lint:ci:pretty",
"lint:ci:pretty": "prettier --check --ignore-unknown --loglevel silent --no-editorconfig --no-error-on-unmatched-pattern \"**\"",
"lint:js": "eslint .",
"lint:md": "remark --no-stdout . .github/",
"lint:pretty": "prettier --check --ignore-unknown --no-editorconfig \"**\"",
"prepare:husky": "husky install",
"prepare": "run-s prepare:*"
},
"devDependencies": {
"@arcticicestudio/eslint-config-base": ">=0.11.0 <=1.0.0",
"@arcticicestudio/remark-preset-lint": ">=0.4.0 <1.0.0",
"eslint": "8.38.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-prettier": "4.2.1",
"husky": "8.0.3",
"lint-staged": "13.1.2",
"npm-run-all": "4.1.5",
"prettier": "^2.8.4",
"prettier": "2.8.7",
"prettier-plugin-sh": "0.12.8",
"remark-cli": "11.0.0"
}
}

24
prettier.config.js Normal file
View file

@ -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 Prettier.
* @see https://prettier.io/docs/en/configuration.html
* @see https://prettier.io/docs/en/options.html
* @see https://prettier.io/docs/en/options.html#parser
* @see https://prettier.io/docs/en/plugins.html
* @see https://github.com/un-ts/prettier/tree/master/packages/sh
*/
module.exports = {
printWidth: 160,
overrides: [
{
files: [".husky/*"],
options: {
parser: "sh",
},
},
],
};