Skip to content

Commit

Permalink
chore: prettify settings files
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Apr 6, 2020
1 parent f249408 commit 8ad0923
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
12 changes: 3 additions & 9 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [2, "always", [
'feat',
'fix',
'docs',
'test',
'chore'
]]
"type-enum": [2, "always", ["feat", "fix", "docs", "test", "chore"]]
}
}
};
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ const base = require("./jest.config.base.js");

module.exports = {
...base,
projects: ["<rootDir>/protocol_tests/*/jest.config.js", "<rootDir>/packages/*/jest.config.js"],
projects: [
"<rootDir>/protocol_tests/*/jest.config.js",
"<rootDir>/packages/*/jest.config.js"
],
testPathIgnorePatterns: ["/node_modules/", "<rootDir>/clients/client-.*"],
coveragePathIgnorePatterns: [
"/node_modules/",
Expand Down
2 changes: 1 addition & 1 deletion packages/hash-blob-browser/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

process.env.CHROME_BIN = require("puppeteer").executablePath();

module.exports = function(config) {
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: "",
Expand Down
2 changes: 1 addition & 1 deletion packages/stream-collector-browser/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process.env.CHROME_BIN = require("puppeteer").executablePath();
module.exports = function(config) {
module.exports = function (config) {
config.set({
frameworks: ["jasmine", "karma-typescript"],
files: ["src/**/*.ts"],
Expand Down
2 changes: 1 addition & 1 deletion packages/stream-collector-native/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process.env.CHROME_BIN = require("puppeteer").executablePath();
module.exports = function(config) {
module.exports = function (config) {
config.set({
frameworks: ["jasmine", "karma-typescript"],
files: ["src/**/*.ts"],
Expand Down
14 changes: 8 additions & 6 deletions scripts/generate-clients/copy-to-clients.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ const getOverwritablePredicate = packageName => pathName => {
"endpoints.ts"
];
return (
pathName.toLowerCase().indexOf(
packageName
.toLowerCase()
.replace("@aws-sdk/client-", "")
.replace(/-/g, "")
) >= 0 || overwritablePathnames.indexOf(pathName) >= 0
pathName
.toLowerCase()
.indexOf(
packageName
.toLowerCase()
.replace("@aws-sdk/client-", "")
.replace(/-/g, "")
) >= 0 || overwritablePathnames.indexOf(pathName) >= 0
);
};

Expand Down

0 comments on commit 8ad0923

Please sign in to comment.