Skip to content

Commit

Permalink
fix: win32 line-ending lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
hlolli committed Jan 15, 2024
1 parent 054304c commit 34323de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
},
plugins: ["@typescript-eslint", "react"],
rules: {
"linebreak-style": ["error", "unix"],
"linebreak-style": ["error", (process.platform === "win32" ? "windows" : "unix")],
"react/no-unknown-property": ["off"],
"react/react-in-jsx-scope": ["off"],
},
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"semi": true,
"useTabs": false,
"tabWidth": 2,
"printWidth": 100
"printWidth": 100,
"endOfLine": "lf"
}

0 comments on commit 34323de

Please sign in to comment.