Skip to content

Commit

Permalink
start using prettier and jest
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Nov 24, 2017
1 parent c7e6f8a commit 96738c9
Show file tree
Hide file tree
Showing 15 changed files with 12,278 additions and 1,724 deletions.
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"env": {
"test": {
"presets": ["env", "react"]
}
}
}
39 changes: 2 additions & 37 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "eslint:recommended",
"extends": ["eslint:recommended", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
Expand Down Expand Up @@ -33,29 +33,17 @@
],
"rules": {
"accessor-pairs": ["error"],
"array-bracket-spacing": ["error"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error"],
"block-scoped-var": ["error"],
"comma-dangle": ["error"],
"comma-spacing": ["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"],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"max-len": ["error", 120, 4],
"new-cap": ["error"],
"no-alert": [1],
"no-caller": ["error"],
Expand All @@ -70,18 +58,15 @@
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-boolean-cast": ["error"],
"no-floating-decimal": ["error"],
"no-inline-comments": ["error"],
"no-implicit-coercion": ["error"],
"no-trailing-spaces": ["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-spaces": ["error"],
"no-multi-str": ["error"],
"no-native-reassign": ["error"],
"no-new": ["error"],
Expand All @@ -103,11 +88,8 @@
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-with": ["error"],
"object-curly-spacing": ["error", "never"],
"prefer-const": ["error"],
"quotes": ["error", "single", "avoid-escape"],
"radix": ["error"],
"react/jsx-closing-bracket-location": ["error", "line-aligned"],
"react/jsx-no-duplicate-props": ["error"],
"react/jsx-no-undef": ["error"],
"react/jsx-uses-react": ["error"],
Expand All @@ -118,23 +100,13 @@
"react/no-unknown-property": ["error"],
"react/prefer-es6-class": ["error", "always"],
"react/prop-types": "error",
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-before-blocks": ["error"],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"valid-jsdoc": ["error"],
"wrap-iife": ["error"],
"yoda": ["error"],
"spaced-comment": ["error", "always", {
"block": {
exceptions: ["*"]
}
}],
"indent": ["error", 4, {
"SwitchCase": 1,
"outerIIFEBody": 0
}],
"no-unused-vars": ["error", {
"args": "after-used",
"argsIgnorePattern": "^_",
Expand All @@ -144,13 +116,6 @@
"ignoreArrayIndexes": true,
"ignore": [-1, 0, 1, 2, 100, 10, 16, 0.5, 25]
}],
"no-underscore-dangle": ["error", {
"allowAfterThis": true,
"allow": ["__webapp_store"]
}],
"lines-around-comment": ["error", {
"beforeLineComment": true,
"allowBlockStart": true
}]
"no-underscore-dangle": ["off"]
}
}
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"bracketSpacing": false,
"trailingComma": "es5"
}
Loading

0 comments on commit 96738c9

Please sign in to comment.