1 | # This file is provided by the package "node-editorconfig":
|
2 | # https://github.com/webextensions/node-editorconfig
|
3 | # https://www.npmjs.com/package/node-editorconfig
|
4 | #
|
5 | # References:
|
6 | # http://editorconfig.org/ (Official Site)
|
7 | # http://editorconfig.org/#download (Plugins)
|
8 | # http://davidensinger.com/2013/07/why-i-use-editorconfig/ (Reference)
|
9 | # https://github.com/eslint/eslint/blob/master/.editorconfig (Sample file)
|
10 |
|
11 | # No .editorconfig files above the root directory
|
12 | root = true
|
13 |
|
14 | [*]
|
15 | charset = utf-8
|
16 | end_of_line = lf
|
17 | indent_size = 4
|
18 | indent_style = space
|
19 | insert_final_newline = true
|
20 | trim_trailing_whitespace = true
|
21 |
|
22 | [{.nvmrc,*.svg}]
|
23 | insert_final_newline = false
|
24 |
|
25 | [Makefile]
|
26 | indent_style = tab
|
27 |
|
28 | [{package.json,package-lock.json,bower.json,nodemon.json,.babelrc,.travis.yml}]
|
29 | indent_size = 2
|
30 |
|
31 | [{*.markdown,*.md,*.mdown,*.mkd,*.mkdn,*.text}] # https://superuser.com/questions/249436/file-extension-for-markdown-files/285878#285878
|
32 | trim_trailing_whitespace = false # https://stackoverflow.com/editing-help#linebreaks
|
33 |
|
34 | [node_modules/**]
|
35 | charset = unset
|
36 | end_of_line = unset
|
37 | indent_size = unset
|
38 | indent_style = unset
|
39 | insert_final_newline = false
|
40 | trim_trailing_whitespace = false
|