Skip to content

Commit

Permalink
in progress: v6
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertk committed May 11, 2022
1 parent 35061ab commit 92b8e7d
Show file tree
Hide file tree
Showing 19 changed files with 1,771 additions and 116 deletions.
47 changes: 35 additions & 12 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ extends:
plugins:
- node
- prettier
env:
es2022: true
rules:
prettier/prettier: error
block-scoped-var: error
Expand All @@ -27,28 +29,49 @@ rules:
property: only
overrides:
- files:
- "**/*.ts"
- "**/*.tsx"
- "**/**.ts"
- "**/**.tsx"
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
extends:
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
rules:
"@typescript-eslint/no-non-null-assertion": 'off'
"@typescript-eslint/no-use-before-define": 'off'
"@typescript-eslint/no-warning-comments": 'off'
"@typescript-eslint/no-empty-function": 'off'
"@typescript-eslint/no-var-requires": 'off'
"@typescript-eslint/explicit-function-return-type": 'off'
"@typescript-eslint/explicit-module-boundary-types": 'off'
"@typescript-eslint/ban-types": 'off'
"@typescript-eslint/camelcase": 'off'
# "@typescript-eslint/no-use-before-define": 'off'
# "@typescript-eslint/no-warning-comments": 'off'
# "@typescript-eslint/no-empty-function": 'off'
# "@typescript-eslint/no-var-requires": 'off'
# "@typescript-eslint/explicit-function-return-type": 'off'
# "@typescript-eslint/explicit-module-boundary-types": 'off'
# "@typescript-eslint/ban-types": 'off'
# "@typescript-eslint/camelcase": 'off'
"@typescript-eslint/no-misused-promises": ["error", {"checksvoidReturn": false}]
node/no-missing-import: 'off'
node/no-empty-function: 'off'
node/no-unsupported-features/es-syntax: 'off'
node/no-missing-require: 'off'
node/shebang: 'off'
no-dupe-class-members: 'off'
require-atomic-updates: 'off'
node/no-unpublished-import:
- error
- convertPath:
src/**/*.ts:
- "^src/(.+?)\\.ts$"
- "lib/$1.js"
# no-dupe-class-members: 'off'
# require-atomic-updates: 'off'
parserOptions:
project: './tsconfig.json'
ecmaVersion: 2018
sourceType: module
- files:
- "**/**.mjs"
parser: "@babel/eslint-parser"
parserOptions:
requireConfigFile: false
rules:
node/shebang: off
plugins:
- node
- prettier
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
Loading

0 comments on commit 92b8e7d

Please sign in to comment.