Skip to content

Commit

Permalink
Partial TypeScript refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
demsking committed Jul 23, 2022
1 parent 153a559 commit 8c4223a
Show file tree
Hide file tree
Showing 112 changed files with 4,023 additions and 3,937 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ test/MethodParser.spec.js
test/issues.spec.js
test/examples
test/tutorial
jest.config.js
sample.js
esm/
32 changes: 26 additions & 6 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,32 @@
root: true
env:
node: true
parser: '@typescript-eslint/parser'
plugins:
- import
- '@typescript-eslint'
extends:
- eslint:recommended
- airbnb-base
- plugin:import/recommended
- plugin:import/typescript
- plugin:@typescript-eslint/recommended
- plugin:security/recommended
parserOptions:
ecmaVersion: 13
ecmaVersion: 2019
sourceType: module
rules:
'@typescript-eslint/ban-types': 'off'
'@typescript-eslint/indent': 'off'
'@typescript-eslint/explicit-function-return-type': 'off'
'@typescript-eslint/explicit-member-accessibility': 'off'
'@typescript-eslint/interface-name-prefix': 'off'
'@typescript-eslint/no-empty-function': 'off'
'@typescript-eslint/no-explicit-any': 'off'
'@typescript-eslint/no-empty-interface': 'off'
'@typescript-eslint/no-this-alias': 'off'
'@typescript-eslint/no-unused-vars': 'off'
'@typescript-eslint/no-var-requires': 'off'
arrow-body-style: 'off'
array-bracket-spacing:
- error
Expand All @@ -25,9 +43,6 @@ rules:
imports: never
exports: never
functions: never
complexity:
- error
- max: 40
class-methods-use-this: 'off'
default-case: 'off'
global-require: 'off'
Expand All @@ -44,7 +59,7 @@ rules:
import/no-named-as-default: 'off'
import/no-named-as-default-member: 'off'
import/no-unresolved:
- 'error'
- 'off'
import/order: 'off'
import/prefer-default-export: 'off'
jest/expect-expect: 'off'
Expand All @@ -62,12 +77,13 @@ rules:
no-use-before-define: 'off'
no-restricted-syntax: 'off'
no-shadow: 'off'
no-trailing-spaces: 'error'
no-useless-constructor: 'off'
no-var: error
max-classes-per-file: 'off'
max-len:
- error
- code: 128
- code: 148
comments: 128
tabWidth: 2
ignoreUrls: true
Expand Down Expand Up @@ -127,6 +143,10 @@ rules:
- error
- single
- avoidEscape: true
security/detect-non-literal-fs-filename: 'off'
security/detect-non-literal-regexp: 'off'
security/detect-object-injection: 'off'
security/detect-unsafe-regex: 'off'
semi:
- error
- always
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ jspm_packages
*.odp
*.pdf
*.png
esm/
sample.js
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tests & coverage:
stage: tests
script:
- yarn install
- yarn test
- yarn coverage
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
artifacts:
paths:
Expand Down
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
src
test
coverage
.*
sample.js
jest.config.js
vitest.ts
result.json
tsconfig.json
*.tgz
*.nix
*.yml
Expand Down
61 changes: 0 additions & 61 deletions index.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions jest.config.js

This file was deleted.

46 changes: 0 additions & 46 deletions lib/Loader.d.ts

This file was deleted.

52 changes: 0 additions & 52 deletions lib/Loader.js

This file was deleted.

12 changes: 0 additions & 12 deletions lib/entity/AbstractCategorizeEntry.js

This file was deleted.

10 changes: 0 additions & 10 deletions lib/entity/AbstractCategorizeTypeEntry.js

This file was deleted.

10 changes: 0 additions & 10 deletions lib/entity/AbstractDecorativeEntry.js

This file was deleted.

5 changes: 0 additions & 5 deletions lib/entity/AbstractEntry.js

This file was deleted.

9 changes: 0 additions & 9 deletions lib/entity/AbstractLiteralEntry.js

This file was deleted.

11 changes: 0 additions & 11 deletions lib/entity/ComputedEntry.js

This file was deleted.

10 changes: 0 additions & 10 deletions lib/entity/DataEntry.js

This file was deleted.

7 changes: 0 additions & 7 deletions lib/entity/DescriptionEntry.js

This file was deleted.

Loading

0 comments on commit 8c4223a

Please sign in to comment.