-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into dependencies
* origin/main: (205 commits) chore(release): publish feat(NotificationItemNew): add new forum notification icons ci: block PRs until automerge label is added, other ci cleanup chore(release): publish style(Anchor): Adds new anchor variants and styles necessary for usage [GM-159] [GM-160] chore(release): publish fix(Card)!: Animation Fixes and Gamut migration chore(release): publish fix(NotificationItemNew): tracking fix & accessibility improvement chore(release): publish feat(Form): Input, Select, TextArea, + Error Updates (#1439) chore(release): publish feat(PageHero): don't hide video on xs screens (#1505) chore(release): publish feat(GlobalHeader): header animation on scroll (#1430) chore(release): publish feat(GridForm): Add tooltip to gridform fields chore(release): publish fix(Modal): add aria-label prop chore(release): publish ...
- Loading branch information
Showing
394 changed files
with
15,543 additions
and
7,827 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
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,16 @@ | ||
name: Auto Request Review | ||
|
||
on: | ||
pull_request: | ||
types: [opened, ready_for_review, reopened] | ||
|
||
jobs: | ||
auto-request-review: | ||
name: Auto Request Review | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Request review based on files changes and/or groups the author belongs to | ||
uses: necojackarc/auto-request-review@v0.5.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
config: .github/reviewers.yml # Config file location override |
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,13 @@ | ||
name: Check labels | ||
|
||
on: | ||
pull_request: | ||
types: [opened, labeled, unlabeled, reopened] | ||
|
||
jobs: | ||
ship-it: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: sugarshin/required-labels-action@v0.3.1 | ||
with: | ||
required_all: 'Ship It :shipit:' |
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,3 @@ | ||
module.exports = { | ||
'gamut-import-paths': require('./eslint/gamut-import-paths').default, | ||
}; |
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,71 @@ | ||
module.exports.default = { | ||
create(context) { | ||
return { | ||
'ImportDeclaration[source.value=/(^@)codecademy(\\u002F)gamut/]': function ( | ||
node | ||
) { | ||
const filename = context.getFilename(); | ||
const importPath = node.source.value; | ||
|
||
const fileDirectory = filename.split('/packages/')[1].split('/')[0]; | ||
const importPackage = importPath.split('@codecademy/')[1].split('/')[0]; | ||
|
||
if (fileDirectory === importPackage) { | ||
context.report({ | ||
messageId: 'useRelativeImport', | ||
node, | ||
}); | ||
return; | ||
} | ||
|
||
if (importPath.includes('/src')) { | ||
context.report({ | ||
fix: (fixer) => { | ||
const indexOfSrc = | ||
node.source.range[0] + importPath.search('/src'); | ||
if (importPath.endsWith('/src')) { | ||
return fixer.removeRange([indexOfSrc + 1, node.range[1] - 2]); | ||
} | ||
}, | ||
messageId: 'removeSrc', | ||
node, | ||
}); | ||
return; | ||
} | ||
|
||
if (importPath.includes('/dist')) { | ||
context.report({ | ||
fix: (fixer) => { | ||
const indexOfDist = | ||
node.source.range[0] + importPath.search('/dist'); | ||
if (importPath.endsWith('/dist')) { | ||
return fixer.removeRange([indexOfDist + 1, node.range[1] - 2]); | ||
} | ||
}, | ||
messageId: 'removeDist', | ||
node, | ||
}); | ||
} | ||
}, | ||
}; | ||
}, | ||
defaultOptions: [], | ||
meta: { | ||
docs: { | ||
category: 'Possible Errors', | ||
description: 'Ensure Gamut import statements have proper module paths.', | ||
recommended: 'error', | ||
}, | ||
fixable: true, | ||
messages: { | ||
removeDist: | ||
'There is no need to append /dist to the end of this module path.', | ||
removeSrc: | ||
'There is no need to append /src to the end of this module path.', | ||
useRelativeImport: 'Use a relative path for this import statement.', | ||
}, | ||
type: 'suggestion', | ||
schema: [], | ||
}, | ||
name: 'gamut-import-paths', | ||
}; |
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.