Skip to content
Snippets Groups Projects
Commit c6ffdaa4 authored by Sofiya Tepikin's avatar Sofiya Tepikin
Browse files

Merge branch '517-Install-husky-and-prettier-to-format-staged-files' into 'master'

Install husky and prettier to format staged files

Closes #517

See merge request bloodyhealth/drip!377
parents 50d01cba 3625d5a4
No related branches found
No related tags found
No related merge requests found
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:react/recommended',
],
extends: ['eslint:recommended', 'plugin:react/recommended'],
env: {
node: true,
mocha: true,
......@@ -24,23 +21,9 @@ module.exports = {
},
},
rules: {
indent: ['error', 2],
'no-console': ['error', { 'allow': ['warn', 'error'] }],
'space-before-function-paren': 0,
semi: ['warn', 'never'],
'space-infix-ops': ['warn'],
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-var': 'error',
'prefer-const': 'error',
'no-trailing-spaces': 'error',
'react/prop-types': 2,
'max-len': [
1,
{
'ignoreStrings': true,
'ignoreComments': true,
'ignoreTemplateLiterals': true
}
],
'no-multi-spaces': 2,
},
};
}
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx pretty-quick --staged
module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
};
semi: false,
}
......@@ -25,7 +25,8 @@
"update-changelog": "node ./tools/bin/update-changelog.js",
"release": "node ./tools/release-wizard.js",
"clear": ". scripts/clear.sh",
"postinstall": "npx jetify"
"postinstall": "npx jetify",
"prepare": "husky install"
},
"dependencies": {
"@ptomasroos/react-native-multi-slider": "^2.2.0",
......@@ -72,12 +73,15 @@
"dirty-chai": "^2.0.1",
"eslint": "^6.4.0",
"eslint-plugin-react": "^7.8.2",
"husky": "^6.0.0",
"jase": "^1.2.0",
"jest": "^24.9.0",
"jetifier": "^1.6.6",
"left-pad": "^1.3.0",
"metro-react-native-babel-preset": "^0.56.0",
"mocha": "^5.2.0",
"prettier": "2.4.0",
"pretty-quick": "^3.1.1",
"react-native-version": "^3.1.0",
"react-test-renderer": "16.9.0",
"readline": "^1.3.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment