This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
-
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 pull request #3 from slotovi4/dev
refactor: delete not used packages & fix dblclick bug
- Loading branch information
Showing
14 changed files
with
179 additions
and
264 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 |
---|---|---|
@@ -1,131 +1,134 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module", | ||
"project": "./tsconfig.json", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/explicit-member-accessibility": "error", | ||
"@typescript-eslint/no-shadow": ["error"], | ||
"@typescript-eslint/naming-convention": [ | ||
"error", | ||
{ | ||
"selector": "default", | ||
"format": [ | ||
"PascalCase", | ||
"camelCase" | ||
] | ||
}, | ||
// правило для булевых констант | ||
{ | ||
"selector": "variable", | ||
"modifiers": [ | ||
"const" | ||
], | ||
"types": [ | ||
"boolean" | ||
], | ||
"format": [ | ||
// "UPPER_CASE" | ||
], | ||
"prefix": [ | ||
"is", | ||
"should", | ||
"has", | ||
"can", | ||
"did", | ||
"will" | ||
] | ||
}, | ||
// правило для массивов | ||
{ | ||
"selector": "variable", | ||
"types": [ | ||
"array" | ||
], | ||
"format": [ | ||
"camelCase" | ||
], | ||
"suffix": [ | ||
"List" | ||
] | ||
}, | ||
// правило для type | ||
{ | ||
"selector": "typeAlias", | ||
"format": [ | ||
"PascalCase" | ||
], | ||
"prefix": [ | ||
"T" | ||
] | ||
}, | ||
// правило для interface | ||
{ | ||
"selector": "interface", | ||
"format": [ | ||
"PascalCase" | ||
], | ||
"prefix": [ | ||
"I" | ||
] | ||
}, | ||
// правило для enum | ||
{ | ||
"selector": "enum", | ||
"format": [ | ||
"PascalCase" | ||
], | ||
"prefix": [ | ||
"E" | ||
] | ||
} | ||
], | ||
"prefer-arrow-callback": "error", | ||
"prefer-destructuring": "error", | ||
"no-unused-expressions": "error", | ||
"no-unused-labels": "error", | ||
"curly": "error", | ||
"no-extra-semi": "error", | ||
"react/self-closing-comp": "error", | ||
"max-params": ["error", 3], | ||
"no-shadow": "off", | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"spaced-comment": [ | ||
"error", | ||
"always" | ||
], | ||
"semi": [ | ||
2, | ||
"always" | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module", | ||
"project": "./tsconfig.json", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/explicit-member-accessibility": "error", | ||
"@typescript-eslint/no-shadow": "error", | ||
"@typescript-eslint/naming-convention": [ | ||
"error", | ||
{ | ||
"selector": "default", | ||
"format": [ | ||
"PascalCase", | ||
"camelCase" | ||
] | ||
}, | ||
// правило для булевых констант | ||
{ | ||
"selector": "variable", | ||
"modifiers": [ | ||
"const" | ||
], | ||
"types": [ | ||
"boolean" | ||
], | ||
"format": [ | ||
// "UPPER_CASE" | ||
], | ||
"prefix": [ | ||
"is", | ||
"should", | ||
"has", | ||
"can", | ||
"did", | ||
"will" | ||
] | ||
}, | ||
// правило для массивов | ||
{ | ||
"selector": "variable", | ||
"types": [ | ||
"array" | ||
], | ||
"format": [ | ||
"camelCase" | ||
], | ||
"suffix": [ | ||
"List" | ||
] | ||
}, | ||
// правило для type | ||
{ | ||
"selector": "typeAlias", | ||
"format": [ | ||
"PascalCase" | ||
], | ||
"prefix": [ | ||
"T" | ||
] | ||
}, | ||
// правило для interface | ||
{ | ||
"selector": "interface", | ||
"format": [ | ||
"PascalCase" | ||
], | ||
"prefix": [ | ||
"I" | ||
] | ||
}, | ||
// правило для enum | ||
{ | ||
"selector": "enum", | ||
"format": [ | ||
"PascalCase" | ||
], | ||
"prefix": [ | ||
"E" | ||
] | ||
} | ||
], | ||
"prefer-arrow-callback": "error", | ||
"prefer-destructuring": "error", | ||
"no-unused-expressions": "error", | ||
"no-unused-labels": "error", | ||
"curly": "error", | ||
"no-extra-semi": "error", | ||
"react/self-closing-comp": "error", | ||
"max-params": [ | ||
"error", | ||
3 | ||
], | ||
"no-shadow": "off", | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"spaced-comment": [ | ||
"error", | ||
"always" | ||
], | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"radix": "error", | ||
"react/jsx-wrap-multilines": "warn", | ||
"react/no-unused-prop-types": "warn", | ||
"no-use-before-define": "off" | ||
} | ||
"react/jsx-wrap-multilines": "warn", | ||
"react/no-unused-prop-types": "warn", | ||
"no-use-before-define": "off" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +0,0 @@ | ||
TS(react-scripts-ts), rematch, router, bem-react/classname, sass<br> | ||
<br> | ||
yarn<br> | ||
<br> | ||
build setup: create-react-app react-typescript-scss-new --scripts-version=react-scripts-scss-ts<br> | ||
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
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 |
---|---|---|
@@ -1,18 +1,6 @@ | ||
import React from 'react'; | ||
import { Route, Switch } from 'react-router'; | ||
import { ConnectedRouter } from 'connected-react-router'; | ||
import { Provider } from 'react-redux'; | ||
import { HomeContainer } from './containers'; | ||
import { store, browserHistory } from './redux/store'; | ||
import { Home } from './components'; | ||
|
||
const App = () => ( | ||
<Provider store={store}> | ||
<ConnectedRouter history={browserHistory}> | ||
<Switch> | ||
<Route path="/" component={HomeContainer} /> | ||
</Switch> | ||
</ConnectedRouter> | ||
</Provider> | ||
); | ||
const App = () => <Home />; | ||
|
||
export default App; |
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
Oops, something went wrong.