mirror of
https://github.com/nordtheme/vim.git
synced 2026-09-10 07:36:23 -04:00
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:
parent
684c345b8a
commit
f725ac643a
16
.eslintignore
Normal file
16
.eslintignore
Normal 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
26
.eslintrc.js
Normal 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
2
.gitignore
vendored
|
|
@ -7,4 +7,4 @@
|
||||||
# +---------+
|
# +---------+
|
||||||
# + Node.js +
|
# + Node.js +
|
||||||
# +---------+
|
# +---------+
|
||||||
**/node_modules/
|
node_modules/
|
||||||
|
|
|
||||||
8
.husky/pre-commit
Executable file
8
.husky/pre-commit
Executable 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
8
.prettierignore
Normal 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
7
.remarkignore
Normal 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
13
.remarkrc.js
Normal 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
15
lint-staged.config.js
Normal 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
1371
package-lock.json
generated
File diff suppressed because it is too large
Load diff
30
package.json
30
package.json
|
|
@ -2,7 +2,11 @@
|
||||||
"name": "@nordtheme/vim",
|
"name": "@nordtheme/vim",
|
||||||
"version": "0.19.0",
|
"version": "0.19.0",
|
||||||
"description": "An arctic, north-bluish clean and elegant Vim theme",
|
"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",
|
"homepage": "https://www.nordtheme.com/ports/vim",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
@ -18,22 +22,30 @@
|
||||||
"npm": ">=7.7"
|
"npm": ">=7.7"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "run-s format:pretty",
|
"format": "run-s format:*",
|
||||||
"format:pretty": "prettier --write .",
|
"format:js": "eslint --fix .",
|
||||||
"lint": "run-s lint:md lint:pretty",
|
"format:pretty": "prettier --ignore-unknown --no-editorconfig --write \"**\"",
|
||||||
"lint:ci": "run-s lint:md lint:ci:*",
|
"lint": "run-s lint:js lint:md lint:pretty",
|
||||||
"lint:ci:pretty": "prettier --loglevel silent --check .",
|
"lint:ci": "run-s --continue-on-error lint:js lint:md lint:ci:pretty",
|
||||||
"lint:md": "remark --no-stdout .",
|
"lint:ci:pretty": "prettier --check --ignore-unknown --loglevel silent --no-editorconfig --no-error-on-unmatched-pattern \"**\"",
|
||||||
"lint:pretty": "prettier --check .",
|
"lint:js": "eslint .",
|
||||||
|
"lint:md": "remark --no-stdout . .github/",
|
||||||
|
"lint:pretty": "prettier --check --ignore-unknown --no-editorconfig \"**\"",
|
||||||
"prepare:husky": "husky install",
|
"prepare:husky": "husky install",
|
||||||
"prepare": "run-s prepare:*"
|
"prepare": "run-s prepare:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arcticicestudio/eslint-config-base": ">=0.11.0 <=1.0.0",
|
||||||
"@arcticicestudio/remark-preset-lint": ">=0.4.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",
|
"husky": "8.0.3",
|
||||||
"lint-staged": "13.1.2",
|
"lint-staged": "13.1.2",
|
||||||
"npm-run-all": "4.1.5",
|
"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"
|
"remark-cli": "11.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
prettier.config.js
Normal file
24
prettier.config.js
Normal 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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
Loading…
Reference in a new issue