Skip to content

Commit

Permalink
add .editorconfig and .gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielAmenou-R2net committed Nov 30, 2022
1 parent 68d3a7a commit 5d94184
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Batch Files
[*.{cmd,bat}]
end_of_line = crlf
21 changes: 21 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

# Git Line Endings
###################################################################################################

# Set default behaviour to automatically normalize line endings.
* text=auto

# Force use of LF line ending
*.js text eol=lf
*.jsx text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.json text eol=lf
*.md text eol=lf
*.css text eol=lf
*.scss text eol=lf

# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const libStylePlugin = (options = {}) => {
},

resolveId(source) {
console.log("source", source)
if (emittedCssFiles.some((currentFileId) => source.replace(process.cwd(), "").replace(/\\/g, "/").includes(currentFileId))) return {id: "./file1.js"}
},

Expand Down

0 comments on commit 5d94184

Please sign in to comment.