Skip to content

Commit

Permalink
TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
rosslh committed Feb 17, 2025
1 parent 94ffe4b commit 9d53ffa
Show file tree
Hide file tree
Showing 24 changed files with 3,186 additions and 711 deletions.
30 changes: 0 additions & 30 deletions .eslintrc.js

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint
on:
push:
branches:
- "*"
- "*/*"
- "dependabot/*/*/*"

jobs:
Test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: npm install and build
run: |
npm ci
npm run build
- name: lint
run: |
npm run lint
24 changes: 24 additions & 0 deletions .github/workflows/TypeCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Type check
on:
push:
branches:
- "*"
- "*/*"
- "dependabot/*/*/*"

jobs:
Test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: npm install and build
run: |
npm ci
npm run build
- name: tsc
run: |
npm run tsc
142 changes: 71 additions & 71 deletions dataCaches/temp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,69 +3,69 @@ Land-Ocean Temperature Index (C)

Year No_Smoothing Lowess(5)
----------------------------
1880 -0.18 -0.11
1881 -0.10 -0.14
1882 -0.12 -0.18
1883 -0.18 -0.21
1884 -0.29 -0.25
1885 -0.34 -0.27
1886 -0.32 -0.28
1887 -0.37 -0.28
1888 -0.18 -0.27
1880 -0.17 -0.10
1881 -0.09 -0.13
1882 -0.11 -0.17
1883 -0.17 -0.20
1884 -0.28 -0.24
1885 -0.33 -0.26
1886 -0.31 -0.27
1887 -0.36 -0.27
1888 -0.17 -0.26
1889 -0.11 -0.26
1890 -0.36 -0.26
1891 -0.23 -0.26
1892 -0.28 -0.27
1893 -0.32 -0.27
1894 -0.31 -0.25
1895 -0.23 -0.23
1896 -0.12 -0.21
1897 -0.12 -0.19
1898 -0.28 -0.17
1890 -0.35 -0.25
1891 -0.22 -0.26
1892 -0.27 -0.26
1893 -0.31 -0.26
1894 -0.30 -0.24
1895 -0.23 -0.22
1896 -0.11 -0.21
1897 -0.11 -0.18
1898 -0.27 -0.17
1899 -0.18 -0.18
1900 -0.09 -0.21
1900 -0.09 -0.20
1901 -0.16 -0.24
1902 -0.29 -0.27
1903 -0.38 -0.29
1904 -0.48 -0.32
1905 -0.27 -0.34
1902 -0.28 -0.26
1903 -0.37 -0.28
1904 -0.47 -0.31
1905 -0.26 -0.34
1906 -0.22 -0.36
1907 -0.39 -0.38
1907 -0.38 -0.37
1908 -0.43 -0.39
1909 -0.49 -0.41
1910 -0.44 -0.42
1911 -0.44 -0.40
1912 -0.37 -0.36
1910 -0.44 -0.41
1911 -0.44 -0.39
1912 -0.36 -0.36
1913 -0.35 -0.33
1914 -0.16 -0.32
1915 -0.15 -0.31
1916 -0.37 -0.30
1915 -0.14 -0.31
1916 -0.36 -0.30
1917 -0.46 -0.30
1918 -0.30 -0.30
1919 -0.28 -0.30
1920 -0.28 -0.28
1921 -0.19 -0.27
1922 -0.29 -0.26
1923 -0.27 -0.24
1919 -0.28 -0.29
1920 -0.27 -0.28
1921 -0.19 -0.26
1922 -0.28 -0.25
1923 -0.26 -0.24
1924 -0.27 -0.23
1925 -0.22 -0.22
1926 -0.11 -0.22
1926 -0.10 -0.22
1927 -0.22 -0.21
1928 -0.20 -0.20
1928 -0.20 -0.19
1929 -0.36 -0.19
1930 -0.16 -0.19
1931 -0.10 -0.19
1932 -0.16 -0.18
1933 -0.28 -0.17
1934 -0.12 -0.16
1935 -0.20 -0.14
1936 -0.15 -0.11
1930 -0.15 -0.19
1931 -0.09 -0.18
1932 -0.16 -0.17
1933 -0.28 -0.16
1934 -0.12 -0.15
1935 -0.19 -0.13
1936 -0.14 -0.10
1937 -0.03 -0.06
1938 0.00 -0.02
1938 0.00 -0.01
1939 -0.02 0.03
1940 0.12 0.06
1941 0.18 0.09
1942 0.06 0.10
1941 0.19 0.09
1942 0.07 0.10
1943 0.09 0.10
1944 0.20 0.07
1945 0.09 0.04
Expand All @@ -82,9 +82,9 @@ Year No_Smoothing Lowess(5)
1956 -0.19 -0.05
1957 0.05 -0.04
1958 0.06 -0.01
1959 0.03 0.01
1960 -0.03 0.03
1961 0.06 0.01
1959 0.03 0.02
1960 -0.02 0.03
1961 0.06 0.02
1962 0.03 -0.01
1963 0.05 -0.03
1964 -0.20 -0.04
Expand All @@ -97,17 +97,17 @@ Year No_Smoothing Lowess(5)
1971 -0.08 0.00
1972 0.01 0.00
1973 0.16 -0.00
1974 -0.07 0.01
1974 -0.07 0.00
1975 -0.01 0.02
1976 -0.10 0.04
1977 0.18 0.07
1978 0.07 0.12
1978 0.06 0.12
1979 0.16 0.16
1980 0.26 0.20
1980 0.25 0.19
1981 0.32 0.21
1982 0.14 0.22
1982 0.14 0.21
1983 0.31 0.21
1984 0.16 0.21
1984 0.15 0.21
1985 0.12 0.22
1986 0.18 0.24
1987 0.32 0.27
Expand All @@ -118,33 +118,33 @@ Year No_Smoothing Lowess(5)
1992 0.22 0.33
1993 0.23 0.33
1994 0.31 0.34
1995 0.44 0.37
1995 0.44 0.36
1996 0.33 0.40
1997 0.47 0.42
1997 0.46 0.42
1998 0.61 0.44
1999 0.38 0.47
2000 0.39 0.50
2001 0.53 0.52
2002 0.63 0.55
2003 0.62 0.58
2002 0.63 0.54
2003 0.61 0.58
2004 0.53 0.61
2005 0.68 0.62
2006 0.64 0.62
2006 0.63 0.62
2007 0.66 0.63
2008 0.54 0.64
2009 0.66 0.64
2010 0.73 0.65
2011 0.61 0.67
2012 0.65 0.70
2013 0.68 0.74
2014 0.75 0.79
2015 0.90 0.83
2016 1.01 0.88
2009 0.65 0.64
2010 0.72 0.64
2011 0.61 0.66
2012 0.64 0.69
2013 0.67 0.74
2014 0.75 0.78
2015 0.89 0.83
2016 1.01 0.87
2017 0.92 0.91
2018 0.85 0.93
2019 0.98 0.94
2019 0.97 0.94
2020 1.01 0.97
2021 0.85 1.02
2021 0.84 1.03
2022 0.89 1.08
2023 1.17 1.13
2024 1.28 1.19
2023 1.17 1.14
2024 1.28 1.20
26 changes: 26 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
{
languageOptions: { globals: { ...globals.browser, ...globals.node } },
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
},
],
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];
Loading

0 comments on commit 9d53ffa

Please sign in to comment.