-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: add prettier and eslint (#328)
* style: execute prettier on all code files build: add prettier to devDependencies * refactor: var to const/let * build: add simple eslint config & packages * refactor: optimize re-export of "is-ip" * refactor: optimize re-export of "is-ip" * chore: update eslint config * style: execute prettier on all code files chore: update prettier config * build: remove eslint-plugin-prettier * chore: add editorconfig * chore: update npm eslint script and cleanup eslint config file
- Loading branch information
1 parent
e5fddbb
commit bd11864
Showing
14 changed files
with
1,235 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"bracketSpacing": false, | ||
"printWidth": 80, | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "none", | ||
"useTabs": false, | ||
"arrowParens": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import js from '@eslint/js'; | ||
import mocha from 'eslint-plugin-mocha'; | ||
export default [ | ||
mocha.configs.flat.recommended, | ||
{ | ||
...js.configs.recommended, | ||
files: ['**/*.js'] | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import fn from "./lib/http.js"; | ||
import fn from './lib/http.js'; | ||
export default fn; |
Oops, something went wrong.