Skip to content

Instantly share code, notes, and snippets.

@wmakeev
Last active January 7, 2018 13:55
Show Gist options
  • Save wmakeev/2a0ebe9da0676c6eda76f3c7ce27e933 to your computer and use it in GitHub Desktop.
Save wmakeev/2a0ebe9da0676c6eda76f3c7ce27e933 to your computer and use it in GitHub Desktop.
Node.js project environment bootstrap #env #config #eslint
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
{
"extends": "standard",
"env": {
"node": true,
"browser": true
},
"rules": {
"valid-jsdoc": ["warn"],
"max-len": ["error", 100],
"arrow-parens": 0,
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-shadow": ["error", {
"builtinGlobals": true, "hoist": "all", "allow": [
"cb", "done", "resolve", "reject", "name"
]
}],
"no-use-before-define": ["error", { "functions": true, "classes": true }],
"no-inner-declarations": [2, "both"],
"vars-on-top": 2
}
}
# Loacal temp files
_temp*
_old
# IDE
.idea
.c9revisions
*.sublime*
# Env
.env
# Dependency directories
node_modules
typings
# Local dependency directory
!src/node_modules
# Optional npm cache directory
.npm
# Logs
logs
*.log
npm-debug.log*
# Test code coverage
coverage
lib-cov
.nyc_output
#Other
*.DS_Store
language: node_js
node_js:
- '6'
script:
- npm run build
{
"editor.rulers": [100],
"editor.tabSize": 2,
"editor.renderIndentGuides": true,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true
}

Title

banner

badge badge

This is an example file with maximal choices selected.

This is a long description.

Table of Contents

Security

Any optional sections

Background

Any optional sections

Install

This module depends upon a knowledge of Markdown.

Any optional sections

Usage

Any optional sections

API

Any optional sections

More optional sections

Contribute

See the contribute file!

PRs accepted.

Small note: If editing the Readme, please conform to the standard-readme specification.

Any optional sections

License

MIT © Richard McRichface.

// https://github.com/Yomguithereal/baobab/blob/master/eslint.config.js
module.exports = {
extends: [
'@yomguithereal/eslint-config/es6'
].map(require.resolve),
rules: {
'no-loop-func': 0
}
};
# npm
npm i eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promiseeslint-plugin-standard -g
/*
* Name
* wmakeev/name
*
* Copyright (c) 2016, Vitaliy V. Makeev
* Licensed under MIT.
*/
module.exports = {}
# npm
npm i --save-dev blue-tape coveralls eslint eslint-config-standard eslint-plugin-promise eslint-plugin-standard nyc tap-spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment