-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # doczrc.js # package-lock.json # src/components/Button/BaseButton.tsx
- Loading branch information
Showing
172 changed files
with
4,857 additions
and
3,344 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,15 @@ | ||
# libraries | ||
node_modules/ | ||
|
||
# generated files | ||
.docz/ | ||
lib/ | ||
|
||
# other | ||
assets/ | ||
|
||
# currently excluded | ||
fixtures/ | ||
|
||
src/icons/ | ||
src/gatsby-theme-docz |
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,68 @@ | ||
module.exports = { | ||
plugins: ['@typescript-eslint', 'eslint-comments', 'jest', 'promise', 'unicorn'], | ||
extends: [ | ||
'airbnb-typescript', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
'plugin:eslint-comments/recommended', | ||
'plugin:jest/recommended', | ||
'plugin:promise/recommended', | ||
'plugin:unicorn/recommended', | ||
'prettier' | ||
], | ||
env: { | ||
node: true, | ||
browser: true, | ||
jest: true | ||
}, | ||
parserOptions: { | ||
project: './tsconfig.eslint.json' | ||
}, | ||
rules: { | ||
// conflicts with stylelint rule | ||
'unicorn/numeric-separators-style': 'off', | ||
|
||
'unicorn/no-useless-undefined': 'off', | ||
|
||
'@typescript-eslint/no-unsafe-return': 'off', | ||
|
||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'react/require-default-props': 'off', | ||
// Often used for this library | ||
'react/jsx-props-no-spreading': 'off', | ||
'unicorn/filename-case': 'off', | ||
// Too restrictive, writing ugly code to defend against a very unlikely scenario: https://eslint.org/docs/rules/no-prototype-builtins | ||
'no-prototype-builtins': 'off', | ||
// https://basarat.gitbooks.io/typescript/docs/tips/defaultIsBad.html | ||
'import/prefer-default-export': 'off', | ||
'import/no-default-export': 'error', | ||
// Too restrictive: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/destructuring-assignment.md | ||
'react/destructuring-assignment': 'off', | ||
// No jsx extension: https://github.com/facebook/create-react-app/issues/87#issuecomment-234627904 | ||
'react/jsx-filename-extension': 'off', | ||
// Use function hoisting to improve code readability | ||
'no-use-before-define': 'off', | ||
// Allow most functions to rely on type inference. If the function is exported, then `@typescript-eslint/explicit-module-boundary-types` will ensure | ||
// it's typed. | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-use-before-define': [ | ||
'error', | ||
{ functions: false, classes: true, variables: true, typedefs: true } | ||
], | ||
// Common abbreviations are known and readable | ||
'unicorn/prevent-abbreviations': 'off', | ||
// Airbnb prefers forEach | ||
'unicorn/no-array-for-each': 'off', | ||
// It's not accurate in the monorepo style | ||
'import/no-extraneous-dependencies': 'off' | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.js'], | ||
rules: { | ||
// Allow `require()` | ||
'@typescript-eslint/no-var-requires': 'off' | ||
} | ||
} | ||
] | ||
}; |
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
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,22 @@ | ||
--- | ||
name: Versioning Policy | ||
route: /versioning-policy | ||
cardHeadline: Versioning Policy | ||
cardSubHeadline: Predictable and consistent versions for Wave | ||
--- | ||
|
||
## Semantic Versioning | ||
|
||
Our goal is to release update to this library without breaking anyone's projects. Therefore, we are using [SemVer](https://semver.org) | ||
which has the following release types. | ||
|
||
- **Major** versions contain breaking changes and may also contain sweeping visual changes, like changing colors (usually includes a codemods). | ||
- **Minor** versions include new components or functionality and properties for existing components. | ||
- **Patch** versions provide internal fixes, documentation changes or package upgrades (anything that does not affect the consumers of this library). | ||
|
||
|
||
### Deprecations | ||
|
||
When deciding on the deprecation of a feature or component in the next major version, we add a warning indicating | ||
the feature is scheduled for deprecation or removal. This is sent to the console in development builds and excluded in | ||
production builds. |
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
Oops, something went wrong.