Skip to content

Commit

Permalink
Merge pull request #20 from aganders3/lint-ci
Browse files Browse the repository at this point in the history
Add linting, formatting, and CI workflow
  • Loading branch information
aganders3 authored Jan 29, 2024
2 parents e5310c9 + 256962a commit c95fffc
Show file tree
Hide file tree
Showing 13 changed files with 491 additions and 2,683 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-env node */
module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["react", "react-hooks", "@typescript-eslint", "prettier"],
root: true,
rules: {
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"camelcase": "error",
"spaced-comment": "error",
"semi": ["error", "always"],
"quotes": ["error", "double"],
"no-duplicate-imports": "error",
},
settings: {
"import/resolver": {
typescript: {}
},
"react": {
"version": "detect"
},
},
};
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
branches:
- main
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 21
- run: npm ci
- run: npm run lint
Loading

0 comments on commit c95fffc

Please sign in to comment.