Skip to content

Commit

Permalink
Merge pull request #120 from forbole/remove-networks-search
Browse files Browse the repository at this point in the history
fix: search bar in staking
  • Loading branch information
icfor authored Nov 24, 2023
2 parents 14f76ed + f3d0a73 commit eabd0e6
Show file tree
Hide file tree
Showing 58 changed files with 248 additions and 756 deletions.
71 changes: 26 additions & 45 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
const path = require("node:path");

module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ["plugin:react/recommended", "airbnb", "prettier"],
settings: {
react: {
version: "detect",
},
},
extends: [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
project: path.join(__dirname, "tsconfig.json"),
},
plugins: ["react", "@typescript-eslint", "prettier", "react-hooks"],
plugins: ["@typescript-eslint", "react-hooks"],
rules: {
// @TODO: These should be removed when fixed
"@typescript-eslint/no-explicit-any": "off",
"@next/next/no-img-element": "off",
"jsx-a11y/alt-text": "off",
"react/display-name": "off",

"arrow-body-style": "error",
"camelcase": "off",
"global-require": "off",
"max-len": "error",
"no-shadow": "off",
"no-unused-vars": "off",
"no-useless-return": "error",
Expand All @@ -36,43 +48,20 @@ module.exports = {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-var-requires": "off",

"jsx-a11y/alt-text": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/interactive-supports-focus": "off",

"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"import/no-absolute-path": "off",
"import/no-dynamic-require": "error",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",

"react/jsx-filename-extension": [
2,
{
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
],

"react/function-component-definition": "off",
"react/jsx-boolean-value": "error",
"react/jsx-filename-extension": "off",
"react/jsx-fragments": "error",
"react/jsx-key": ["error", { warnOnDuplicates: true }],
"react/jsx-no-useless-fragment": "error",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-sort-props": "error",
"react/no-array-index-key": "off",
"react/no-unescaped-entities": "off",
"react/no-unknown-property": "off",
"react/no-unstable-nested-components": "error",
"react/no-unused-prop-types": "error",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react/self-closing-comp": "error",
Expand All @@ -88,12 +77,4 @@ module.exports = {
},
},
],
settings: {
"import/resolver": {
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
},
};
3 changes: 0 additions & 3 deletions i18n.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-disable global-require */
/* eslint-disable import/no-dynamic-require */

module.exports = {
locales: ["en", "zh-HK", "zh-CN"],
defaultLocale: "en",
Expand Down
Loading

0 comments on commit eabd0e6

Please sign in to comment.