-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update eslint and mocha setup * Update workflow * Fix and supress eslint errors
- Loading branch information
1 parent
459a69d
commit 8ce67b1
Showing
17 changed files
with
2,218 additions
and
3,894 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extension": ["ts"], | ||
"spec": "test/**/*.spec.ts", | ||
"require": "ts-node/register" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import love from 'eslint-config-love' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default [ | ||
love, | ||
...tseslint.configs.strictTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
{ | ||
plugins: { | ||
tseslint: tseslint | ||
}, | ||
rules: { | ||
'@typescript-eslint/restrict-template-expressions': ['error', { | ||
allowNumber: true, | ||
}], | ||
"@typescript-eslint/unbound-method": ['error', { | ||
ignoreStatic: true, | ||
}], | ||
}, | ||
languageOptions: { | ||
parser: tseslint.parser, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
} | ||
} | ||
}, | ||
{ | ||
ignores: ['dist/**/*.*', '**/*.js', '**/*.mjs'] | ||
}, | ||
{ | ||
files: ['src/**/*.ts'], | ||
languageOptions: { | ||
parserOptions: { | ||
project: ['tsconfig.json'] | ||
} | ||
} | ||
}, | ||
{ | ||
files: ['test/**/*.ts'], | ||
languageOptions: { | ||
parserOptions: { | ||
project: ['tsconfig.test.json'] | ||
} | ||
}, | ||
rules: { | ||
'@typescript-eslint/restrict-template-expressions': ['error', { | ||
allowNumber: true, | ||
}], | ||
} | ||
} | ||
] |
Oops, something went wrong.