Skip to content

Commit

Permalink
Added config files
Browse files Browse the repository at this point in the history
  • Loading branch information
christophherr committed Mar 26, 2018
1 parent 9546b5a commit cbb0b08
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{.jshintrc,*.json,*.yml}]

This comment has been minimized.

Copy link
@GaryJones

GaryJones Apr 5, 2018

Contributor

http://develop.svn.wordpress.org/trunk/.editorconfig

JSON is now a tab of 4, so only YML needs to be specified here, if you're using it.

This comment has been minimized.

Copy link
@christophherr

christophherr Apr 5, 2018

Author Owner

Hmm... Makes me wonder where I got the .editorconfig from...

indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]

This comment has been minimized.

Copy link
@GaryJones

GaryJones Apr 5, 2018

Contributor

Pretty sure you won't have a wp-config-sample.php in this project :-)

This comment has been minimized.

Copy link
@christophherr

christophherr Apr 5, 2018

Author Owner

Oh well... :)

end_of_line = crlf
25 changes: 25 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Normalize text file line endings to LF on checkin
# and prevent conversion to CRLF on checkout.
* text=auto eol=lf

# Text files.
*.css text
*.dist text
*.js text
*.json text
*.md text
*.php text
*.po text
*.pot text
*.xml text

# Binary files.
*.eot binary
*.gif binary
*.ico binary
*.jpg binary
*.mo binary
*.png binary
*.ttf binary
*.woff binary
*.woff2 binary
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/node_modules/
/vendor/
package-lock.json
composer.lock

.vs-code/

This comment has been minimized.

Copy link
@GaryJones

GaryJones Apr 5, 2018

Contributor

Add these IDE-level ignores to your global .gitignore. These should not appear at the project-level.

This comment has been minimized.

Copy link
@christophherr

christophherr Apr 5, 2018

Author Owner

I didn't want to assume that everybody has set up a global .gitignore and that it included IDE-level ignores. If I had known the one for Atom off-hand, I'd included it as well.

.idea/

0 comments on commit cbb0b08

Please sign in to comment.