Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nordtheme organization migration #72

Merged
merged 1 commit into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
# Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
# Copyright (C) 2018-present Sven Greb <[email protected]>
#
# Project: Nord Docs
# Repository: https://github.com/arcticicestudio/nord-docs
# License: MIT
# Copyright (c) 2016-present Sven Greb <[email protected]>
# This source code is licensed under the MIT license found in the license file.

# Configurations for EditorConfig.
# See https://editorconfig.org/#file-format-details for more details.

# +--------------------+
# + Base Configuration +
# +--------------------+
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
max_line_length = 160
trim_trailing_whitespace = true

# +++++++++++++
# +-----------+
# + Languages +
# +++++++++++++
# +++ Markdown +++
# +-----------+
# +--- Markdown ---+
[*.{md}]
max_line_length = off
trim_trailing_whitespace = false
15 changes: 15 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2016-present Sven Greb <[email protected]>
# 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
!prettier.config.js
96 changes: 24 additions & 72 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,79 +1,31 @@
/*
* Copyright (C) 2016-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2016-present Sven Greb <[email protected]>
*
* Project: Nord Atom Syntax
* Repository: https://github.com/arcticicestudio/nord-atom-syntax
* License: MIT
* References:
* http://eslint.org/docs/rules
* http://eslint.org/docs/user-guide/configuring
* http://eslint.org/docs/user-guide/configuring#using-configuration-files
* http://eslint.org/docs/user-guide/configuring#specifying-environments
* http://eslint.org/docs/user-guide/configuring.html#specifying-globals
* Copyright (c) 2016-present Sven Greb <[email protected]>
* 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 = {
"env": {
"node": true,
"es6": true,
"browser": true,
"jasmine": true,
"atomtest": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {}
root: true,
env: {
jasmine: true,
atomtest: true,
},
"plugins": [],
"extends": [
"eslint:recommended"
],
"globals": {
"atom": true
globals: {
atom: true,
},
"rules": {
// Style Guide
"array-bracket-spacing": ["error", "never"],
"comma-dangle": ["error", "never"],
"curly":["error", "all"],
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-duplicate-imports": "error",
"no-floating-decimal": "error",
"no-tabs": "error",
"no-trailing-spaces": ["error", {
"skipBlankLines": false
}],
"no-var": "error",
"no-whitespace-before-property": "error",
"quotes": ["error", "double"],
"semi": ["error", "always"],
// Error Prevention
"no-cond-assign": ["error", "always"],
"no-console": "off",
// Code Performance
"global-require": "warn",
// Documentation
"require-jsdoc": ["warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": true,
"ArrowFunctionExpression": false
}
}],
"valid-jsdoc": ["error", {
"prefer": {
"arg": "param",
"argument": "param",
"class": "constructor",
"virtual": "abstract"
extends: ["@arcticicestudio/eslint-config-base", "@arcticicestudio/eslint-config-base/prettier"],
overrides: [
{
files: ["*.js"],
rules: {
"capitalized-comments": "off",
},
"requireParamDescription": true,
"requireReturnDescription": true
}]
}
}
},
],
};
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2016-present Sven Greb <[email protected]>
# This source code is licensed under the MIT license found in the license file.

# Configuration to define attributes per path.
#
# References:
# 1. https://git-scm.com/docs/gitattributes
# 2. https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Keyword-Expansion

# Automatically perform line feed (LF) normalization for files detected as text and
# leave all files detected as binary untouched.
* text=auto eol=lf

# +--------+
# + Assets +
# +--------+
*.ai binary
*.png binary
14 changes: 14 additions & 0 deletions .github/codeowners
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) 2016-present Sven Greb <[email protected]>
# This source code is licensed under the MIT license found in the license file.

# Configuration for the GitHub feature to automatically request reviews from the code owners
# when a pull request changes any owned files.
#
# References:
# 1. https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location
# 2. https://github.com/blog/2392-introducing-code-owners

# +----------------------+
# + Core Team Code Owner +
# +----------------------+
* @svengreb
17 changes: 4 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
# Copyright (C) 2016-present Arctic Ice Studio <[email protected]>
# Copyright (C) 2016-present Sven Greb <[email protected]>
#
# Project: Nord Atom UI
# Repository: https://github.com/arcticicestudio/nord-atom-ui
# License: MIT
# Copyright (c) 2016-present Sven Greb <[email protected]>
# This source code is licensed under the MIT license found in the license file.

# +------+
# + Logs +
# +------+
logs/
**/*.log
npm-debug.log*
# Path match pattern to intentionally ignore untracked files and directories.
# See https://git-scm.com/docs/gitignore for more details.

# +---------+
# + Node.js +
# +---------+
**/node_modules/
.npm/
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# Copyright (c) 2016-present Sven Greb <[email protected]>
# This source code is licensed under the MIT license found in the license file.

. "$(dirname "$0")/_/husky.sh"

npm exec lint-staged
8 changes: 8 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2016-present Sven Greb <[email protected]>
# This source code is licensed under the MIT license found in the license file.

# Configuration for the Git mail mapping feature to coalesce together commits by the same person in the shortlog,
# where their name and/or email address was spelled differently or has been changed.
# See https://git-scm.com/docs/git-shortlog#_mapping_authors for more details.
Sven Greb <[email protected]>
Sven Greb <[email protected]> <[email protected]>
18 changes: 18 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2016-present Sven Greb <[email protected]>
# This source code is licensed under the MIT license found in the license file.

# Configurations for npm.
# See https://docs.npmjs.com/cli/v7/configuring-npm/npmrc for more details.

# Only use a lockfile for single-consumer projects, like applications, but not for multi-consumer projects like
# libraries.
# It helps to pin dependency versions, improves the security through integrity checksums, prevents possible errors
# caused by updated transitive dependencies and allows to get deterministic build results, but it can hide problems in
# multi-consumer projects when any later versions of a used dependency, or its transitive dependencies, is not
# compatible with the own project anymore.
package-lock=true

# Do not resolve to the latest minor and patch updates.
# Automatically pin dependencies to exact versions instead of resolving to latest minor and patch updates.
# This prevents possible errors caused by updated transitive dependencies.
save-exact=true
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2016-present Sven Greb <[email protected]>
# 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.

**/node_modules/*
7 changes: 7 additions & 0 deletions .remarkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2016-present Sven Greb <[email protected]>
# 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 changes: 13 additions & 0 deletions .remarkrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) 2016-present Sven Greb <[email protected]>
* 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"],
};
37 changes: 19 additions & 18 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
/*
* Copyright (C) 2016-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2016-present Sven Greb <[email protected]>
*
* Project: Nord Atom Syntax
* Repository: https://github.com/arcticicestudio/nord-atom-syntax
* License: MIT
* References:
* https://stylelint.io
* https://stylelint.io/user-guide/rules
* https://github.com/stylelint/stylelint-config-standard
* Copyright (c) 2016-present Sven Greb <[email protected]>
* This source code is licensed under the MIT license found in the license file.
*/

/**
* Configurations for Stylelint.
* @see https://stylelint.io
* @see https://stylelint.io/user-guide/rules
* @see https://github.com/stylelint/stylelint-config-standard
*/
module.exports = {
"extends": "stylelint-config-standard",
"rules": {
extends: "stylelint-config-standard",
rules: {
"color-hex-case": "upper",
"comment-empty-line-before": null,
"selector-type-no-unknown": [true, {
"ignoreTypes": ["/^atom-/"]
}],
"selector-pseudo-element-colon-notation": "single"
}
}
"selector-type-no-unknown": [
true,
{
ignoreTypes: ["/^atom-/"],
},
],
"selector-pseudo-element-colon-notation": "single",
},
};
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Copyright (C) 2016-present Arctic Ice Studio <development@arcticicestudio.com>
# Copyright (C) 2016-present Sven Greb <[email protected]>
# Copyright (c) 2016-present Sven Greb <development@svengreb.de>
# This source code is licensed under the MIT license found in the license file.

# Project: Nord Atom Syntax
# Repository: https://github.com/arcticicestudio/nord-atom-syntax
# License: MIT
# Travis CI configuration.
# References:
# https://docs.travis-ci.com
# https://github.com/atom/ci
# 1. https://docs.travis-ci.com/user/languages/javascript-with-nodejs
# 2. https://github.com/atom/ci

language: generic
dist: trusty
Expand Down Expand Up @@ -39,8 +37,8 @@ before_install:
- rm -rf ./node_modules
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
nvm install $LINUX_NVM_NODE_VERSION;
nvm use $LINUX_NVM_NODE_VERSION;
nvm install $LINUX_NVM_NODE_VERSION;
nvm use $LINUX_NVM_NODE_VERSION;
fi
before_script:
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
Expand Down
Loading