Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
Homework83_M11
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ли Джен Сеп
Homework83_M11
Commits
b27de198
Commit
b27de198
authored
Dec 20, 2024
by
bekzat kapan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7
Установил модуль Prettier локально в проект и настроил Eslint и Prettier
parent
4cf17f59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
.eslintrc.json
.eslintrc.json
+37
-0
.prettierrc
frontend/.prettierrc
+7
-0
package.json
frontend/package.json
+2
-1
No files found.
.eslintrc.json
0 → 100644
View file @
b27de198
{
"root"
:
true
,
"env"
:
{
"browser"
:
true
,
"es2021"
:
true
,
"node"
:
true
},
"extends"
:
[
"eslint:recommended"
,
"plugin:react/recommended"
,
"plugin:react-hooks/recommended"
,
"plugin:@typescript-eslint/recommended"
,
"plugin:jsx-a11y/recommended"
,
"prettier"
],
"plugins"
:
[
"react"
,
"react-hooks"
,
"@typescript-eslint"
,
"jsx-a11y"
,
"prettier"
],
"parser"
:
"@typescript-eslint/parser"
,
"parserOptions"
:
{
"ecmaFeatures"
:
{
"jsx"
:
true
},
"ecmaVersion"
:
12
,
"sourceType"
:
"module"
},
"rules"
:
{
"prettier/prettier"
:
[
"error"
],
"react/react-in-jsx-scope"
:
"off"
,
"react/prop-types"
:
"off"
,
"@typescript-eslint/explicit-module-boundary-types"
:
"off"
,
"@typescript-eslint/no-unused-vars"
:
[
"warn"
,
{
"argsIgnorePattern"
:
"^_"
}]
},
"settings"
:
{
"react"
:
{
"version"
:
"detect"
}
}
}
\ No newline at end of file
frontend/.prettierrc
0 → 100644
View file @
b27de198
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 80
}
\ No newline at end of file
frontend/package.json
View file @
b27de198
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
"dev"
:
"next dev -p 0666"
,
"dev"
:
"next dev -p 0666"
,
"build"
:
"next build"
,
"build"
:
"next build"
,
"start"
:
"next start"
,
"start"
:
"next start"
,
"lint"
:
"next lint"
"lint"
:
"next lint"
,
"format"
:
"prettier --write ."
},
},
"dependencies"
:
{
"dependencies"
:
{
"@emotion/react"
:
"^11.14.0"
,
"@emotion/react"
:
"^11.14.0"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment