Skip to content

Commit

Permalink
add eslint-config-airbnb and stylelint (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
priley86 authored and jeff-phillips-18 committed Feb 19, 2018
1 parent 87f0e55 commit b6f5027
Show file tree
Hide file tree
Showing 207 changed files with 4,253 additions and 2,652 deletions.
44 changes: 42 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,54 @@
{
"rules": {
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/no-named-default": "off",
"import/prefer-default-export": "off",
"no-alert": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": [
"error",
{ "allowShortCircuit": true, "allowTernary": true }
],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": true
}
],
"no-use-before-define": "off",
"prettier/prettier": [
"error",
{ "singleQuote": true, "trailingComma": "none" }
]
],
"react/no-array-index-key": "off",
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-uses-vars": "error",
"react/no-danger": "off"
},
"extends": [
"standard",
"standard-react",
"standard-jsx",
"airbnb",
"plugin:jest/recommended",
"prettier",
"prettier/react"
],
Expand All @@ -18,6 +58,6 @@
"node": true,
"jest": true
},
"plugins": ["prettier", "react"],
"plugins": ["prettier", "jest", "react"],
"parser": "babel-eslint"
}
4 changes: 4 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"defaultSeverity": "warning",
"extends": ["stylelint-config-standard"]
}
Loading

0 comments on commit b6f5027

Please sign in to comment.