-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): Add @box/frontend and upgrade dependencies (#380)
- Loading branch information
Showing
86 changed files
with
3,319 additions
and
2,312 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,13 @@ | ||
const eslintrc = require.resolve("@box/frontend/eslint/eslintrc.js"); | ||
|
||
module.exports = { | ||
extends: [eslintrc], | ||
rules: { | ||
camelcase: 0, // fixme | ||
"class-methods-use-this": 0, // fixme | ||
"import/no-extraneous-dependencies": 0, // fixme | ||
"import/no-unresolved": "off", // Allows JS files to import TS files | ||
"prefer-destructuring": ["error", { object: true, array: false }], | ||
"react/default-props-match-prop-types": 0 | ||
} | ||
}; |
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 @@ | ||
module.exports = require('@box/frontend/prettier/prettierrc.js'); |
This file was deleted.
Oops, something went wrong.
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,12 +1,21 @@ | ||
# @desktop @mobile @enabled | ||
language: node_js | ||
node_js: | ||
- '8' | ||
cache: yarn | ||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
- '10' | ||
addons: | ||
apt: | ||
packages: | ||
- libgconf-2-4 | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
- ~/.cache/Cypress | ||
before_install: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.19.0 | ||
- export HUSKY_SKIP_HOOKS=1 | ||
- export PATH=$HOME/.yarn/bin:$PATH | ||
- export TZ=America/Los_Angeles | ||
jobs: | ||
include: | ||
- name: "Code Lint" | ||
|
@@ -15,3 +24,7 @@ jobs: | |
script: yarn test | ||
- name: "E2E Tests" | ||
script: yarn test:e2e | ||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] |
Validating CODEOWNERS rules …
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 @@ | ||
# Root | ||
* @box/ui-elements |
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,70 +1,2 @@ | ||
module.exports = { | ||
rules: { | ||
"body-leading-blank": [ | ||
2, | ||
"always" | ||
], | ||
"body-max-length": [ | ||
0 | ||
], | ||
"body-min-length": [ | ||
0 | ||
], | ||
"body-tense": [ | ||
0, | ||
"never" | ||
], | ||
"footer-leading-blank": [ | ||
0, | ||
"never" | ||
], | ||
"header-max-length": [ | ||
2, | ||
"always", | ||
72 | ||
], | ||
"header-min-length": [ | ||
2, | ||
"always", | ||
3 | ||
], | ||
"subject-tense": [ | ||
0 | ||
], | ||
"subject-max-length": [ | ||
0 | ||
], | ||
"subject-min-length": [ | ||
0 | ||
], | ||
"type-case": [ | ||
0, | ||
"never" | ||
], | ||
"type-empty": [ | ||
2, | ||
"never" | ||
], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"Fix", | ||
"New", | ||
"Breaking", | ||
"Docs", | ||
"Build", | ||
"Upgrade", | ||
"Chore", | ||
"Update", | ||
"Release" | ||
] | ||
], | ||
"type-max-length": [ | ||
0 | ||
], | ||
"type-min-length": [ | ||
0 | ||
] | ||
} | ||
}; | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
module.exports = require('@box/frontend/commitlint/commitlint.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
'*.js': ['eslint --fix', 'git add'], | ||
'*.json': ['prettier --write --parser=json', 'git add'], | ||
'*.html': ['prettier --write --parser=html', 'git add'], | ||
'*.md': ['prettier --write --parser=markdown', 'git add'], | ||
'*.scss': ['prettier --write --parser=scss', 'stylelint --syntax scss --fix', 'git add'], | ||
'*.ts': ['eslint --ext=.ts --fix', 'git add'], | ||
'*.tsx': ['eslint --ext=.tsx --fix', 'git add'], | ||
}; |
Oops, something went wrong.