Skip to content

Commit

Permalink
refactor: Removes Cypress and tidies up associated files. (LearningLo…
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi authored Sep 23, 2019
1 parent 7bf1fc3 commit 098d0a9
Show file tree
Hide file tree
Showing 19 changed files with 6,890 additions and 7,309 deletions.
91 changes: 68 additions & 23 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ "extends": "eslint-config-airbnb",
{
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"node": true,
Expand All @@ -14,19 +15,22 @@
"no-mixed-operators": 0,
"react/no-multi-comp": 0,
"react/prop-types": 0, // doesn't really work with functional components and HOCs
"react/sort-comp": [1, {
"order": [
'lifecycle',
'everything-else',
'rendering',
],
groups: {
rendering: [
'/^render.+$/',
'render'
]
"react/sort-comp": [
1,
{
"order": [
"lifecycle",
"everything-else",
"rendering",
],
"groups": {
"rendering": [
"/^render.+$/",
"render"
]
}
}
}],
],
"id-length": 0,
"import/default": 0,
"import/no-duplicates": 0,
Expand All @@ -36,19 +40,58 @@
"import/no-named-as-default": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"react/forbid-prop-types": [1, { "forbid": ['any', 'array'] }],
"react/forbid-prop-types": [
1,
{
"forbid": [
"any",
"array"
]
}
],
"jsx-a11y/no-static-element-interactions": 0, // stops you having onClick on a div
"react/jsx-closing-bracket-location": [1, 'after-props'],
"react/jsx-closing-bracket-location": [
1,
"after-props"
],
"react/jsx-no-bind": 0, // it's actually pretty useful to bind and the only workaround is to make an entirely new component
"react/no-unused-prop-types": [2, { skipShapeProps: true }],
"no-shadow": [2, { "builtinGlobals": false, "hoist": "functions", "allow": ['err'] }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"comma-dangle": 0, // not sure why airbnb turned this on. gross!
"react/no-unused-prop-types": [
2,
{
"skipShapeProps": true
}
],
"no-shadow": [
2,
{
"builtinGlobals": false,
"hoist": "functions",
"allow": [
"err"
]
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"comma-dangle": 0, // not sure why airbnb turned this on. gross!
"no-underscore-dangle": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"global-require": 0,
"indent": [2, 2, {"SwitchCase": 1}],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"no-console": 0,
"no-alert": 0,
"radix": 0,
Expand All @@ -65,7 +108,10 @@
"settings": {
"import/parser": "babel-eslint",
"import/resolve": {
moduleDirectory: ["node_modules", "src"]
"moduleDirectory": [
"node_modules",
"src"
]
}
},
"globals": {
Expand All @@ -78,7 +124,6 @@
"__GOOGLE_ENABLED__": true,
"socket": true,
"webpackIsomorphicTools": true,
"cy": true,
"Cypress": true
"cy": true
}
}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,4 @@ bootstrap.sh
.vscode
.tmp
yarn-error.log
cypress/screenshots/*
cypress/videos/*
debug/*
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 098d0a9

Please sign in to comment.