项目作者: TheHaymaker

项目描述 :
a11y-inspired React, TypeScript, Eslint, eslint-jsx-a11y, react-axe template
高级语言: TypeScript
项目地址: git://github.com/TheHaymaker/a11y-ts-eslint-starter.git
创建时间: 2019-06-30T06:55:46Z
项目社区:https://github.com/TheHaymaker/a11y-ts-eslint-starter

开源协议:

下载


Starter Project utilizing CREATE-REACT-APP

Intention

  • Have a go-to starter template for new react projects
  • A11y-ready
  • Eslint configuration baked-in
  • Typescript config baked-in
  • Cut down on research and configuration when starting new projects

VSCode setting reference for speedy integration

  1. {
  2. "editor.formatOnSave": true,
  3. "[javascript]": {
  4. "editor.formatOnSave": false
  5. },
  6. "[javascriptreact]": {
  7. "editor.formatOnSave": false
  8. },
  9. "[typescript]": {
  10. "editor.formatOnSave": false
  11. },
  12. "[typescriptreact]": {
  13. "editor.formatOnSave": false
  14. },
  15. "eslint.autoFixOnSave": true,
  16. "eslint.validate": [
  17. "javascript",
  18. "javascriptreact",
  19. {
  20. "language": "typescript",
  21. "autoFix": true
  22. },
  23. {
  24. "language": "typescriptreact",
  25. "autoFix": true
  26. }
  27. ],
  28. "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  29. "terminal.external.windowsExec": "C:\\windows\\System32\\bash.exe",
  30. "terminal.integrated.shellArgs.windows": ["-l"],
  31. "workbench.colorTheme": "Electron",
  32. "emmet.includeLanguages": {
  33. "javascript": "javascriptreact"
  34. },
  35. "editor.fontFamily": "'Dank Mono', Consolas, 'Courier New', monospace",
  36. "editor.fontLigatures": true,
  37. "window.zoomLevel": 2,
  38. "editor.tokenColorCustomizations": {
  39. "textMateRules": [
  40. {
  41. "scope": [
  42. //following will be in italic (=FlottFlott)
  43. "comment",
  44. "entity.name.type.class", //class names
  45. "keyword", //import, export, return…
  46. "constant", //String, Number, Boolean…, this, super
  47. "storage.modifier", //static keyword
  48. "storage.type.class.js", //class keyword
  49. "variable.parameter"
  50. // "entity.name.function"
  51. ],
  52. "settings": {
  53. "fontStyle": "Dank Mono italic"
  54. }
  55. },
  56. {
  57. "scope": [
  58. //following will be excluded from italics (VSCode has some defaults for italics)
  59. "invalid",
  60. "keyword.operator",
  61. "constant.numeric.css",
  62. "keyword.other.unit.px.css",
  63. "constant.numeric.decimal.js",
  64. "constant.numeric.json"
  65. ],
  66. "settings": {
  67. "fontStyle": "Dank Mono"
  68. }
  69. }
  70. ]
  71. },
  72. "editor.tabSize": 2,
  73. "prettier.eslintIntegration": true,
  74. "editor.cursorBlinking": "phase",
  75. "editor.cursorStyle": "line",
  76. "editor.multiCursorMergeOverlapping": false,
  77. "editor.multiCursorModifier": "ctrlCmd",
  78. "editor.cursorWidth": 2,
  79. "editor.minimap.renderCharacters": false,
  80. "editor.renderLineHighlight": "gutter",
  81. "files.trimFinalNewlines": true,
  82. "files.insertFinalNewline": true,
  83. "search.showLineNumbers": true,
  84. "emmet.triggerExpansionOnTab": true,
  85. "emmet.showSuggestionsAsSnippets": true,
  86. "editor.suggest.snippetsPreventQuickSuggestions": false,
  87. "git.path": "C:\\Program Files\\git\\cmd\\git.exe",
  88. "git.alwaysShowStagedChangesResourceGroup": true,
  89. "breadcrumbs.enabled": true,
  90. "explorer.confirmDelete": false,
  91. "editor.wordWrap": "on",
  92. "workbench.iconTheme": "material-icon-theme"
  93. }