summaryrefslogtreecommitdiff
path: root/.editorconfig
AgeCommit message (Collapse)Author
2018-10-01tools: unify .editorconfig rules for 2-spaceRoman Reiss
The `doc` directory had not had any editorconfig rules applied which can lead to tab indentation in editors. This unifies the rules to use 2-space as the default. Additionally, all rules are now sorted alphabetically. PR-URL: https://github.com/nodejs/node/pull/23163 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
2018-04-01tools: apply editorconfig rules to tools alsoTobias Nießen
PR-URL: https://github.com/nodejs/node/pull/19521 Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2018-04-01tools: remove src dir from JS editorconfig ruleTobias Nießen
The src directory does not contain any JavaScript files, so there is no need to match it. PR-URL: https://github.com/nodejs/node/pull/19521 Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2018-01-11tools: move eslint from tools to tools/node_modulesMichaël Zasso
This is required because we need to add the babel-eslint dependency and it has to be able to resolve "eslint". babel-eslint is required to support future ES features such as async iterators and import.meta. Refs: https://github.com/nodejs/node/pull/17755 PR-URL: https://github.com/nodejs/node/pull/17820 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2016-11-21tools: disallow trailing whitespace for markdownSam Roberts
markdown had a dispensation because 2 or more trailing spaces triggers a new paragraph. There are no examples of that usage in Node, all trailing whitespace found were mistakes, and the dispensation is now removed. See: https://github.com/nodejs/node/pull/9620 PR-URL: https://github.com/nodejs/node/pull/9676 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2016-11-04tools: enable final newline in .editorconfigRoman Reiss
PR-URL: https://github.com/nodejs/node/pull/9410 Fixes: https://github.com/nodejs/node/issues/9402 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
2015-12-16tools: add .editorconfigronkorving
This helps editors (see http://editorconfig.org/#download) to apply the right indentation and encoding rules to files by default. PR-URL: https://github.com/nodejs/node/pull/2993 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>