Skip to content

Instantly share code, notes, and snippets.

@dasheck0
Last active April 3, 2020 12:19
Show Gist options
  • Save dasheck0/d3163b847827cfc8b662c0971bde5079 to your computer and use it in GitHub Desktop.
Save dasheck0/d3163b847827cfc8b662c0971bde5079 to your computer and use it in GitHub Desktop.
[NPM Project boilerplate files] These are some npm boilerplate project files I use #npm #boilerplate #template
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = 120
test
scripts
documentation
node_modules
*/generated
commitlint.config.js
{
"extends": "nanogiants"
}
module.exports = {
rules: {
'body-leading-blank': [1, 'always'],
'footer-leading-blank': [1, 'always'],
'header-max-length': [2, 'always', 70],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case']
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'feat',
'fix',
'docs',
'style',
'refactor',
'test',
'chore'
]
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment