Skip to content

Commit

Permalink
lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Oct 3, 2023
1 parent 3c6dcc7 commit 6cd7e75
Show file tree
Hide file tree
Showing 184 changed files with 2,105 additions and 1,599 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@
"parserOptions": {
"project": "./tsconfig.json"
},
"ignorePatterns": ["next.config.js", "jest.config.js", "deploy/**/*", "src/**/*.test.tsx", "src/**/*.test.ts"],
"ignorePatterns": [
"next.config.js",
"jest.config.js",
"deploy/**/*",
"src/**/*.test.tsx",
"src/**/*.test.ts",
"e2e/**/*" /* TODO(tate): remove */,
"playwright/**/*" /* TODO(tate): remove */
],
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
Expand All @@ -51,7 +59,7 @@
{
"selector": "*[value=/\\b(0x)?[a-f0-9]{64}\\b/i]",
"message": "No private keys allowed"
}
}
],
"prettier/prettier": "error",
"import/prefer-default-export": "off",
Expand Down
16 changes: 12 additions & 4 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"importOrder": ["@app/test-utils", "<THIRD_PARTY_MODULES>", "^@ensdomains/(.*)$", "^@app/(.*)$", "^[./]"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"plugins": ["@trivago/prettier-plugin-sort-imports"]
"importOrder": [
"@app/test-utils",
"",
"<THIRD_PARTY_MODULES>",
"",
"^@ensdomains/(.*)$",
"",
"^@app/(.*)$",
"",
"^[./]"
],
"plugins": ["@ianvs/prettier-plugin-sort-imports"]
}
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"eslint.format.enable": true,
Expand All @@ -14,7 +13,8 @@
"stylelint.configFile": ".stylelintrc.json",
"stylelint.validate": ["css", "typescriptreact"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.prettierPath": "node_modules/prettier/index.js",
"prettier.prettierPath": "./node_modules/prettier/index.cjs",
"prettier.configPath": "./.prettierrc.json",
"[svg]": {
"editor.defaultFormatter": "jock.svg"
},
Expand Down
32 changes: 15 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@
"wagmi": "1.3.10"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "*",
"@typescript-eslint/parser": "*",
"react": "*",
"react-dom": "*"
},
Expand All @@ -109,6 +107,7 @@
"@cloudflare/workers-types": "^3.14.1",
"@ensdomains/buffer": "^0.1.0",
"@ensdomains/ens-test-env": "^0.3.8",
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
"@next/bundle-analyzer": "^13.4.19",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"@openzeppelin/contracts": "^4.7.3",
Expand All @@ -118,7 +117,6 @@
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.4.3",
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
"@types/glob": "^7.2.0",
"@types/jest": "^28.1.8",
"@types/lodash": "^4.14.184",
Expand All @@ -131,28 +129,28 @@
"@types/styled-components": "5.1.23",
"@types/testing-library__jest-dom": "^5.14.5",
"@types/use-sync-external-store": "^0.0.3",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@wagmi/core-cjs": "npm:@wagmi/[email protected]",
"babel-jest": "^27.5.1",
"babel-loader": "^8.2.5",
"canvas": "^2.9.3",
"concurrently": "^7.3.0",
"dotenv": "^16.0.1",
"eslint": "8.40.0",
"eslint": "8.50.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-next": "^13.4.19",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^25.7.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.1",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-node": "^0.3.9",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^4.12.4",
"eslint-plugin-testing-library": "^6.0.2",
"ethers": "^5.7.2",
"ganache": "^7.4.1",
"graphql-request": "5.1.0",
Expand All @@ -174,10 +172,10 @@
"node-fetch-commonjs": "^3.1.1",
"polyfill-crypto.getrandomvalues": "^1.0.0",
"postcss-scss": "^4.0.4",
"prettier": "2.8.8",
"prettier": "3.0.3",
"sitemap": "^7.1.1",
"stylelint": "14.11.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard-scss": "^5.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.10.0",
Expand Down
Loading

0 comments on commit 6cd7e75

Please sign in to comment.