-
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 remote-tracking branch 'upstream/main' into tag-changes
- Loading branch information
Showing
151 changed files
with
4,934 additions
and
3,452 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,18 +1,70 @@ | ||
module.exports = { | ||
extends: 'standard', | ||
ignorePatterns: [ | ||
'**/fixtures/build/**' | ||
'**/fixtures/build/**', | ||
|
||
// Enable dotfile linting | ||
'!.*', | ||
'node_modules', | ||
'node_modules/.*' | ||
], | ||
overrides: [ | ||
{ | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:import/recommended', | ||
'plugin:n/recommended', | ||
'plugin:promise/recommended' | ||
], | ||
files: ['**/*.{cjs,js,mjs}'], | ||
parserOptions: { | ||
ecmaVersion: 'latest' | ||
}, | ||
plugins: [ | ||
'import', | ||
'n', | ||
'promise' | ||
], | ||
rules: { | ||
// Check import or require statements are A-Z ordered | ||
'import/order': [ | ||
'error', | ||
{ | ||
alphabetize: { order: 'asc' }, | ||
'newlines-between': 'always' | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
// Extensions required for ESM import | ||
files: ['**/*.mjs'], | ||
rules: { | ||
'import/extensions': [ | ||
'error', | ||
'always', | ||
{ | ||
ignorePackages: true, | ||
pattern: { | ||
cjs: 'always', | ||
js: 'always', | ||
mjs: 'always' | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
files: ['**/*.test.{cjs,js,mjs}'], | ||
env: { | ||
jest: true | ||
}, | ||
globals: { | ||
page: true, | ||
browser: true | ||
page: 'readonly', | ||
browser: 'readonly', | ||
jestPuppeteer: 'readonly' | ||
} | ||
} | ||
] | ||
], | ||
root: 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
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,4 +1,3 @@ | ||
|
||
const { goTo, isVisible } = require('../lib/puppeteer-helpers.js') | ||
|
||
describe('Back to top', () => { | ||
|
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,4 +1,3 @@ | ||
|
||
const { goTo } = require('../lib/puppeteer-helpers.js') | ||
|
||
describe('Component page', () => { | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
const { goTo } = require('../lib/puppeteer-helpers.js') | ||
|
||
describe('Example page', () => { | ||
|
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,12 @@ | ||
/** | ||
* Config | ||
*/ | ||
const navigation = require('./navigation') | ||
const paths = require('./paths') | ||
const ports = require('./ports') | ||
|
||
module.exports = { | ||
navigation, | ||
paths, | ||
ports | ||
} |
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,50 @@ | ||
/** | ||
* Navigation menu items | ||
* | ||
* @type {NavigationItem[]} | ||
*/ | ||
module.exports = [ | ||
{ | ||
label: 'Get started', | ||
url: 'get-started', | ||
includeInSearch: true | ||
}, | ||
{ | ||
label: 'Styles', | ||
url: 'styles', | ||
includeInSearch: true | ||
}, | ||
{ | ||
label: 'Components', | ||
url: 'components', | ||
includeInSearch: true | ||
}, | ||
{ | ||
label: 'Patterns', | ||
url: 'patterns', | ||
includeInSearch: true | ||
}, | ||
{ | ||
label: 'Community', | ||
url: 'community', | ||
includeInSearch: true | ||
} | ||
] | ||
|
||
/** | ||
* @typedef {object} NavigationItem | ||
* @property {string} label - Navigation item text | ||
* @property {string} url - URL path without leading slash | ||
* @property {boolean} includeInSearch - Include in search index | ||
* @property {NavigationSubItem[]} [items] - Navigation sub items | ||
*/ | ||
|
||
/** | ||
* @typedef {object} NavigationSubItem | ||
* @property {string} label - Navigation item text | ||
* @property {string} url - URL path without leading slash | ||
* @property {string[]} [aliases] - Additional search terms (optional) | ||
* @property {string[]} [headings] - Markdown extracted headings (optional) | ||
* @property {string} [order] - Menu item sort order (optional) | ||
* @property {string} [theme] - Menu heading to group by (optional) | ||
*/ |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { join, resolve } = require('path') | ||
|
||
// Repository root directory | ||
const rootPath = resolve(__dirname, '../') | ||
|
||
/** | ||
* Config paths | ||
*/ | ||
module.exports = { | ||
root: rootPath, | ||
public: join(rootPath, 'deploy/public'), | ||
source: join(rootPath, 'src'), | ||
views: join(rootPath, 'views') | ||
} |
Oops, something went wrong.