Skip to content

Commit

Permalink
Use prettier instead of numso.prettier-standard
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-md committed Oct 8, 2024
1 parent 071d8ed commit 70b8486
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:security/recommended-legacy',
'standard-with-typescript',
'next/core-web-vitals'
'next/core-web-vitals',
'plugin:prettier/recommended'
],
plugins: ['prettier'],
parserOptions: {
project: './tsconfig.json'
},
ignorePatterns: ['.eslintrc.js', 'next.config.js', 'next-env.d.ts', 'out', '**/examples/**'],
ignorePatterns: [
'.eslintrc.js',
'next.config.js',
'next-env.d.ts',
'out',
'**/examples/**'
],
rules: {
'@typescript-eslint/key-spacing': 0,
'multiline-ternary': 0,
Expand Down
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"jsxSingleQuote": true,
"arrowParens": "avoid"
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"numso.prettier-standard-vscode",
"esbenp.prettier-vscode",
"chrischinchilla.vale-vscode",
"unifiedjs.vscode-mdx",
"znck.grammarly"
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"build": "next build",
"dev": "next dev",
"generate-api-reference": "node .github/scripts/generateApiReference.js",
"generate-api-reference": "pnpm ts-node --project tsconfig.json .github/scripts/generateApiReference.ts",
"generate-code-examples": "node .github/scripts/generateCodeExamples.js",
"generate-supported-networks": "pnpm ts-node --project tsconfig.json .github/scripts/generateSupportedNetworks.ts",
"get-resources-og": "node .github/scripts/getResourcesOg.js",
Expand Down Expand Up @@ -63,18 +63,21 @@
"env-cmd": "^10.1.0",
"eslint": "8.57.1",
"eslint-config-next": "^14.2.13",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-jsx": "^11.0.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-n": "^17.10.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-security": "^3.0.1",
"husky": "^9.1.6",
"markdown-link-check": "^3.12.2",
"open-graph-scraper": "^6.8.2",
"prettier": "^3.3.3",
"serve": "^14.2.3",
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
Expand Down
77 changes: 77 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70b8486

Please sign in to comment.