-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(codequality): code quality setup
Configured linters, code formatters and git pre commit hooks. Added release and changelog plugins. Installed dependencies: ```shell # Eslint prettier yarn add --dev --exact eslint-plugin-jest@latest eslint-config-prettier eslint-plugin-prettier eslint-plugin-import@latest yarn add --dev --exact eslint-plugin-react@latest eslint-plugin-jsx-a11y@latest yarn add --dev --exact eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-airbnb yarn add --dev --exact prettier lint-staged # Install commitlint cli and conventional config yarn add --dev --exact @commitlint/config-conventional @commitlint/cli # Configure commitlint to use conventional config echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js # Release notes yarn add --dev --exact standard-version ```
- Loading branch information
Showing
36 changed files
with
2,049 additions
and
590 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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
module.exports = { | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint", "prettier", "react", "import"], | ||
env: { | ||
browser: true, | ||
jest: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
"extends": [ | ||
'airbnb-base', | ||
"airbnb-typescript", | ||
'prettier', | ||
'plugin:react/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:import/typescript', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:jest/recommended', | ||
], | ||
settings: { | ||
react: { | ||
pragma: 'React', | ||
version: 'detect', | ||
"fragment": "Fragment", | ||
}, | ||
'import/resolver': { | ||
node: { | ||
extensions: ['.tsx', '.ts', '.js', '.json'], | ||
}, | ||
alias: [ | ||
['src', './src'], | ||
], | ||
}, | ||
}, | ||
"rules": { | ||
"import/extensions": [ | ||
"error", | ||
"ignorePackages", | ||
{ | ||
"js": "never", | ||
"jsx": "never", | ||
"ts": "never", | ||
"tsx": "never" | ||
} | ||
], | ||
"react/function-component-definition": [ | ||
2, | ||
{ | ||
namedComponents: "arrow-function", | ||
unnamedComponents: "arrow-function", | ||
}, | ||
], | ||
"react/react-in-jsx-scope": "off", | ||
"no-param-reassign": 0, | ||
"@typescript-eslint/indent": ["error", 2], | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/no-explicit-any": "error" | ||
}, | ||
parserOptions: { | ||
sourceType: 'module', | ||
project: './tsconfig.json', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
} |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
# project | ||
TODO.md | ||
.husky | ||
|
||
# ide | ||
*.iml | ||
|
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,20 @@ | ||
**/*.png | ||
**/*.svg | ||
**/*.ico | ||
package.json | ||
lib/ | ||
es/ | ||
dist/ | ||
.next/ | ||
coverage/ | ||
LICENSE | ||
yarn.lock | ||
yarn-error.log | ||
*.sh | ||
.gitignore | ||
.npmignore | ||
.prettierignore | ||
.DS_Store | ||
.editorconfig | ||
.eslintignore | ||
**/*.yml |
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,18 @@ | ||
{ | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"endOfLine": "lf", | ||
"trailingComma": "all", | ||
"printWidth": 100, | ||
"arrowParens": "avoid", | ||
"bracketSpacing": true, | ||
"semi": false, | ||
"overrides": [ | ||
{ | ||
"files": ".prettierrc", | ||
"options": { | ||
"parser": "json" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {extends: ['@commitlint/config-conventional']} |
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,20 +1,19 @@ | ||
import React from "react"; | ||
import {Provider} from "react-redux"; | ||
|
||
import './App.css'; | ||
import {history, store} from "./store/store"; | ||
import AppRoutes from "./routes"; | ||
import {HistoryRouter as Router} from "redux-first-history/rr6"; | ||
import React from 'react' | ||
import {Provider} from 'react-redux' | ||
|
||
import './App.css' | ||
import {HistoryRouter as Router} from 'redux-first-history/rr6' | ||
import {history, store} from './store/store' | ||
import AppRoutes from './routes' | ||
|
||
const App = () => ( | ||
<> | ||
<Provider store={store}> | ||
<Router history={history}> | ||
<AppRoutes/> | ||
</Router> | ||
</Provider> | ||
</> | ||
); | ||
<> | ||
<Provider store={store}> | ||
<Router history={history}> | ||
<AppRoutes/> | ||
</Router> | ||
</Provider> | ||
</> | ||
) | ||
|
||
export default App; | ||
export default App |
Oops, something went wrong.