-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(automatting and quality): Add prettier and eslint to run on com…
…mit and build, deprecate jshint (#336) * style(autoformat and quality checks): Adding eslint and prettier, deprecating jshint * style(autoformat and quality checks):AMP-32165 update makefile * style(autoformat and quality checks): get all files to pass prettier and eslint * style(autoformat and quality checks): Adding husky pre-commit hooks * style(autoformatting): fix order of lint staged commands * ci: add eslint and prettier checks to test * build: remove eslint and prettier checks from makefile * build: added website directory to prettier and eslint checks
- Loading branch information
Showing
57 changed files
with
14,730 additions
and
11,508 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,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", | ||
"define": "readonly", | ||
"amplitude": "readonly", | ||
"opera": "readonly", | ||
"ActiveXObject": "readonly" | ||
} | ||
} |
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
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
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 @@ | ||
*.md |
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,6 @@ | ||
{ | ||
"printWidth": 120, | ||
"proseWrap": "always", | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
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,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 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 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 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 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.