-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor .solcover.js to use ES module syntax and add ESLint configur…
…ation for improved code quality
- Loading branch information
1 parent
0b1aab9
commit e77f946
Showing
4 changed files
with
2,422 additions
and
447 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
module.exports = { | ||
skipFiles: ['mocks'], | ||
}; | ||
export const skipFiles = ['mocks']; |
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,21 @@ | ||
import eslint from '@eslint/js'; | ||
import tseslint from '@typescript-eslint/eslint-plugin'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import importPlugin from 'eslint-plugin-import'; | ||
|
||
export default [ | ||
eslint.configs.recommended, | ||
{ | ||
languageOptions: { | ||
parser: tsParser, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
plugins: { | ||
'@typescript-eslint': tseslint, | ||
import: importPlugin, | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.