-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '436-establish-a-global-eslint-configuration-file-at-the…
…-root-level' into 'dev' Resolve "Establish a global ESLint configuration file at the root level" Closes #436 See merge request ergo/rosen-bridge/ui!361
- Loading branch information
Showing
89 changed files
with
2,665 additions
and
2,301 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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
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,81 @@ | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin'; | ||
import globals from 'globals'; | ||
import pluginJs from '@eslint/js'; | ||
import typescriptParser from '@typescript-eslint/parser'; | ||
import prettier from 'eslint-config-prettier'; | ||
import reactRefresh from 'eslint-plugin-react-refresh'; | ||
import reactHooks from 'eslint-plugin-react-hooks'; | ||
|
||
export default [ | ||
{ | ||
ignores: ['**/dist/*'], | ||
}, | ||
{ | ||
files: [ | ||
'networks/**/*.{js,jsx,ts,tsx}', | ||
'packages/**/*.{js,jsx,ts,tsx}', | ||
'wallets/**/*.{js,jsx,ts,tsx}', | ||
], | ||
rules: { | ||
...pluginJs.configs.recommended.rules, | ||
...typescriptEslint.configs.recommended.rules, | ||
}, | ||
plugins: { | ||
'@typescript-eslint': typescriptEslint, | ||
}, | ||
languageOptions: { | ||
parser: typescriptParser, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
'networks/**/*.{js,jsx,ts,tsx}', | ||
'packages/asset-calculator/**/*.{js,jsx,ts,tsx}', | ||
], | ||
languageOptions: { | ||
globals: globals.node, | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
'packages/common-hooks/**/*.{js,jsx,ts,tsx}', | ||
'packages/constants/**/*.{js,jsx,ts,tsx}', | ||
'packages/icons/**/*.{js,jsx,ts,tsx}', | ||
'packages/swr-helpers/**/*.{js,jsx,ts,tsx}', | ||
'packages/swr-mock/**/*.{js,jsx,ts,tsx}', | ||
'packages/types/**/*.{js,jsx,ts,tsx}', | ||
'packages/utils/**/*.{js,jsx,ts,tsx}', | ||
'wallets/**/*.{js,jsx,ts,tsx}', | ||
], | ||
languageOptions: { | ||
globals: globals.browser, | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
'packages/shared-contexts/**/*.{js,jsx,ts,tsx}', | ||
'packages/ui-kit/**/*.{js,jsx,ts,tsx}', | ||
], | ||
plugins: { | ||
'react-refresh': reactRefresh, | ||
'react-hooks': reactHooks, | ||
}, | ||
rules: { | ||
'react-refresh/only-export-components': 'warn', | ||
...reactHooks.configs.recommended.rules, | ||
}, | ||
}, | ||
/** | ||
* TODO: revise the global ESLint configuration rules | ||
* local:ergo/rosen-bridge/ui#442 | ||
*/ | ||
{ | ||
rules: { | ||
'no-undef': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
}, | ||
}, | ||
prettier, | ||
]; |
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
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 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
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
Oops, something went wrong.