-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
8,574 additions
and
0 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,6 @@ | ||
.circleci/ | ||
artifacts/ | ||
internals/ | ||
server/ | ||
docs/ | ||
node_modules/ |
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,59 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": [ | ||
"airbnb", | ||
"prettier" | ||
], | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jest": true, | ||
"es6": true | ||
}, | ||
"plugins": [ | ||
"import", | ||
"jsx-a11y", | ||
"react", | ||
"prettier" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"globals": { | ||
"browser": false | ||
}, | ||
"rules": { | ||
"arrow-parens": [2, "as-needed"], | ||
"arrow-body-style": [2, "as-needed"], | ||
"class-methods-use-this": 0, | ||
"no-console": 1, | ||
"no-param-reassign": ["error", { "props": false }], | ||
"no-trailing-spaces": 2, | ||
"no-use-before-define": [2, { | ||
"functions": false | ||
}], | ||
"import/prefer-default-export": 0, | ||
"react/jsx-first-prop-new-line": [2, "multiline"], | ||
"react/jsx-indent": [2, 4], | ||
"react/jsx-indent-props": [2, 4], | ||
"prettier/prettier": [2, { | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"semi": true, | ||
"singleQuote": false, | ||
"tabWidth": 4, | ||
"trailingComma": "all" | ||
}] | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"paths": ["src"] | ||
} | ||
} | ||
} | ||
} |
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,33 @@ | ||
#!/bin/sh | ||
|
||
command_exists () { | ||
command -v "$1" >/dev/null 2>&1 | ||
} | ||
|
||
has_hook_script () { | ||
[ -f package.json ] && cat package.json | grep -q "\"$1\"[[:space:]]*:" | ||
} | ||
|
||
cd "." | ||
|
||
# Check if precommit script is defined, skip if not | ||
has_hook_script precommit || exit 0 | ||
|
||
# Check that npm exists | ||
command_exists npm || { | ||
echo >&2 "Can't find npm in PATH, skipping precommit script in package.json" | ||
exit 0 | ||
} | ||
|
||
# Export Git hook params | ||
export GIT_PARAMS="$*" | ||
|
||
# Run npm script | ||
echo "npm run -s precommit (node `node -v`)" | ||
echo | ||
|
||
npm run -s precommit || { | ||
echo | ||
echo "pre-commit hook failed (add --no-verify to bypass)" | ||
exit 1 | ||
} |
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 @@ | ||
node_modules |
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,14 @@ | ||
{ | ||
"processors": ["stylelint-processor-styled-components"], | ||
"extends": [ | ||
"stylelint-config-standard", | ||
"stylelint-config-styled-components" | ||
], | ||
"syntax": "scss", | ||
"rules": { | ||
"block-opening-brace-space-after": null, | ||
"block-closing-brace-space-before": null, | ||
"declaration-colon-newline-after": null, | ||
"indentation": 4 | ||
} | ||
} |
Oops, something went wrong.