-
Notifications
You must be signed in to change notification settings - Fork 132
style(automatting and quality): Add prettier and eslint to run on commit and build, deprecate jshint #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
style(automatting and quality): Add prettier and eslint to run on commit and build, deprecate jshint #336
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
43e1f0a
style(autoformat and quality checks): Adding eslint and prettier, de…
kelsonpw 278f9ce
style(autoformat and quality checks):AMP-32165 update makefile
kelsonpw 42ce1b2
style(autoformat and quality checks): get all files to pass prettier …
kelsonpw e6cb4cb
style(autoformat and quality checks): Adding husky pre-commit hooks
kelsonpw 2366868
style(autoformatting): fix order of lint staged commands
kelsonpw a405082
ci: add eslint and prettier checks to test
kelsonpw 50454d7
build: remove eslint and prettier checks from makefile
kelsonpw 1dcc59b
build: added website directory to prettier and eslint checks
kelsonpw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,26 @@ | ||
| { | ||
| "extends": ["eslint:recommended", "plugin:prettier/recommended"], | ||
| "plugins": ["prettier", "@amplitude/eslint-plugin-amplitude"], | ||
| "env": { "es6": true, "browser": true, "node": true, "mocha": true }, | ||
| "parserOptions": { | ||
| "sourceType": "module", | ||
| "ecmaVersion": 2018 | ||
| }, | ||
| "rules": { | ||
| "prettier/prettier": "error", | ||
| "no-prototype-builtins": "off" | ||
| }, | ||
| "globals": { | ||
| "BUILD_COMPAT_REACT_NATIVE": "readonly", | ||
| "BUILD_COMPAT_LOCAL_STORAGE": "readonly", | ||
| "BUILD_COMPAT_SNIPPET": "readonly", | ||
| "BUILD_COMPAT_2_0": "readonly", | ||
| "assert": "readonly", | ||
| "expect": "readonly", | ||
| "should": "readonly", | ||
kelsonpw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "define": "readonly", | ||
| "amplitude": "readonly", | ||
| "opera": "readonly", | ||
| "ActiveXObject": "readonly" | ||
| } | ||
| } | ||
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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 @@ | ||
| *.md |
This file contains hidden or 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,6 @@ | ||
| { | ||
| "printWidth": 120, | ||
| "proseWrap": "always", | ||
| "singleQuote": true, | ||
| "trailingComma": "all" | ||
| } |
This file contains hidden or 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,24 @@ | ||
| { | ||
| "editor.codeActionsOnSave": { | ||
| "source.fixAll": true | ||
| }, | ||
| "editor.defaultFormatter": "esbenp.prettier-vscode", | ||
| "editor.formatOnType": true, | ||
| "editor.formatOnPaste": false, | ||
| "editor.formatOnSave": true, | ||
| "editor.rulers": [120], | ||
| "editor.tabSize": 2, | ||
| "files.autoSave": "onWindowChange", | ||
| "files.trimTrailingWhitespace": true, | ||
| "files.insertFinalNewline": true, | ||
| "search.exclude": { | ||
| "**/node_modules/": true, | ||
| "**/build/": true, | ||
| "**/dist/": true | ||
| }, | ||
| "[json]": { | ||
| "editor.formatOnType": false, | ||
| "editor.formatOnPaste": false, | ||
| "editor.formatOnSave": false | ||
| } | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.