Skip to content

Commit

Permalink
Merge pull request #22 from kaelynj/add-linting
Browse files Browse the repository at this point in the history
Add linting
  • Loading branch information
kaelynj authored Aug 26, 2024
2 parents ba551f2 + d644f29 commit 4fef765
Show file tree
Hide file tree
Showing 4 changed files with 2,388 additions and 686 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ And to serve the built website, execute:
```bash
npm run serve
```

## Run linter

A linter is included to ensure code quality
```bash
npm run lint
```
```
```
27 changes: 27 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginReact from "eslint-plugin-react";

export default [
{
files: ["**/*.{js,mjs,cjs,jsx}"],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
pluginJs.configs.recommended,
pluginReact.configs.flat.recommended,
{
settings: {
"react": {
"version":"detect",
},
},
}

];
Loading

0 comments on commit 4fef765

Please sign in to comment.