-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update packages / eslint / added web3-icons package (#96)
- Loading branch information
Showing
58 changed files
with
2,160 additions
and
1,897 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
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,68 @@ | ||
import js from '@eslint/js'; | ||
import globals from 'globals'; | ||
import tseslint from 'typescript-eslint'; | ||
import eslintReact from 'eslint-plugin-react'; | ||
import eslintReactHooks from 'eslint-plugin-react-hooks'; | ||
import prettierPlugin from 'eslint-plugin-prettier'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
import eslintPluginImport from 'eslint-plugin-import'; | ||
import eslintPluginNext from '@next/eslint-plugin-next'; | ||
|
||
/** @type {import('eslint').Linter.FlatConfig[]} */ | ||
export default tseslint.config( | ||
{ | ||
plugins: { | ||
'@typescript-eslint': tseslint.plugin, | ||
'react': eslintReact, | ||
'react-hooks': eslintReactHooks, | ||
prettier: prettierPlugin, | ||
'simple-import-sort': eslintPluginSimpleImportSort, | ||
'import': eslintPluginImport, | ||
'@next/next': eslintPluginNext, | ||
}, | ||
}, | ||
{ | ||
ignores: ['dist', 'node_modules', 'coverage', 'eslint.config.mjs', '.next', '.github', 'next.config.js', 'svgo.config.js'], | ||
}, | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.es2020, | ||
}, | ||
parserOptions: { | ||
project: ['tsconfig.json'], | ||
}, | ||
parser: tseslint.parser, | ||
ecmaVersion: 'latest' | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.{ts,tsx}'], | ||
extends: [tseslint.configs.disableTypeChecked], | ||
rules: { | ||
...eslintConfigPrettier.rules, | ||
...eslintPluginImport.configs.recommended.rules, | ||
...eslintPluginNext.configs.recommended.rules, | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'prettier/prettier': 'warn', | ||
'react-hooks/rules-of-hooks': 'error', | ||
'simple-import-sort/imports': 'error', | ||
'simple-import-sort/exports': 'warn', | ||
'import/first': 'error', | ||
'import/no-duplicates': 'error', | ||
'import/no-named-as-default': 'off', | ||
'import/no-unresolved': 'off', | ||
'import/no-named-as-default-member': 'off', | ||
'import/namespace': 'off', | ||
'react/self-closing-comp': 'warn', | ||
'@next/next/no-duplicate-head': 'off', | ||
'no-prototype-builtins': '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
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
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
Oops, something went wrong.
11cceb1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit was deployed on ipfs