Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
exam_template
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
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
Нұрасыл Қайратұлы
exam_template
Commits
9501aefd
Commit
9501aefd
authored
Apr 30, 2025
by
Нұрасыл Қайратұлы
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2
create pretier, eslint
parent
04dff646
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
25 deletions
+39
-25
.prettierignore
client/.prettierignore
+4
-0
.prettierrc.cjs
client/.prettierrc.cjs
+7
-0
eslint.config.js
client/eslint.config.js
+28
-25
No files found.
client/.prettierignore
0 → 100644
View file @
9501aefd
node_modules
build
.next
dist
\ No newline at end of file
client/.prettierrc.cjs
0 → 100644
View file @
9501aefd
module.exports = {
tabWidth: 2,
singleQuote: true,
trailingComma: 'es5',
printWidth: 100,
useTabs: false,
};
client/eslint.config.js
View file @
9501aefd
import
js
from
'@eslint/js'
import
globals
from
'globals'
import
reactHooks
from
'eslint-plugin-react-hooks'
import
reactRefresh
from
'eslint-plugin-react-refresh'
import
tseslint
from
'typescript-eslint'
export
default
tseslint
.
config
(
{
ignores
:
[
'dist'
]
},
{
extends
:
[
js
.
configs
.
recommended
,
...
tseslint
.
configs
.
recommended
],
files
:
[
'**/*.{ts,tsx}'
],
languageOptions
:
{
ecmaVersion
:
2020
,
globals
:
globals
.
browser
,
module
.
exports
=
{
root
:
true
,
env
:
{
browser
:
true
,
es2020
:
true
},
extends
:
[
'eslint:recommended'
,
'plugin:@typescript-eslint/recommended'
,
'plugin:react-hooks/recommended'
,
'prettier'
,
'plugin:react/recommended'
,
],
ignorePatterns
:
[
'dist'
,
'.eslintrc.cjs'
],
parser
:
'@typescript-eslint/parser'
,
parserOptions
:
{
ecmaFeatures
:
{
jsx
:
true
,
},
plugins
:
{
'react-hooks'
:
reactHooks
,
'react-refresh'
:
reactRefresh
,
},
rules
:
{
...
reactHooks
.
configs
.
recommended
.
rules
,
'react-refresh/only-export-components'
:
[
'warn'
,
{
allowConstantExport
:
true
},
],
ecmaVersion
:
'latest'
,
sourceType
:
'module'
,
// project: './tsconfig.json',
},
plugins
:
[
'react-refresh'
,
'react'
,
'@typescript-eslint'
,
'prettier'
],
rules
:
{
'react-refresh/only-export-components'
:
[
'warn'
,
{
allowConstantExport
:
true
}],
'react/react-in-jsx-scope'
:
0
,
},
settings
:
{
'import/resolver'
:
{
typescript
:
{},
},
},
)
};
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