Skip to content

format code with prettier and standardjs #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require("path");
const path = require('path')

/** @type {import("eslint").Linter.Config} */
const config = {
overrides: [
{
extends: [
"plugin:@typescript-eslint/recommended-requiring-type-checking",
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
files: ["*.ts", "*.tsx"],
files: ['*.ts', '*.tsx'],
parserOptions: {
project: path.join(__dirname, "tsconfig.json"),
},
},
project: path.join(__dirname, 'tsconfig.json')
}
}
],
parser: "@typescript-eslint/parser",
parser: '@typescript-eslint/parser',
parserOptions: {
project: path.join(__dirname, "tsconfig.json"),
project: path.join(__dirname, 'tsconfig.json')
},
plugins: ["@typescript-eslint"],
extends: ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
plugins: ['@typescript-eslint'],
extends: ['next/core-web-vitals', 'plugin:@typescript-eslint/recommended'],
rules: {
"@typescript-eslint/consistent-type-imports": [
"warn",
'@typescript-eslint/consistent-type-imports': [
'warn',
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
prefer: 'type-imports',
fixStyle: 'inline-type-imports'
}
],
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-misused-promises": [
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-misused-promises': [
2,
{
checksVoidReturn: { attributes: false },
},
],
},
};
checksVoidReturn: { attributes: false }
}
]
}
}

module.exports = config;
module.exports = config
2 changes: 1 addition & 1 deletion convex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function handleButtonPress() {
// OR
// use the result once the mutation has completed
mutation({ first: "Hello!", second: "me" }).then((result) =>
console.log(result)
console.log(result),
);
}
```
Expand Down
8 changes: 4 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "./src/env.mjs";
import './src/env.mjs'

/** @type {import("next").NextConfig} */
const config = {
experimental: { serverActions: true },
};
export default config;
experimental: { serverActions: true }
}
export default config
Loading