Skip to content

Commit

Permalink
fix: lint issues in example apps
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnwesson committed Sep 8, 2023
1 parent 3b90df8 commit 1f7f4c7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
3 changes: 1 addition & 2 deletions example-plugin-app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = getBaseConfig('eslint');

config.rules = {
'import/no-extraneous-dependencies': ['error', {
'devDependencies': [
devDependencies: [
'**/*.config.js',
'**/*.test.jsx',
'**/*.test.js',
Expand All @@ -19,7 +19,6 @@ config.rules = {
}],
'jsx-a11y/anchor-is-valid': ['error', {
components: ['Link'],
specialLink: [],
specialLink: ['to'],
aspects: ['noHref', 'invalidHref', 'preferButton'],
}],
Expand Down
3 changes: 2 additions & 1 deletion example-plugin-app/env.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-unused-vars
const config = {
ACCESS_TOKEN_COOKIE_NAME: 'edx-jwt-cookie-header-payload',
BASE_URL: 'http://localhost:8081',
Expand All @@ -23,4 +24,4 @@ const config = {
FAVICON_URL: 'https://edx-cdn.org/v3/default/favicon.ico',
IGNORED_ERROR_REGEX: null,
PORT: 8081,
}
};
3 changes: 1 addition & 2 deletions example/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = getBaseConfig('eslint');

config.rules = {
'import/no-extraneous-dependencies': ['error', {
'devDependencies': [
devDependencies: [
'**/*.config.js',
'**/*.test.jsx',
'**/*.test.js',
Expand All @@ -19,7 +19,6 @@ config.rules = {
}],
'jsx-a11y/anchor-is-valid': ['error', {
components: ['Link'],
specialLink: [],
specialLink: ['to'],
aspects: ['noHref', 'invalidHref', 'preferButton'],
}],
Expand Down
13 changes: 10 additions & 3 deletions example/src/PluginsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@ export default function PluginsPage() {
a plugin configuration like the one commented out above in PluginsPage.jsx.
</p>
<div className="d-flex flex-column">
<PluginSlot id="example" className="d-flex flex-column" pluginProps={{
className: 'flex-grow-1'
}} style={{ height: 400 }}>
<PluginSlot
id="example"
className="d-flex flex-column"
pluginProps={{
className: 'flex-grow-1',
}}
style={{
height: 400,
}}
>
<div key="default">This is default plugin content.</div>
</PluginSlot>
</div>
Expand Down

0 comments on commit 1f7f4c7

Please sign in to comment.