create-sitecore-jss 22.9.0-canary.4 → 22.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/LICENSE.MD +202 -202
  2. package/README.md +10 -10
  3. package/dist/InitializerFactory.js +17 -7
  4. package/dist/bin.js +17 -7
  5. package/dist/common/processes/transform.js +19 -9
  6. package/dist/common/utils/helpers.js +17 -7
  7. package/dist/init-runner.js +17 -7
  8. package/dist/initializers/angular-sxp/index.js +17 -7
  9. package/dist/initializers/angular-xmcloud/index.js +17 -7
  10. package/dist/initializers/nextjs/index.js +17 -7
  11. package/dist/initializers/nextjs-multisite/index.js +17 -7
  12. package/dist/initializers/nextjs-styleguide/index.js +17 -7
  13. package/dist/initializers/nextjs-styleguide-tracking/index.js +17 -7
  14. package/dist/initializers/nextjs-sxa/index.js +17 -7
  15. package/dist/initializers/nextjs-xmcloud/index.js +17 -7
  16. package/dist/initializers/react/index.js +17 -7
  17. package/dist/templates/angular/angular.json +8 -46
  18. package/dist/templates/angular/package.json +13 -10
  19. package/dist/templates/angular/src/assets/images/sc_logo.svg +52 -52
  20. package/dist/templates/angular-sxp/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  21. package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  22. package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  23. package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  24. package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  25. package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  26. package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  27. package/dist/templates/angular-sxp/data/dictionary/en.yml +4 -4
  28. package/dist/templates/angular-sxp/data/dictionary/{{language}}.yml +4 -4
  29. package/dist/templates/angular-sxp/data/routes/en.yml +61 -61
  30. package/dist/templates/angular-sxp/data/routes/graphql/en.yml +27 -27
  31. package/dist/templates/angular-sxp/data/routes/graphql/sample-1/en.yml +9 -9
  32. package/dist/templates/angular-sxp/data/routes/graphql/sample-2/en.yml +9 -9
  33. package/dist/templates/angular-sxp/data/routes/styleguide/custom-route-type/en.yml +12 -12
  34. package/dist/templates/angular-sxp/data/routes/styleguide/en.yml +271 -271
  35. package/dist/templates/angular-sxp/data/routes/styleguide/{{language}}.yml +25 -25
  36. package/dist/templates/angular-sxp/data/routes/{{language}}.yml +4 -4
  37. package/dist/templates/angular-sxp/sitecore/config/{{appName}}.config +90 -90
  38. package/dist/templates/angular-sxp/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
  39. package/dist/templates/angular-sxp/sitecore/gitignore +2 -2
  40. package/dist/templates/angular-xmcloud/package.json +2 -2
  41. package/dist/templates/nextjs/package.json +6 -6
  42. package/dist/templates/nextjs/public/sc_logo.svg +52 -52
  43. package/dist/templates/nextjs-styleguide/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  44. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  45. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  46. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  47. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  48. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  49. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  50. package/dist/templates/nextjs-styleguide/data/dictionary/en.yml +4 -4
  51. package/dist/templates/nextjs-styleguide/data/dictionary/{{language}}.yml +4 -4
  52. package/dist/templates/nextjs-styleguide/data/routes/en.yml +63 -63
  53. package/dist/templates/nextjs-styleguide/data/routes/graphql/en.yml +27 -27
  54. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-1/en.yml +9 -9
  55. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-2/en.yml +9 -9
  56. package/dist/templates/nextjs-styleguide/data/routes/styleguide/custom-route-type/en.yml +12 -12
  57. package/dist/templates/nextjs-styleguide/data/routes/styleguide/en.yml +259 -259
  58. package/dist/templates/nextjs-styleguide/data/routes/styleguide/{{language}}.yml +25 -25
  59. package/dist/templates/nextjs-styleguide/data/routes/{{language}}.yml +4 -4
  60. package/dist/templates/nextjs-styleguide-tracking/data/dictionary/en.yml +5 -5
  61. package/dist/templates/nextjs-styleguide-tracking/data/routes/tracking/en.yml +8 -8
  62. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
  63. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
  64. package/dist/templates/nextjs-xmcloud/package.json +3 -3
  65. package/dist/templates/node-headless-ssr-experience-edge/package.json +4 -4
  66. package/dist/templates/node-headless-ssr-proxy/package.json +6 -6
  67. package/dist/templates/node-headless-ssr-proxy/src/index.ts +1 -1
  68. package/dist/templates/node-xmcloud-proxy/package.json +7 -7
  69. package/dist/templates/node-xmcloud-proxy/src/index.ts +1 -1
  70. package/dist/templates/react/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  71. package/dist/templates/react/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  72. package/dist/templates/react/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  73. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  74. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  75. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  76. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  77. package/dist/templates/react/data/dictionary/en.yml +4 -4
  78. package/dist/templates/react/data/dictionary/{{language}}.yml +4 -4
  79. package/dist/templates/react/data/routes/en.yml +61 -61
  80. package/dist/templates/react/data/routes/graphql/en.yml +27 -27
  81. package/dist/templates/react/data/routes/graphql/sample-1/en.yml +9 -9
  82. package/dist/templates/react/data/routes/graphql/sample-2/en.yml +9 -9
  83. package/dist/templates/react/data/routes/styleguide/custom-route-type/en.yml +12 -12
  84. package/dist/templates/react/data/routes/styleguide/en.yml +263 -263
  85. package/dist/templates/react/data/routes/styleguide/{{language}}.yml +26 -26
  86. package/dist/templates/react/data/routes/{{language}}.yml +4 -4
  87. package/dist/templates/react/package.json +31 -25
  88. package/dist/templates/react/server/server.webpack.config.js +3 -3
  89. package/dist/templates/react/src/setupProxy.js +6 -6
  90. package/dist/templates/react-native/.buckconfig +6 -6
  91. package/dist/templates/react-native/.eslintrc +74 -74
  92. package/dist/templates/react-native/.gitattributes +1 -1
  93. package/dist/templates/react-native/.prettierrc +9 -9
  94. package/dist/templates/react-native/.vscode/launch.json +42 -42
  95. package/dist/templates/react-native/.vscode/settings.json +1 -1
  96. package/dist/templates/react-native/LICENSE.txt +202 -202
  97. package/dist/templates/react-native/README.MD +115 -115
  98. package/dist/templates/react-native/android/app/BUCK +55 -55
  99. package/dist/templates/react-native/android/app/build.gradle +201 -201
  100. package/dist/templates/react-native/android/app/build_defs.bzl +19 -19
  101. package/dist/templates/react-native/android/app/proguard-rules.pro +10 -10
  102. package/dist/templates/react-native/android/app/src/debug/AndroidManifest.xml +8 -8
  103. package/dist/templates/react-native/android/app/src/main/AndroidManifest.xml +26 -26
  104. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainActivity.java +15 -15
  105. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainApplication.java +74 -74
  106. package/dist/templates/react-native/android/app/src/main/res/values/strings.xml +3 -3
  107. package/dist/templates/react-native/android/app/src/main/res/values/styles.xml +9 -9
  108. package/dist/templates/react-native/android/build.gradle +38 -38
  109. package/dist/templates/react-native/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  110. package/dist/templates/react-native/android/gradle.properties +21 -21
  111. package/dist/templates/react-native/android/gradlew +188 -188
  112. package/dist/templates/react-native/android/gradlew.bat +100 -100
  113. package/dist/templates/react-native/android/settings.gradle +3 -3
  114. package/dist/templates/react-native/app.json +3 -3
  115. package/dist/templates/react-native/assets/img/sc_logo.svg +52 -52
  116. package/dist/templates/react-native/data/content/Styleguide/ItemLinkField/Item1/en.json +10 -10
  117. package/dist/templates/react-native/data/routes/en.json +22 -22
  118. package/dist/templates/react-native/data/routes/styleguide/en.json +227 -227
  119. package/dist/templates/react-native/data/routes/styleguide/{{language}}.json +31 -31
  120. package/dist/templates/react-native/data/routes/{{language}}.json +7 -7
  121. package/dist/templates/react-native/gitignore +60 -60
  122. package/dist/templates/react-native/ios/Podfile +53 -53
  123. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.h +15 -15
  124. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.m +42 -42
  125. package/dist/templates/react-native/ios/{{appName}}/Base.lproj/LaunchScreen.xib +42 -42
  126. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/AppIcon.appiconset/Contents.json +38 -38
  127. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/Contents.json +6 -6
  128. package/dist/templates/react-native/ios/{{appName}}/Info.plist +57 -57
  129. package/dist/templates/react-native/ios/{{appName}}/main.m +16 -16
  130. package/dist/templates/react-native/ios/{{appName}}-tvOS/Info.plist +53 -53
  131. package/dist/templates/react-native/ios/{{appName}}-tvOSTests/Info.plist +24 -24
  132. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative-tvOS.xcscheme +129 -129
  133. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative.xcscheme +129 -129
  134. package/dist/templates/react-native/ios/{{appName}}Tests/BasicSampleReactNativeTests.m +72 -72
  135. package/dist/templates/react-native/ios/{{appName}}Tests/Info.plist +24 -24
  136. package/dist/templates/react-native/package.json +78 -78
  137. package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
  138. package/dist/templates/react-native/sitecore/gitignore +2 -2
  139. package/dist/templates/vue/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  140. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  141. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  142. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  143. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  144. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  145. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  146. package/dist/templates/vue/data/dictionary/en.yml +7 -7
  147. package/dist/templates/vue/data/dictionary/{{language}}.yml +7 -7
  148. package/dist/templates/vue/data/routes/en.yml +63 -63
  149. package/dist/templates/vue/data/routes/graphql/en.yml +34 -34
  150. package/dist/templates/vue/data/routes/graphql/sample-1/en.yml +9 -9
  151. package/dist/templates/vue/data/routes/graphql/sample-2/en.yml +9 -9
  152. package/dist/templates/vue/data/routes/styleguide/custom-route-type/en.yml +12 -12
  153. package/dist/templates/vue/data/routes/styleguide/en.yml +264 -264
  154. package/dist/templates/vue/data/routes/styleguide/{{language}}.yml +26 -26
  155. package/dist/templates/vue/data/routes/{{language}}.yml +4 -4
  156. package/dist/templates/vue/package.json +4 -4
  157. package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
  158. package/dist/templates/vue/src/assets/sc_logo.svg +52 -52
  159. package/package.json +20 -22
  160. package/dist/templates/angular/e2e/app.e2e-spec.ts +0 -14
  161. package/dist/templates/angular/e2e/app.po.ts +0 -11
  162. package/dist/templates/angular/e2e/tsconfig.e2e.json +0 -15
@@ -27,14 +27,14 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@apollo/client": "^3.7.1",
30
+ "@apollo/client": "^3.13.9",
31
31
  "@sitecore-jss/sitecore-jss-react": "<%- version %>",
32
- "bootstrap": "^5.2.3",
33
- "cross-fetch": "^3.1.5",
32
+ "bootstrap": "^5.3.7",
33
+ "cross-fetch": "^4.1.0",
34
34
  "fast-deep-equal": "^3.1.3",
35
- "graphql": "~16.8.1",
35
+ "graphql": "~16.11.0",
36
36
  "graphql-tag": "~2.12.6",
37
- "i18next": "^22.0.6",
37
+ "i18next": "^22.5.1",
38
38
  "react": "^19.1.0",
39
39
  "react-app-polyfill": "^3.0.0",
40
40
  "react-dom": "^19.1.0",
@@ -42,38 +42,38 @@
42
42
  "react-i18next": "~12.0.0",
43
43
  "react-router-dom": "~6.4.4",
44
44
  "react-scripts": "~5.0.1",
45
- "serialize-javascript": "^6.0.0"
45
+ "serialize-javascript": "^6.0.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@babel/core": "^7.20.5",
49
- "@babel/eslint-parser": "^7.19.1",
50
- "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
51
- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
52
- "@babel/preset-env": "^7.20.2",
53
- "@babel/preset-react": "^7.18.6",
54
- "@babel/register": "~7.18.9",
48
+ "@babel/core": "^7.28.0",
49
+ "@babel/eslint-parser": "^7.28.0",
50
+ "@babel/plugin-transform-export-namespace-from": "^7.27.1",
51
+ "@babel/plugin-transform-private-property-in-object": "^7.27.1",
52
+ "@babel/preset-env": "^7.28.0",
53
+ "@babel/preset-react": "^7.27.1",
54
+ "@babel/register": "~7.27.1",
55
55
  "@sitecore-jss/sitecore-jss-cli": "<%- version %>",
56
56
  "@sitecore-jss/sitecore-jss-dev-tools": "<%- version %>",
57
57
  "@sitecore-jss/sitecore-jss-rendering-host": "<%- version %>",
58
- "babel-loader": "~9.1.0",
58
+ "babel-loader": "~10.0.0",
59
59
  "babel-preset-react-app": "~10.0.1",
60
60
  "chalk": "~4.1.2",
61
61
  "constant-case": "^3.0.4",
62
- "cross-env": "~7.0.3",
63
- "cross-spawn": "^7.0.3",
64
- "del-cli": "^5.0.0",
65
- "dotenv": "^16.0.3",
62
+ "cross-env": "~10.0.0",
63
+ "cross-spawn": "^7.0.6",
64
+ "del-cli": "^6.0.0",
65
+ "dotenv": "^17.2.1",
66
66
  "eslint": "^8.56.0",
67
67
  "eslint-config-prettier": "^8.5.0",
68
68
  "eslint-plugin-import": "^2.26.0",
69
69
  "eslint-plugin-prettier": "^4.2.1",
70
70
  "eslint-plugin-react": "^7.37.5",
71
71
  "eslint-plugin-yaml": "^0.5.0",
72
- "express": "^4.18.2",
73
- "fs-extra": "^11.1.0",
72
+ "express": "^5.1.0",
73
+ "fs-extra": "^11.3.1",
74
74
  "graphql.macro": "~1.4.2",
75
- "html-loader": "~4.2.0",
76
- "http-proxy-middleware": "~2.0.6",
75
+ "html-loader": "~5.1.0",
76
+ "http-proxy-middleware": "~3.0.5",
77
77
  "move-cli": "^2.0.0",
78
78
  "ncp": "^2.0.0",
79
79
  "ngrok": "^4.3.3",
@@ -83,8 +83,8 @@
83
83
  "react-app-rewired": "^2.2.1",
84
84
  "speed-measure-webpack-plugin": "^1.5.0",
85
85
  "stats-webpack-plugin": "^0.7.0",
86
- "webpack": "~5.76.2",
87
- "webpack-cli": "~5.0.0"
86
+ "webpack": "~5.101.0",
87
+ "webpack-cli": "~6.0.1"
88
88
  },
89
89
  "scripts": {
90
90
  "jss": "jss",
@@ -114,5 +114,11 @@
114
114
  "not dead",
115
115
  "not ie <= 11",
116
116
  "not op_mini all"
117
- ]
117
+ ],
118
+ "//": "Resolves security vulnerabilities: https://github.com/facebook/create-react-app/issues/17120",
119
+ "overrides": {
120
+ "nth-check": "2.0.1",
121
+ "postcss": "^8.4.38",
122
+ "webpack-dev-server": "^4.15.2"
123
+ }
118
124
  }
@@ -31,7 +31,7 @@ module.exports = {
31
31
  use: {
32
32
  loader: 'babel-loader',
33
33
  options: {
34
- plugins: ['@babel/plugin-proposal-export-namespace-from'],
34
+ plugins: ['@babel/plugin-transform-export-namespace-from'],
35
35
  },
36
36
  },
37
37
  },
@@ -45,10 +45,10 @@ module.exports = {
45
45
  presets: [env, reactApp],
46
46
  plugins: [
47
47
  [
48
- '@babel/plugin-proposal-private-methods',
48
+ '@babel/plugin-transform-private-methods',
49
49
  { loose: true }
50
50
  ],
51
- ["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
51
+ ["@babel/plugin-transform-private-property-in-object", { "loose": true }]
52
52
  ]
53
53
  },
54
54
  },
@@ -1,4 +1,4 @@
1
- const { createProxyMiddleware } = require('http-proxy-middleware');
1
+ const { legacyCreateProxyMiddleware } = require('http-proxy-middleware');
2
2
  const config = require('./temp/config');
3
3
  const { isDisconnected } = require('./util');
4
4
 
@@ -8,16 +8,16 @@ module.exports = (app) => {
8
8
  // see scripts/disconnected-mode-proxy.js
9
9
  const proxyUrl = `http://localhost:${process.env.PROXY_PORT || 3042}/`;
10
10
 
11
- app.use(createProxyMiddleware('/sitecore', { target: proxyUrl }));
12
- app.use(createProxyMiddleware('/data/media', { target: proxyUrl }));
11
+ app.use(legacyCreateProxyMiddleware('/sitecore', { target: proxyUrl }));
12
+ app.use(legacyCreateProxyMiddleware('/data/media', { target: proxyUrl }));
13
13
  } else {
14
14
  // when in connected mode we want to proxy Sitecore paths
15
15
  // off to Sitecore
16
16
 
17
- app.use(createProxyMiddleware('/sitecore', { target: config.sitecoreApiHost, changeOrigin: true }));
17
+ app.use(legacyCreateProxyMiddleware('/sitecore', { target: config.sitecoreApiHost, changeOrigin: true }));
18
18
  // media items
19
- app.use(createProxyMiddleware('/-', { target: config.sitecoreApiHost, changeOrigin: true }));
19
+ app.use(legacyCreateProxyMiddleware('/-', { target: config.sitecoreApiHost, changeOrigin: true }));
20
20
  // visitor identification
21
- app.use(createProxyMiddleware('/layouts', { target: config.sitecoreApiHost, changeOrigin: true }));
21
+ app.use(legacyCreateProxyMiddleware('/layouts', { target: config.sitecoreApiHost, changeOrigin: true }));
22
22
  }
23
23
  };
@@ -1,6 +1,6 @@
1
-
2
- [android]
3
- target = Google Inc.:Google APIs:23
4
-
5
- [maven_repositories]
6
- central = https://repo1.maven.org/maven2
1
+
2
+ [android]
3
+ target = Google Inc.:Google APIs:23
4
+
5
+ [maven_repositories]
6
+ central = https://repo1.maven.org/maven2
@@ -1,74 +1,74 @@
1
- {
2
- "root": true,
3
- "parser": "babel-eslint",
4
- "parserOptions": {
5
- "ecmaFeatures": {
6
- "jsx": true
7
- }
8
- },
9
- "extends": [
10
- "airbnb-base",
11
- "plugin:react/recommended",
12
- "prettier",
13
- "prettier/react",
14
- "plugin:import/errors",
15
- "plugin:import/warnings"
16
- ],
17
- "plugins": ["react", "react-native", "import", "prettier"],
18
- "settings": {
19
- "import/ignore": ["node_modules", ".png$", ".jpg$"],
20
- "import/resolver": {
21
- "babel-module": {}
22
- },
23
- "react": {
24
- "version": "detect"
25
- }
26
- },
27
- "env": {
28
- "jest": true
29
- },
30
- "rules": {
31
- "jsx-quotes": ["error", "prefer-double"],
32
- "react/prop-types": "off",
33
- "prettier/prettier": "error",
34
- "import/prefer-default-export": "off",
35
- "import/no-extraneous-dependencies": [
36
- "error",
37
- {
38
- "devDependencies": true,
39
- "optionalDependencies": true
40
- }
41
- ],
42
- "linebreak-style": ["error", "windows"],
43
- "arrow-body-style": ["warn", "as-needed"],
44
- "arrow-parens": ["error", "always"],
45
- "no-unused-vars": [
46
- "error",
47
- {
48
- "args": "none"
49
- }
50
- ],
51
- "func-names": "off",
52
- "no-console": "off",
53
- "radix": ["error", "as-needed"],
54
- "prefer-destructuring": "off",
55
- "no-useless-escape": "off",
56
- "spaced-comment": "error",
57
- "curly": ["error", "multi-line"],
58
- "eol-last": ["error", "always"],
59
- "guard-for-in": "error",
60
- "no-unused-labels": "error",
61
- "no-caller": "error",
62
- "no-bitwise": "error",
63
- "no-multiple-empty-lines": "error",
64
- "no-new-wrappers": "error",
65
- "no-eval": "error",
66
- "dot-notation": "error",
67
- "no-trailing-spaces": "error",
68
- "no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
69
- "brace-style": "error",
70
- "quotes": ["error", "single"],
71
- "default-case": "error",
72
- "eqeqeq": "error"
73
- }
74
- }
1
+ {
2
+ "root": true,
3
+ "parser": "babel-eslint",
4
+ "parserOptions": {
5
+ "ecmaFeatures": {
6
+ "jsx": true
7
+ }
8
+ },
9
+ "extends": [
10
+ "airbnb-base",
11
+ "plugin:react/recommended",
12
+ "prettier",
13
+ "prettier/react",
14
+ "plugin:import/errors",
15
+ "plugin:import/warnings"
16
+ ],
17
+ "plugins": ["react", "react-native", "import", "prettier"],
18
+ "settings": {
19
+ "import/ignore": ["node_modules", ".png$", ".jpg$"],
20
+ "import/resolver": {
21
+ "babel-module": {}
22
+ },
23
+ "react": {
24
+ "version": "detect"
25
+ }
26
+ },
27
+ "env": {
28
+ "jest": true
29
+ },
30
+ "rules": {
31
+ "jsx-quotes": ["error", "prefer-double"],
32
+ "react/prop-types": "off",
33
+ "prettier/prettier": "error",
34
+ "import/prefer-default-export": "off",
35
+ "import/no-extraneous-dependencies": [
36
+ "error",
37
+ {
38
+ "devDependencies": true,
39
+ "optionalDependencies": true
40
+ }
41
+ ],
42
+ "linebreak-style": ["error", "windows"],
43
+ "arrow-body-style": ["warn", "as-needed"],
44
+ "arrow-parens": ["error", "always"],
45
+ "no-unused-vars": [
46
+ "error",
47
+ {
48
+ "args": "none"
49
+ }
50
+ ],
51
+ "func-names": "off",
52
+ "no-console": "off",
53
+ "radix": ["error", "as-needed"],
54
+ "prefer-destructuring": "off",
55
+ "no-useless-escape": "off",
56
+ "spaced-comment": "error",
57
+ "curly": ["error", "multi-line"],
58
+ "eol-last": ["error", "always"],
59
+ "guard-for-in": "error",
60
+ "no-unused-labels": "error",
61
+ "no-caller": "error",
62
+ "no-bitwise": "error",
63
+ "no-multiple-empty-lines": "error",
64
+ "no-new-wrappers": "error",
65
+ "no-eval": "error",
66
+ "dot-notation": "error",
67
+ "no-trailing-spaces": "error",
68
+ "no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
69
+ "brace-style": "error",
70
+ "quotes": ["error", "single"],
71
+ "default-case": "error",
72
+ "eqeqeq": "error"
73
+ }
74
+ }
@@ -1 +1 @@
1
- *.pbxproj -text
1
+ *.pbxproj -text
@@ -1,9 +1,9 @@
1
- {
2
- "endOfLine": "crlf",
3
- "singleQuote": true,
4
- "trailingComma": "es5",
5
- "useTabs": false,
6
- "tabWidth": 2,
7
- "arrowParens": "always",
8
- "printWidth": 100
9
- }
1
+ {
2
+ "endOfLine": "crlf",
3
+ "singleQuote": true,
4
+ "trailingComma": "es5",
5
+ "useTabs": false,
6
+ "tabWidth": 2,
7
+ "arrowParens": "always",
8
+ "printWidth": 100
9
+ }
@@ -1,43 +1,43 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "name": "Debug Android",
9
- "program": "${workspaceRoot}/.vscode/launchReactNative.js",
10
- "type": "reactnative",
11
- "request": "launch",
12
- "platform": "android",
13
- "sourceMaps": true,
14
- "outDir": "${workspaceRoot}/.vscode/.react"
15
- },
16
- {
17
- "name": "Debug iOS",
18
- "program": "${workspaceRoot}/.vscode/launchReactNative.js",
19
- "type": "reactnative",
20
- "request": "launch",
21
- "platform": "ios",
22
- "sourceMaps": true,
23
- "outDir": "${workspaceRoot}/.vscode/.react"
24
- },
25
- {
26
- "name": "Attach to packager",
27
- "program": "${workspaceRoot}/.vscode/launchReactNative.js",
28
- "type": "reactnative",
29
- "request": "attach",
30
- "sourceMaps": true,
31
- "outDir": "${workspaceRoot}/.vscode/.react"
32
- },
33
- {
34
- "name": "Debug in Exponent",
35
- "program": "${workspaceRoot}/.vscode/launchReactNative.js",
36
- "type": "reactnative",
37
- "request": "launch",
38
- "platform": "exponent",
39
- "sourceMaps": true,
40
- "outDir": "${workspaceRoot}/.vscode/.react"
41
- }
42
- ]
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Debug Android",
9
+ "program": "${workspaceRoot}/.vscode/launchReactNative.js",
10
+ "type": "reactnative",
11
+ "request": "launch",
12
+ "platform": "android",
13
+ "sourceMaps": true,
14
+ "outDir": "${workspaceRoot}/.vscode/.react"
15
+ },
16
+ {
17
+ "name": "Debug iOS",
18
+ "program": "${workspaceRoot}/.vscode/launchReactNative.js",
19
+ "type": "reactnative",
20
+ "request": "launch",
21
+ "platform": "ios",
22
+ "sourceMaps": true,
23
+ "outDir": "${workspaceRoot}/.vscode/.react"
24
+ },
25
+ {
26
+ "name": "Attach to packager",
27
+ "program": "${workspaceRoot}/.vscode/launchReactNative.js",
28
+ "type": "reactnative",
29
+ "request": "attach",
30
+ "sourceMaps": true,
31
+ "outDir": "${workspaceRoot}/.vscode/.react"
32
+ },
33
+ {
34
+ "name": "Debug in Exponent",
35
+ "program": "${workspaceRoot}/.vscode/launchReactNative.js",
36
+ "type": "reactnative",
37
+ "request": "launch",
38
+ "platform": "exponent",
39
+ "sourceMaps": true,
40
+ "outDir": "${workspaceRoot}/.vscode/.react"
41
+ }
42
+ ]
43
43
  }
@@ -1,2 +1,2 @@
1
- {
1
+ {
2
2
  }