Skip to content

Commit 8c89d7d

Browse files
authored
Merge pull request #452 from Shopify/examples-deps-update
⬆️ [Examples] Update dependencies
2 parents 6bb673c + 12163be commit 8c89d7d

File tree

19 files changed

+6451
-4187
lines changed

19 files changed

+6451
-4187
lines changed

examples/.babelrc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"presets": [
3-
["shopify/web", {
4-
"shopify/web": {
5-
"modules": false
3+
[
4+
"babel-preset-shopify/web",
5+
{
6+
"babel-preset-shopify/web": {
7+
"modules": false,
8+
"useBuiltIns": "entry"
9+
}
610
}
7-
}]
11+
]
812
]
913
}

examples/.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
# Markdown syntax specifies that trailing whitespaces can be meaningful,
12+
# so let’s not trim those. e.g. 2 trailing spaces = linebreak (<br />)
13+
# See https://daringfireball.net/projects/markdown/syntax#p
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
# Disable trailing whitespace removal in diff files,
18+
# where whitespace is meaningful
19+
[*.diff]
20+
trim_trailing_whitespace = false

examples/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
2+
packages
23
dist
34
scrap
45
src/scripts/vendor

examples/.eslintrc.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
module.exports = {
2-
extends: [
3-
'plugin:shopify/esnext',
4-
'plugin:shopify/prettier',
5-
],
2+
extends: ['plugin:shopify/esnext', 'plugin:shopify/webpack', 'plugin:shopify/prettier'],
63
globals: {},
74
rules: {
8-
'line-comment-position': 0,
5+
'shopify/jsx-no-complex-expressions': 'off',
6+
'eslint-comments/no-unlimited-disable': 0,
7+
'import/no-default-export': ['error'],
8+
'lines-around-comment': [
9+
'error',
10+
{
11+
beforeBlockComment: false,
12+
allowBlockStart: false,
13+
},
14+
],
915
'no-console': 0,
16+
'no-negated-condition': 'off',
17+
// We are intentionally keeping `TODO` comments until a stable release
18+
'no-warning-comments': 'off',
19+
// TODO: Disabling for now, but we will want to re-enable in the future.
20+
'import/no-default-export': 'off',
21+
'import/no-cycle': 'off',
1022
},
1123
env: {
1224
browser: true,

examples/.gitignore

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,50 @@
1-
# Ignore OS Specific files
1+
# OS files
22
.DS_Store
33

4-
# Ignore the SASS cache
4+
# Caches
5+
.cache
6+
.eslintcache
57
.sass-cache
8+
.npm
9+
*.tsbuildinfo
610

7-
# Logs
8-
logs
9-
*.log
10-
11-
# Ignore dev
11+
# Dev
1212
.dev
1313

14-
# Ignore secrets.json
15-
secrets.json
14+
# Environment
15+
.env
16+
.env.test
1617

17-
# Ignore scrap and distribution folders
18-
scrap
18+
# Build
1919
dist
20+
scrap
21+
packages
2022

21-
# Ignore generated reports and manifests
23+
# Secrets
24+
secrets.json
25+
26+
# Reports
2227
assets-manifest.json
2328
bundle-report.html
2429

25-
# Dependency directory
30+
# Node/yarn
2631
node_modules
27-
packages
32+
.yarn-integrity
33+
34+
# Coverage
35+
coverage
36+
lib-cov
37+
*.lcov
38+
39+
# Logs
40+
logs
41+
*.log
42+
npm-debug.log*
43+
yarn-debug.log*
44+
yarn-error.log*
45+
46+
# Runtime data
47+
pids
48+
*.pid
49+
*.seed
50+
*.pid.lock

examples/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v10.4.0
1+
v12.16.0

examples/.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
packages
3+
/.github
4+
/assets-manifest.json
5+
/bundle-report.html
6+
/dist
7+
/package.json

examples/.prettierrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
"printWidth": 120,
3-
"singleQuote": true
2+
"arrowParens": "always",
3+
"bracketSpacing": false,
4+
"printWidth": 100,
5+
"singleQuote": true,
6+
"trailingComma": "all"
47
}

examples/.stylelintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
packages
3+
/.github
4+
/assets-manifest.json
5+
/bundle-report.html
6+
/dist
7+
/package.json

examples/.stylelintrc

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1+
12
{
23
"extends": [
34
"stylelint-config-shopify/prettier"
45
],
56
"rules": {
7+
'shopify/content-no-strings': true,
8+
'scss/at-if-no-null': null,
9+
"scss/partial-no-import": null,
610
"color-no-hex": null,
711
"comment-empty-line-before": null,
812
"scss/double-slash-comment-empty-line-before": null,
13+
'declaration-block-no-redundant-longhand-properties': [
14+
true,
15+
{
16+
ignoreShorthands: ['/^grid.*/'],
17+
},
18+
],
919
"declaration-property-value-blacklist": null,
1020
"font-weight-notation": null,
1121
"function-url-scheme-whitelist": null,
12-
"max-nesting-depth": 4,
13-
"no-duplicate-selectors": null,
1422
"no-unknown-animations": null,
1523
"selector-class-pattern": null,
1624
"selector-id-pattern": null,
17-
"selector-max-class": 5,
25+
"selector-max-class": 4,
1826
"selector-max-id": 1,
1927
"selector-max-type": 2,
2028
"selector-max-combinators": 3,
2129
"selector-max-compound-selectors": 4,
2230
"selector-max-specificity": "1,5,1",
23-
"selector-no-qualifying-type": null,
24-
"scss/partial-no-import": null
31+
"selector-no-qualifying-type": null
2532
}
2633
}

0 commit comments

Comments
 (0)