generated from mProjectsCode/lemons-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
403dc93
commit b46a53b
Showing
9 changed files
with
5,216 additions
and
4,056 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import only_warn from 'eslint-plugin-only-warn'; | ||
import no_relative_import_paths from 'eslint-plugin-no-relative-import-paths'; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: ['npm/', 'node_modules/', 'exampleVault/', 'automation/', 'main.js', '*.svelte'], | ||
}, | ||
{ | ||
files: ['src/**/*.ts'], | ||
extends: [ | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...tseslint.configs.recommendedTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
], | ||
languageOptions: { | ||
parser: tseslint.parser, | ||
parserOptions: { | ||
project: true, | ||
}, | ||
}, | ||
plugins: { | ||
// @ts-ignore | ||
'only-warn': only_warn, | ||
'no-relative-import-paths': no_relative_import_paths, | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': ['warn'], | ||
|
||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' }], | ||
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', fixStyle: 'inline-type-imports' }], | ||
|
||
'@typescript-eslint/no-confusing-void-expression': ['error', { ignoreArrowShorthand: true }], | ||
'@typescript-eslint/restrict-template-expressions': 'off', | ||
|
||
'no-relative-import-paths/no-relative-import-paths': ['warn', { allowSameFolder: false }], | ||
|
||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-inferrable-types': 'off', | ||
'@typescript-eslint/explicit-function-return-type': ['warn'], | ||
'@typescript-eslint/require-await': 'off', | ||
}, | ||
}, | ||
); |
Oops, something went wrong.