-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from zillow/2x
v2.0.0
- Loading branch information
Showing
18 changed files
with
5,148 additions
and
2,991 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
/coverage | ||
/es | ||
/lib | ||
/dist | ||
/styleguide | ||
jest.config.js | ||
styleguide.config.js |
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,6 +1,6 @@ | ||
{ | ||
"extends": ["plugin:zillow/recommended", "plugin:zillow/jest"], | ||
"env": { | ||
"browser": true | ||
} | ||
"extends": ["plugin:zillow/recommended", "plugin:zillow/jest"], | ||
"env": { | ||
"browser": 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,6 +1,5 @@ | ||
/coverage | ||
/es | ||
/lib | ||
/dist | ||
/styleguide | ||
node_modules | ||
.idea | ||
|
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit $1 |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run eslint && npm run test |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// eslint-disable-next-line zillow/import/no-extraneous-dependencies | ||
const { babelConfig } = require('create-react-styleguide'); | ||
|
||
if (process.env.DEBUG) { | ||
// eslint-disable-next-line no-console | ||
console.log('baseConfig object:', JSON.stringify(babelConfig, null, 4)); | ||
} | ||
|
||
module.exports = { | ||
presets: [['zillow', { modules: false }]], | ||
env: { | ||
cjs: { | ||
presets: ['zillow'], | ||
}, | ||
test: { | ||
presets: ['zillow'], | ||
}, | ||
}, | ||
...babelConfig, | ||
}; |
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,31 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
|
||
rules: { | ||
'body-case': [0], | ||
'subject-case': [0], | ||
'header-max-length': [0], | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
// Conventional Commit types | ||
'feat', | ||
'feature', | ||
'fix', | ||
'perf', | ||
'revert', | ||
'docs', | ||
'style', | ||
'chore', | ||
'refactor', | ||
'test', | ||
'build', | ||
'ci', | ||
// react-slider specific types | ||
'a11y', | ||
'deprecate', | ||
], | ||
], | ||
}, | ||
}; |
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,6 +1,11 @@ | ||
const { createJestConfig } = require('create-react-styleguide'); | ||
// eslint-disable-next-line zillow/import/no-extraneous-dependencies | ||
const { jestConfig } = require('create-react-styleguide'); | ||
|
||
module.exports = createJestConfig({ | ||
/* your own config shallowly merged */ | ||
setupFilesAfterEnv: ['jest-styled-components'], | ||
}); | ||
if (process.env.DEBUG) { | ||
// eslint-disable-next-line no-console | ||
console.log('jestConfig object:', JSON.stringify(jestConfig, null, 4)); | ||
} | ||
|
||
module.exports = { | ||
...jestConfig, | ||
}; |
Oops, something went wrong.