Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Update dependencies and fixes warnings #86

Merged
merged 12 commits into from
Oct 11, 2018
14 changes: 2 additions & 12 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
{
"presets": ["es2015", "react"],
"env": {
"development": {
"presets": ["es2015", "react"],
"plugins": [
["transform-es2015-modules-commonjs-simple", {
"noMangle": true
}]
]
}
}
}
"presets": ["env", "react"]
}
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
- "node_modules"

- run:
name: Npm test
command: npm test
name: Npm lint
command: npm run lint

- run:
name: Run tests
Expand Down
129 changes: 127 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,128 @@
{
"extends": "./config/eslint/eslintrc-node.json"
}
"extends": ["eslint:recommended", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"templateStrings": true,
"jsx": true
}
},
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"jest": true,
"node": true
},
"globals": {
"jest": true
},
"plugins": [
"react",
"import"
],
"rules": {
"accessor-pairs": ["error"],
"block-scoped-var": ["error"],
"consistent-return": ["error"],
"curly": ["error", "all"],
"default-case": ["error"],
"dot-location": ["off"],
"dot-notation": ["error"],
"eqeqeq": ["error"],
"guard-for-in": ["off"],
"import/export": "error",
"import/named": ["off"],
"import/namespace": ["off"],
"import/no-duplicates": ["error"],
"import/no-named-as-default": ["error"],
"import/no-unresolved": ["off"],
"new-cap": ["error", {
"capIsNewExceptions": ["Radium"],
"capIsNewExceptionPattern": "Immutable\\.*"
}],
"no-alert": ["off"],
"no-caller": ["error"],
"no-case-declarations": ["error"],
"no-console": ["error"],
"no-div-regex": ["error"],
"no-dupe-keys": ["error"],
"no-else-return": ["error"],
"no-empty-pattern": ["error"],
"no-eq-null": ["error"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-boolean-cast": ["error"],
"no-inline-comments": ["error"],
"no-implicit-coercion": ["error"],
"no-implied-eval": ["error"],
"no-inner-declarations": ["off"],
"no-invalid-this": ["error"],
"no-iterator": ["error"],
"no-labels": ["error"],
"no-lone-blocks": ["error"],
"no-loop-func": ["error"],
"no-multi-str": ["error"],
"no-native-reassign": ["error"],
"no-new": ["error"],
"no-new-func": ["error"],
"no-new-wrappers": ["error"],
"no-param-reassign": ["error"],
"no-process-env": ["warn"],
"no-proto": ["error"],
"no-redeclare": ["error"],
"no-return-assign": ["error"],
"no-script-url": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-shadow": ["off"],
"no-throw-literal": ["error"],
"no-undefined": ["error"],
"no-unused-expressions": ["error"],
"no-use-before-define": ["error", "nofunc"],
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-with": ["error"],
"prefer-const": ["error"],
"radix": ["error"],
"react/jsx-no-duplicate-props": ["error"],
"react/jsx-no-undef": ["error"],
"react/jsx-uses-react": ["error"],
"react/jsx-uses-vars": ["error"],
"react/no-did-update-set-state": ["error"],
"react/no-direct-mutation-state": ["error"],
"react/no-is-mounted": ["error"],
"react/no-unknown-property": ["error"],
"react/prefer-es6-class": ["error", "always"],
"react/prop-types": "error",
"valid-jsdoc": ["error"],
"yoda": ["error"],
"spaced-comment": ["error", "always", {
"block": {
"exceptions": ["*"]
}
}],
"no-unused-vars": ["error", {
"args": "after-used",
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^e$"
}],
"no-magic-numbers": ["error", {
"ignoreArrayIndexes": true,
"ignore": [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 100, 10, 16, 0.5, 25]
}],
"no-underscore-dangle": ["off"],
"no-useless-escape": ["off"]
}
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 4,
"singleQuote": true,
"bracketSpacing": false,
"trailingComma": "es5"
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "${workspaceFolder}/venv/bin/python"
}
25 changes: 0 additions & 25 deletions config/eslint/eslintrc-node.json

This file was deleted.

27 changes: 0 additions & 27 deletions config/partials/babel.js

This file was deleted.

30 changes: 0 additions & 30 deletions config/partials/babelHot.js

This file was deleted.

23 changes: 0 additions & 23 deletions config/partials/defineEnv.js

This file was deleted.

13 changes: 0 additions & 13 deletions config/partials/entryDev.js

This file was deleted.

16 changes: 0 additions & 16 deletions config/partials/entryHot.js

This file was deleted.

13 changes: 0 additions & 13 deletions config/partials/entryProd.js

This file was deleted.

20 changes: 0 additions & 20 deletions config/partials/optimizeProd.js

This file was deleted.

17 changes: 0 additions & 17 deletions config/partials/outputDev.js

This file was deleted.

19 changes: 0 additions & 19 deletions config/partials/outputProd.js

This file was deleted.

Loading