Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 3266749

Browse files
committed
feat: add default .gitattributes
1 parent 4950578 commit 3266749

File tree

5 files changed

+52
-1
lines changed

5 files changed

+52
-1
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* text=auto
1+
* text=auto eol=lf
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

packages/create-nuxt-app/lib/saofile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ module.exports = {
103103
files: '*',
104104
filters: {
105105
'_.eslintrc.js': 'linter.includes("eslint")',
106+
'_.gitattributes': 'vcs.includes("git")',
106107
'_.prettierrc': 'linter.includes("prettier")',
107108
'_jsconfig.json': 'devTools.includes("jsconfig.json")',
108109
'tsconfig.json': 'language.includes("ts")',
@@ -121,6 +122,7 @@ module.exports = {
121122
'_package.json': 'package.json',
122123
'_.prettierrc': '.prettierrc',
123124
'_.eslintrc.js': '.eslintrc.js',
125+
'_.gitattributes': '.gitattributes',
124126
'_jsconfig.json': 'jsconfig.json',
125127
'_stylelint.config.js': 'stylelint.config.js',
126128
'_commitlint.config.js': 'commitlint.config.js',

0 commit comments

Comments
 (0)