Skip to content

Commit

Permalink
make prettier show errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedrok99 committed Jul 10, 2022
1 parent 7aa6466 commit 38b0fc5
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 11 deletions.
35 changes: 35 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

/src/controllers

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
Footer
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
Expand All @@ -8,6 +8,7 @@
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"prettier/prettier": "error",
"prefer-const": "error"
},
"settings": {
Expand Down
34 changes: 34 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"printWidth": 60,
"semi": false,
"semi": true,
"trailingComma": "es5",

"tabWidth": 2,
Expand Down
15 changes: 6 additions & 9 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import type { NextPage } from 'next'
import styles from '../styles/Home.module.css'
import type { NextPage } from 'next';
import styles from '../styles/Home.module.css';

const Home: NextPage = () => {
const test = 'test'
console.log(test)

return (
<h1
className={styles.crimson}
color={styles.crimson}
onChange={() => {
return
return;
}}>
Projeto agenda
</h1>
)
}
);
};

export default Home
export default Home;

0 comments on commit 38b0fc5

Please sign in to comment.