Skip to content

Commit

Permalink
chore: replace ts files with jsdoc fp-60 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove authored Dec 5, 2023
1 parent 2f649a6 commit 58b4699
Show file tree
Hide file tree
Showing 66 changed files with 3,496 additions and 5,318 deletions.
56 changes: 19 additions & 37 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
env:
es2021: true
browser: true
jest: true

parserOptions:
ecmaVersion: 2021
ecmaVersion: 2022
sourceType: module
project: tsconfig.json

extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended

plugins:
- jest-dom

settings:
import/resolver:
alias:
extensions: ['.ts']
map:
- ['~', './src']
- plugin:jsdoc/recommended-typescript-flavor-error

ignorePatterns:
- build
Expand All @@ -35,25 +22,20 @@ rules:
arrow-parens:
- error
- always
'@typescript-eslint/explicit-function-return-type':
- error
'@typescript-eslint/no-explicit-any':
- error
'@typescript-eslint/comma-dangle':
- error
- always-multiline
'@typescript-eslint/object-curly-spacing':
- error
- always
'@typescript-eslint/quotes':
- error
- single
'@typescript-eslint/semi':
- error
- always
'@typescript-eslint/no-unused-vars':
- error
- vars: all
args: after-used
argsIgnorePattern: ^_
caughtErrors: all
jsdoc/require-jsdoc:
- error
- checkConstructors: false
checkGetters: true
checkSetters: true
contexts:
- ArrowFunctionExpression
- ClassProperty
- FunctionDeclaration
- FunctionExpression
- MethodDefinition
jsdoc/valid-types:
- off
jsdoc/require-returns-description:
- off
jsdoc/require-param-description:
- off
2 changes: 2 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ quoteProps: as-needed
trailingComma: all
bracketSpacing: true
arrowParens: always
plugins:
- prettier-plugin-jsdoc
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('jest').Config} */
const config = {
testEnvironment: 'jsdom',
transform: {},
};

export default config;
14 changes: 0 additions & 14 deletions jest.config.ts

This file was deleted.

Loading

0 comments on commit 58b4699

Please sign in to comment.