-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add code linting and formatting (#154)
- Loading branch information
Showing
17 changed files
with
224 additions
and
54 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
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
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,44 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.1.2/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"files": { | ||
"ignore": [".devcontainer", ".vscode", "node_modules", ".docusaurus", "build", "pdf"] | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"all": true, | ||
"style": { | ||
"all": true, | ||
"useEnumInitializers": "off", | ||
"noNonNullAssertion": "off" | ||
}, | ||
"suspicious": { | ||
"all": true, | ||
"noConsoleLog": "off" | ||
}, | ||
"nursery": { | ||
"all": true, | ||
"useExhaustiveDependencies": "off" | ||
}, | ||
"complexity": { | ||
"all": true, | ||
"noForEach": "off" | ||
} | ||
} | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"lineWidth": 100, | ||
"indentSize": 2 | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single", | ||
"trailingComma": "all" | ||
} | ||
} | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"label": "Intro - Start Here", | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Where to start learning about FOME." | ||
} | ||
} | ||
"label": "Intro - Start Here", | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Where to start learning about FOME." | ||
} | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"label": "Fundamentals of FOME tuning", | ||
"link": { | ||
"type": "generated-index", | ||
"description": "The place to learn how to start tuning your FOME Hardware" | ||
} | ||
} | ||
"label": "Fundamentals of FOME tuning", | ||
"link": { | ||
"type": "generated-index", | ||
"description": "The place to learn how to start tuning your FOME Hardware" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"type": "generated-index", | ||
"description": "Information on all sensor inputs and data outputs" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,11 +13,8 @@ const pdfName = 'wiki.fome.pdf'; | |
const pdfChecksum = () => { | ||
const data = fs.readFileSync(`static/pdf/${pdfName}`, 'utf8'); | ||
|
||
return crypto | ||
.createHash('md5') | ||
.update(data, 'utf8') | ||
.digest('hex'); | ||
} | ||
return crypto.createHash('md5').update(data, 'utf8').digest('hex'); | ||
}; | ||
|
||
const pdfUrl = `${isBuild ? url : 'http://localhost:3000'}/pdf/${pdfName}?v=${pdfChecksum()}`; | ||
|
||
|
@@ -60,12 +57,9 @@ const config = { | |
routeBasePath: '/', // Serve the docs at the site's root | ||
sidebarPath: require.resolve('./sidebars.js'), | ||
// Remove this to remove the "edit this page" links. | ||
editUrl: | ||
'https://github.com/FOME-Tech/wiki/tree/master', | ||
editUrl: 'https://github.com/FOME-Tech/wiki/tree/master', | ||
remarkPlugins: [require('remark-math')], | ||
rehypePlugins: [ | ||
[require('rehype-katex'), { output: 'mathml' }] | ||
], | ||
rehypePlugins: [[require('rehype-katex'), { output: 'mathml' }]], | ||
}, | ||
blog: false, | ||
theme: { | ||
|
@@ -79,8 +73,7 @@ const config = { | |
{ | ||
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css', | ||
type: 'text/css', | ||
integrity: | ||
'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM', | ||
integrity: 'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM', | ||
crossorigin: 'anonymous', | ||
}, | ||
], | ||
|
@@ -157,7 +150,7 @@ const config = { | |
style: { | ||
height: 30, | ||
marginTop: -2, | ||
} | ||
}, | ||
}, | ||
items: [ | ||
{ | ||
|
Oops, something went wrong.