Skip to content

Commit b6d2100

Browse files
krutilovnikpachoo
authored andcommitted
ktl-719 feat: add prettier
1 parent 064d49a commit b6d2100

File tree

6 files changed

+844
-26
lines changed

6 files changed

+844
-26
lines changed

.eslintrc

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true
5+
},
6+
extends: [
7+
'plugin:react/recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'prettier',
10+
],
11+
parser: '@typescript-eslint/parser',
12+
parserOptions: {
13+
project: ['./tsconfig.json'],
14+
ecmaFeatures: {
15+
jsx: true
16+
},
17+
ecmaVersion: 12,
18+
sourceType: 'module'
19+
},
20+
plugins: [
21+
'react',
22+
'@typescript-eslint',
23+
'eslint-plugin-import',
24+
'eslint-plugin-react',
25+
'eslint-plugin-react-hooks'
26+
],
27+
rules: {
28+
'import/no-extraneous-dependencies': ['error', { 'devDependencies': true }],
29+
'react/prop-types': 'off',
30+
'import/prefer-default-export': 'off'
31+
}
32+
};

.idea/misc.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.prettierrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

package.json

+9
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,22 @@
8585
},
8686
"devDependencies": {
8787
"@types/react": "17.0.43",
88+
"@typescript-eslint/eslint-plugin": "5.21.0",
89+
"@typescript-eslint/parser": "5.21.0",
90+
"eslint": "8.14.0",
91+
"eslint-config-prettier": "8.5.0",
92+
"eslint-plugin-import": "2.26.0",
93+
"eslint-plugin-jsx-a11y": "6.5.1",
94+
"eslint-plugin-react": "7.29.4",
95+
"eslint-plugin-react-hooks": "4.5.0",
8896
"glob": "7.1.1",
8997
"minimist": "1.2.6",
9098
"next": "12.1.4",
9199
"next-compose-plugins": "2.2.1",
92100
"next-global-css": "1.3.1",
93101
"next-optimized-images": "3.0.0-canary.10",
94102
"next-transpile-modules": "9.0.0",
103+
"prettier": "2.6.2",
95104
"typescript": "4.6.3",
96105
"webpack-dev-server": "4.3.1",
97106
"yaml-loader": "0.7.0"

0 commit comments

Comments
 (0)