-
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 default eslint config to disable various rules as per typescript-eslint recommendation * add new eslint config to run with ci * add script to package.json to run CI specific linting * update CI to lint first and only run build on successful linting Signed-off-by: eXhumer <[email protected]>
- Loading branch information
Showing
4 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
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,26 @@ | ||
import js from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import importPlugin from 'eslint-plugin-import'; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'.venv/*', | ||
'.webpack/*', | ||
], | ||
}, | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
importPlugin.flatConfigs.recommended, | ||
importPlugin.flatConfigs.electron, | ||
importPlugin.flatConfigs.typescript, | ||
{ | ||
rules: { | ||
'import/named': 'off', | ||
'import/namespace': 'off', | ||
'import/default': 'off', | ||
'import/no-named-as-default-member': 'off', | ||
'import/no-unresolved': 'off', | ||
}, | ||
}, | ||
]; |
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