Skip to content

Commit

Permalink
Merge pull request #6 from Timur233/SOK-10_pre-commit
Browse files Browse the repository at this point in the history
[SOK-10] pre-commit
  • Loading branch information
Timur233 authored Sep 27, 2024
2 parents 62af8ee + 3c71d73 commit d63382f
Show file tree
Hide file tree
Showing 8 changed files with 16,914 additions and 588 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,22 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'react'],
rules: {
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/ban-ts-comment': 1,
'quotes': ['error', 'single']
},
}
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm run lint
npm run format
npm test
1 change: 1 addition & 0 deletions init.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const fs = require('fs')

fs.copyFileSync('.env.sample', '.env')
Expand Down
Loading

0 comments on commit d63382f

Please sign in to comment.