-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
548 changed files
with
13,744 additions
and
137 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,11 @@ | ||
# http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
!.storybook/config.js | ||
dist/ | ||
node_modules/* | ||
**/node_modules/* |
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,2 @@ | ||
--- | ||
extends: "@commercetools-frontend/eslint-config-mc-app" |
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,84 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Storybook build output | ||
.public | ||
|
||
# Serverless directories | ||
.serverless | ||
|
||
# Editor/IDE | ||
.idea | ||
.vscode | ||
!.vscode/settings.json | ||
|
||
# Netlify | ||
netlify.toml |
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,5 @@ | ||
package.json | ||
packages-shared/i18n/*.json | ||
.babelrc | ||
**/dist/ | ||
**/public/ |
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,5 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"parser": "babylon" | ||
} |
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,7 @@ | ||
{ | ||
"extends": [ | ||
"config:base", | ||
":pinOnlyDevDependencies", | ||
"schedule:weekly" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"plugins": [ | ||
"stylelint-order" | ||
], | ||
"rules": { | ||
"font-family-name-quotes": ["always-unless-keyword"], | ||
"function-url-quotes": "always", | ||
"selector-attribute-quotes": "always", | ||
"string-quotes": "single", | ||
"selector-pseudo-class-no-unknown": [ | ||
true, | ||
{ "ignorePseudoClasses": ["global"] } | ||
], | ||
"order/properties-order": [ | ||
["composes"], | ||
{ "unspecified": "bottom" } | ||
], | ||
"declaration-block-no-duplicate-properties": [ | ||
true, | ||
{ "ignoreProperties": ["composes"] } | ||
], | ||
"property-no-unknown": [ | ||
true, | ||
{ "ignoreProperties": ["composes"] } | ||
], | ||
"declaration-colon-newline-after": null, | ||
"rule-empty-line-before": null, | ||
"value-list-comma-newline-after": null, | ||
"indentation": null, | ||
"selector-descendant-combinator-no-non-space": null | ||
} | ||
} |
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,14 @@ | ||
/* eslint-disable */ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
parserPreset: { | ||
parserOpts: { | ||
// Allow to write a "scope" with slashes | ||
// E.g. `refactor(app/my-component): something` | ||
headerPattern: /^(\w*)(?:\(([\w\$\.\/\-\* ]*)\))?\: (.*)$/, | ||
}, | ||
}, | ||
rules: { | ||
'header-max-length': [0, 'always', 100], | ||
}, | ||
}; |
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,12 @@ | ||
module.exports = { | ||
cliOptions: { | ||
format: 'node_modules/eslint-formatter-pretty', | ||
rules: { | ||
'import/no-unresolved': 2, | ||
'prettier/prettier': [ | ||
'error', | ||
{ trailingComma: 'es5', singleQuote: true }, | ||
], | ||
}, | ||
}, | ||
}; |
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,11 @@ | ||
module.exports = { | ||
runner: 'jest-runner-eslint', | ||
displayName: 'eslint', | ||
testMatch: [ | ||
'<rootDir>/.storybook/**/*.js', | ||
'<rootDir>/examples/**/*.js', | ||
'<rootDir>/scripts/**/*.js', | ||
'<rootDir>/src/**/*.js', | ||
], | ||
watchPlugins: ['jest-plugin-filename'], | ||
}; |
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,7 @@ | ||
module.exports = { | ||
runner: 'jest-runner-stylelint', | ||
displayName: 'stylelint', | ||
moduleFileExtensions: ['css'], | ||
testMatch: ['<rootDir>/src/**/*.css'], | ||
watchPlugins: ['jest-plugin-filename'], | ||
}; |
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,4 @@ | ||
module.exports = { | ||
preset: '@commercetools-frontend/jest-preset-mc-app', | ||
moduleDirectories: ['src'], | ||
}; |
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,25 @@ | ||
module.exports = { | ||
'{src,examples}/**/*.md': ['npm run format:md', 'git add'], | ||
'{src,scripts,examples,.storybook}/**/*.js': [ | ||
// NOTE: apparently if you pass some argument that is not a flag AFTER the `reporters` | ||
// flag, jest does not seem correctly parse the arguments. | ||
// | ||
// No tests found related to files changed since last commit. | ||
// Run Jest without `-o` or with `--all` to run all tests. | ||
// Error: An error occurred while adding the reporter at path "/path/to/file".Reporter is not a constructor | ||
// | ||
// For that reason, we move the `--onlyChanged` flag next to it. | ||
'npm run lint:js -- --reporters=jest-silent-reporter --onlyChanged', | ||
], | ||
'src/**/*.css': [ | ||
// NOTE: apparently if you pass some argument that is not a flag AFTER the `reporters` | ||
// flag, jest does not seem correctly parse the arguments. | ||
// | ||
// No tests found related to files changed since last commit. | ||
// Run Jest without `-o` or with `--all` to run all tests. | ||
// Error: An error occurred while adding the reporter at path "/path/to/file".Reporter is not a constructor | ||
// | ||
// For that reason, we move the `--onlyChanged` flag next to it. | ||
'npm run lint:css -- --reporters=jest-silent-reporter --onlyChanged', | ||
], | ||
}; |
Oops, something went wrong.