Skip to content

Commit

Permalink
add prettier and airbnb eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
mlatka9 committed Sep 2, 2022
1 parent c546aab commit bb72053
Show file tree
Hide file tree
Showing 140 changed files with 3,261 additions and 2,300 deletions.
23 changes: 22 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
{
"extends": ["next/core-web-vitals"]
"extends": [
"next/core-web-vitals",
"airbnb",
"airbnb-typescript",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"react/function-component-definition": [
"error",
{
"namedComponents": ["function-declaration", "arrow-function"],
"unnamedComponents": "arrow-function"
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"jsx-a11y/anchor-is-valid": "off"
}
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"scss.lint.unknownAtRules": "ignore"
}
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { env } from "./src/env/server.mjs";
import { env } from './src/env/server.mjs';

/**
* Don't be scared of the generics here.
Expand All @@ -16,6 +16,6 @@ export default defineNextConfig({
reactStrictMode: true,
swcMinify: true,
images: {
domains: ["lh3.googleusercontent.com", "res.cloudinary.com"],
domains: ['lh3.googleusercontent.com', 'res.cloudinary.com'],
},
});
Loading

1 comment on commit bb72053

@vercel
Copy link

@vercel vercel bot commented on bb72053 Sep 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.