Skip to content

Commit

Permalink
Merge branch 'develop' into feature/implement-api-and-redux-slicess
Browse files Browse the repository at this point in the history
  • Loading branch information
NIKaragu authored Sep 19, 2024
2 parents c8ed366 + 0bdb9b0 commit bd9ebb5
Show file tree
Hide file tree
Showing 80 changed files with 1,780 additions and 984 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
run: npm install

- name: Run ESLint
run: npm run lint
run: npm run lint
66 changes: 66 additions & 0 deletions eslint.config.cjs
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',
},
},
];
28 changes: 0 additions & 28 deletions eslint.config.js

This file was deleted.

Loading

0 comments on commit bd9ebb5

Please sign in to comment.