-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/implement-api-and-redux-slicess
- Loading branch information
Showing
80 changed files
with
1,780 additions
and
984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ jobs: | |
run: npm install | ||
|
||
- name: Run ESLint | ||
run: npm run lint | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
const globals = require('globals'); | ||
const pluginJs = require('@eslint/js'); | ||
const tseslint = require('@typescript-eslint/eslint-plugin'); | ||
const tsParser = require('@typescript-eslint/parser'); | ||
const pluginReact = require('eslint-plugin-react'); | ||
const prettier = require('eslint-config-prettier'); | ||
const prettierPlugin = require('eslint-plugin-prettier'); | ||
|
||
module.exports = [ | ||
// Основна конфігурація для TypeScript та JSX | ||
{ | ||
files: ['**/*.{ts,tsx,jsx}'], | ||
ignores: ['build/', 'dist/assets/index-C_1RAfnd.js', 'node_modules/'], | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
parser: tsParser, | ||
parserOptions: { | ||
project: ['./tsconfig.app.json', './tsconfig.node.json'], | ||
tsconfigRootDir: './', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
globals: globals.browser, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
'import/resolver': { | ||
typescript: {}, | ||
}, | ||
}, | ||
plugins: { | ||
'@typescript-eslint': tseslint, | ||
react: pluginReact, | ||
prettier: prettierPlugin, | ||
}, | ||
rules: { | ||
// Рекомендовані правила ESLint | ||
...pluginJs.configs.recommended.rules, | ||
|
||
// Рекомендовані правила TypeScript ESLint | ||
...tseslint.configs.recommended.rules, | ||
|
||
// Рекомендовані правила React | ||
...pluginReact.configs.flat.recommended.rules, | ||
|
||
// Налаштовані правила | ||
'react/react-in-jsx-scope': 'off', | ||
'react/jsx-uses-react': 'off', | ||
'react/prop-types': 'off', | ||
|
||
// Правила Prettier | ||
'prettier/prettier': ['error'], | ||
}, | ||
}, | ||
// Конфігурація для файлів .js | ||
{ | ||
files: ['**/*.js'], | ||
languageOptions: { | ||
sourceType: 'script', | ||
}, | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.