-
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.
- Loading branch information
1 parent
459a69d
commit c5f9b33
Showing
8 changed files
with
2,162 additions
and
3,870 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,48 @@ | ||
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/no-non-null-assertion': 'warn', | ||
'import/first': 'error', | ||
'import/newline-after-import': 'error', | ||
'import/no-duplicates': 'error', | ||
}, | ||
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/unbound-method': 'off', | ||
} | ||
} | ||
] |
Oops, something went wrong.