Skip to content

Commit 508c1b7

Browse files
committed
Add .editorconfig, .gitattributes and .gitignore file
1 parent 71fdef7 commit 508c1b7

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

.editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# https://editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_style = space
11+
indent_size = 4
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
[*.{js,yml,yaml}]
16+
indent_style = space
17+
indent_size = 2
18+
19+
[*.{bat,cmd,ps1}]
20+
end_of_line = crlf
21+
22+
[*.md]
23+
trim_trailing_whitespace = false

.gitattributes

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Auto detect text files and perform LF normalization
2+
* text eol=lf
3+
* text=auto
4+
.* text eol=lf
5+
.* text=auto
6+
7+
# Show language aware diffs
8+
*.css diff=css
9+
*.htm diff=html
10+
*.html diff=html
11+
*.php diff=php
12+
13+
# Declare files that are binary
14+
*.pdf binary
15+
*.bmp binary
16+
*.gif binary
17+
*.ico binary
18+
*.jpg binary
19+
*.jpeg binary
20+
*.png binary
21+
*.tif binary
22+
*.tiff binary
23+
*.wbmp binary
24+
*.webp binary
25+
*.mp3 binary
26+
*.ogg binary
27+
*.mov binary
28+
*.mp4 binary
29+
*.mpeg binary
30+
*.webm binary
31+
*.tar binary
32+
*.zip binary
33+
*.phar binary
34+
35+
# Declare files that must have CRLF line endings
36+
*.bat text eol=crlf
37+
*.cmd text eol=crlf
38+
*.ps1 text eol=crlf
39+
40+
# Exclude unused files in archive
41+
.gitattributes export-ignore
42+
.gitignore export-ignore
43+
.editorconfig export-ignore
44+
.scrutinizer.yml export-ignore
45+
.travis.yml export-ignore
46+
.github export-ignore
47+
phpunit.xml.dist export-ignore
48+
phpcs.xml.dist export-ignore
49+
phpdoc.xml.dist export-ignore
50+
box.json.dist export-ignore
51+
tests export-ignore

.gitignore

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# IDE & System related files
2+
Thumbs.db
3+
Desktop.ini
4+
.buildpath
5+
.project
6+
.settings
7+
.DS_Store
8+
.idea
9+
.vscode
10+
11+
# Builds
12+
/build/
13+
14+
# Composer dependencies
15+
/vendor/
16+
17+
# Composer lock file
18+
composer.lock
19+
20+
# PHAR files
21+
*.phar
22+
23+
# PHPUnit configuration
24+
phpunit.xml
25+
26+
# PHP CodeSniffer configuration
27+
phpcs.xml
28+
29+
# phpDocumentor configuration
30+
phpdoc.xml
31+
32+
# Not ignore .gitkeep files
33+
!.gitkeep

0 commit comments

Comments
 (0)