Skip to content

Commit d70b1bd

Browse files
πŸŽ‰ created the project configuration
1 parent 3a6224e commit d70b1bd

14 files changed

+2809
-447
lines changed

β€Ž.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = crlf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = false

β€Ž.eslintrc.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// eslint-disable-next-line no-undef
2+
module.exports = {
3+
env: {
4+
browser: true,
5+
es2021: true,
6+
},
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:react/recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
'next/core-web-vitals',
12+
],
13+
overrides: [],
14+
parser: '@typescript-eslint/parser',
15+
parserOptions: {
16+
ecmaVersion: 'latest',
17+
sourceType: 'module',
18+
},
19+
plugins: ['react', '@typescript-eslint'],
20+
rules: {
21+
indent: ['warn', 2],
22+
quotes: ['warn', 'single'],
23+
semi: ['warn', 'always'],
24+
'react/react-in-jsx-scope': 'off',
25+
},
26+
};

β€Ž.eslintrc.json

-3
This file was deleted.

β€Ž.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
build/
3+
package.json
4+
package-lock.json
5+
yarn.lock
6+
*.md

β€Ž.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"jsxSingleQuote": true,
4+
"semi": true,
5+
"tabWidth": 2,
6+
"singleAttributePerLine": true,
7+
"arrowParens": "avoid"
8+
}

β€Žnext.config.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {}
2+
const nextConfig = {
3+
compiler: {
4+
styledComponents: true,
5+
},
6+
};
37

4-
module.exports = nextConfig
8+
module.exports = nextConfig;

0 commit comments

Comments
Β (0)