Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumpy Bumps: Bump all dependencies, add CI tests #11

Merged
merged 5 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
pull_request: {}
push:
branches:
- main
tags:
- v*

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo "NVMRC=$(cat ./.nvmrc)" > $GITHUB_OUTPUT
id: nvm
- name: Use Node + Yarn
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn test

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/fermium
lts/hydrogen
9 changes: 4 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const {
const {
rules: { "no-param-reassign": airbnbNoParamReassignRules },
} = require("eslint-config-airbnb-base/rules/best-practices")

const thesisPrettierConfig = require("@thesis-co/prettier-config")
/* eslint-enable @typescript-eslint/no-var-requires */

module.exports = {
Expand Down Expand Up @@ -88,9 +90,6 @@ module.exports = {
"no-unused-vars": "off",
// .only tests being committed are typically a mistake
"no-only-tests/no-only-tests": "error",
"prettier/prettier": [
"error",
require("@thesis-co/prettier-config")
]
}
"prettier/prettier": ["error", thesisPrettierConfig],
},
}
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,26 @@
},
"dependencies": {
"@thesis-co/prettier-config": "github:thesis/prettier-config",
"@typescript-eslint/eslint-plugin": ">4.32.0",
"@typescript-eslint/parser": ">4.32.0",
"eslint-config-airbnb": "^19.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"@typescript-eslint/eslint-plugin": ">=6.4.1",
"@typescript-eslint/parser": "=6.4.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.3.0"
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0"
},
"peerDependencies": {
"eslint": ">=6.8.0"
},
"devDependencies": {
"eslint": "^7.28.0",
"prettier": "^2.4.1",
"typescript": "^4.4.3"
"eslint": "^8.48.0",
"prettier": "^3.0.2",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=14.0.0"
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading