Skip to content

Commit

Permalink
Merge pull request #3 from tsastro/2-allocation-of-null-error
Browse files Browse the repository at this point in the history
In the end this was mostly about cleaning up the array allocation
  • Loading branch information
pahjbo authored Aug 29, 2024
2 parents fcc21c0 + 3624c42 commit 7b908ab
Show file tree
Hide file tree
Showing 7 changed files with 528 additions and 422 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/node_modules/
/.idea/
/dist/
/outdocs/
package-lock.json
22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
js.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
{
files: ["src/**/*.ts"],
// these are overriding good style for now to reduce the error count - the intention is to reintroduce gradually
rules : {
"prefer-const": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"no-array-constructor": "off", // see https://typescript-eslint.io/rules/no-array-constructor/
"@typescript-eslint/no-array-constructor": "off"
}
}


);
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,20 @@
},
"homepage": "https://github.com/tsastro/tsofa#readme",
"devDependencies": {
"@eslint/js": "^9.9.1",
"@types/node": "^20.7.1",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"eslint": "^8.49.0",
"eslint": "^9.9.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^46.8.1",
"eslint-plugin-prefer-arrow": "^1.2.3",
"globals": "^15.9.0",
"testyts": "^1.5.0",
"ts-node": "^10.9.1",
"typedoc": "^0.25.6",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"typescript-eslint": "^8.3.0"
},
"dependencies": {}
}
270 changes: 141 additions & 129 deletions src/main/ts/TSOFA.ts

Large diffs are not rendered by default.

255 changes: 110 additions & 145 deletions src/test/ts/TSOFATest.spec.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 7b908ab

Please sign in to comment.