Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

feat: adds typscript and node v20 support #350

Merged
merged 8 commits into from
Nov 13, 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
38 changes: 32 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,52 @@
{
"parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"env": {
"browser": true,
"jasmine": true,
"node": true,
"jest": true
},
"plugins": ["prettier"],
"plugins": ["prettier", "import", "react", "@typescript-eslint"],
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:testing-library/recommended",
"plugin:jest-dom/recommended"
"plugin:jest-dom/recommended",
"eslint:recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"rules": {
"import/no-unresolved": "error",
"prettier/prettier": "error",
"quotes": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/comma-dangle": "off",
"@typescript-eslint/no-explicit-any": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-no-bind": "off",
"react/forbid-prop-types": "off"
},
"settings": {
"import/core-modules": ["test-utils"]
"import/core-modules": ["test-utils"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
},
"react": {
"version": "detect"
}
}
}
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14.x', '16.x', '18.x']
node-version: ["16.x", "18.x", "20.x"]

steps:
- uses: actions/checkout@v4
- name: Use Node.js
Expand All @@ -18,4 +17,3 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build:ci

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ build/
junit.xml
.vscode
.npmrc
.nvmrc
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /var/app
COPY fixtures /var/app/fixtures
COPY public /var/app/public
COPY src /var/app/src
COPY babel.config.json jest.config.json vite.config.js .env .eslintignore .eslintrc package-lock.json index.html package.json /var/app/
COPY babel.config.json jest.config.json vite.config.ts tsconfig.json tsconfig.node.json .env vite-env.d.ts .eslintignore .eslintrc package-lock.json index.html package.json /var/app/

# Build the app
RUN npm install
Expand Down
4 changes: 4 additions & 0 deletions declarations.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "*.png" {
const value: any;
export default value;
}
Loading