Phecda

chore: add prettier & lint-staged

root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
... ...
module.exports = {
root: true,
extends: '@react-native-community',
extends: ['@react-native-community', 'plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
};
... ...
{
"useTabs": false,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5"
}
... ...
... ... @@ -29,9 +29,13 @@
"commitizen": "^4.0.3",
"cz-conventional-changelog": "^3.1.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"husky": "^4.2.3",
"jest": "^24.9.0",
"lint-staged": ">=10",
"metro-react-native-babel-preset": "^0.56.0",
"prettier": "1.19.1",
"react-test-renderer": "16.9.0",
"standard-version": "^7.1.0",
"typescript": "^3.7.3"
... ... @@ -54,7 +58,11 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --fix"
}
}
... ...
This diff is collapsed. Click to expand it.