Skip to content

Commit

Permalink
Merge pull request stakwork#865 from stakwork/revert-864-fix/windows-…
Browse files Browse the repository at this point in the history
…line-endings-config

Revert "🔧 Fix: Standardize Line Endings for Cross-Platform Development"
  • Loading branch information
humansinstitute authored Jan 4, 2025
2 parents 60e6a34 + 10a4dde commit 47cf11e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 34 deletions.
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

3 changes: 1 addition & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"tabWidth": 2,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none",
"endOfLine": "lf"
"trailingComma": "none"
}
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,6 @@ If you wish to run only the frontend, follow these steps:
- `yarn install` to install the dependencies
- `yarn start` to run the frontend locally

## Fix Line Endings for Windows Development 🛠️

If you're developing on Windows and encounter line-ending issues with Prettier, you have two options:

## Option 1: Fix Specific Files

### Reset the Git index
git rm --cached -r .
git reset --hard

### Configure Git to handle line endings
git config --global core.autocrlf false
git config --global core.eol lf

### Run Prettier to fix formatting
- Example:
npx prettier --config .prettierrc.json -w src/store/interface.ts

### Option 2: Fix All Files (Full Reset)
If you want to reset and fix all files in the project, you can use the provided script:

yarn fix-line-endings

## Contributing Guidelines 🤝

All code contributions, including those of people having commit access, must go through a pull request and be approved by a core developer before being merged. This is to ensure a proper review of all the code.
Expand Down Expand Up @@ -110,10 +87,6 @@ If you wish to run only the frontend, follow these steps:
- `yarn install` to install the dependencies
- `yarn start` to run the frontend locally

## Fix Line Endings for Windows Development 🛠️

If you're developing on Windows and encounter line-ending issues with Prettier, run these commands:

## Contributing Guidelines 🤝

All code contributions, including those of people having commit access, must go through a pull request and be approved by a core developer before being merged. This is to ensure a proper review of all the code.
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"prepare": "husky install .husky",
"test": "yarn run test-jest",
"test-jest": "REACT_APP_IS_TEST=true NODE_ENV=test yarn jest --coverage --maxWorkers 2 --no-cache --transformIgnorePatterns \"./svg/\"",
"cypress:run": "npx cypress run",
"fix-line-endings": "git rm --cached -r . && git reset --hard && yarn prettier"
"cypress:run": "npx cypress run"
},
"resolutions": {
"react-error-overlay": "6.0.9",
Expand Down

0 comments on commit 47cf11e

Please sign in to comment.