Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Commit

Permalink
Update eslint and airbnb lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliphaunte committed Dec 15, 2017
1 parent dc1023c commit bcfa9f0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 14 deletions.
6 changes: 4 additions & 2 deletions .eslintrc
@@ -1,5 +1,6 @@
{
"extends": "airbnb",
"extends": [ "airbnb-base" ],
"plugins": [ "react" ],
parser: "babel-eslint",
"rules": {
"react/prop-types": [2],
Expand All @@ -11,10 +12,12 @@
"import/namespace": 0,
"import/no-unresolved": 0,
"import/no-named-as-default": 2,
"import/extensions": ["off", "never"],
"comma-dangle": 0, // not sure why airbnb turned this on. gross!
"indent": [2, 2, {"SwitchCase": 1}],
"no-console": 0,
"no-alert": 0,
"no-multi-spaces": ["error", { exceptions: { "ImportDeclaration": true} }], // For import spacing
"linebreak-style": 0,
"react/jsx-filename-extension": 0,
"arrow-body-style": 0,
Expand All @@ -25,7 +28,6 @@
"react/forbid-prop-types": 0,
"object-curly-spacing": 0
},
"plugins": [ "react" ],
"settings": {
"import/resolve": {
"moduleDirectory": ["node_modules", "src"]
Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -29,6 +29,7 @@
},
"homepage": "https://github.com/Rulox/react-atomic-structure#readme",
"dependencies": {
"autoprefixer": "^7.2.3",
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
Expand All @@ -44,8 +45,8 @@
"eslint": "^4.12.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.5.1",
"extract-text-webpack-plugin": "^3.0.2",
"html-webpack-plugin": "^2.24.1",
Expand Down
31 changes: 21 additions & 10 deletions yarn.lock
Expand Up @@ -327,6 +327,17 @@ autoprefixer@^7.1.2:
postcss "^6.0.14"
postcss-value-parser "^3.2.3"

autoprefixer@^7.2.3:
version "7.2.3"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-7.2.3.tgz#c2841e38b7940c2d0a9bbffd72c75f33637854f8"
dependencies:
browserslist "^2.10.0"
caniuse-lite "^1.0.30000783"
normalize-range "^0.1.2"
num2fraction "^1.2.2"
postcss "^6.0.14"
postcss-value-parser "^3.2.3"

aws-sign2@~0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f"
Expand Down Expand Up @@ -1094,7 +1105,7 @@ browserslist@^1.3.6, browserslist@^1.5.2, browserslist@^1.7.6:
caniuse-db "^1.0.30000639"
electron-to-chromium "^1.2.7"

browserslist@^2.1.2, browserslist@^2.9.1:
browserslist@^2.1.2, browserslist@^2.10.0, browserslist@^2.9.1:
version "2.10.0"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.10.0.tgz#bac5ee1cc69ca9d96403ffb8a3abdc5b6aed6346"
dependencies:
Expand Down Expand Up @@ -1218,6 +1229,10 @@ caniuse-lite@^1.0.30000777, caniuse-lite@^1.0.30000780:
version "1.0.30000780"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000780.tgz#1f9095f2efd4940e0ba6c5992ab7a9b64cc35ba4"

caniuse-lite@^1.0.30000783:
version "1.0.30000783"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000783.tgz#9b5499fb1b503d2345d12aa6b8612852f4276ffd"

caseless@~0.11.0:
version "0.11.0"
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
Expand Down Expand Up @@ -2257,7 +2272,7 @@ eslint-module-utils@^2.1.1:
debug "^2.6.8"
pkg-dir "^1.0.0"

eslint-plugin-import@^2.2.0:
eslint-plugin-import@^2.8.0:
version "2.8.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.8.0.tgz#fa1b6ef31fcb3c501c09859c1b86f1fc5b986894"
dependencies:
Expand All @@ -2272,17 +2287,17 @@ eslint-plugin-import@^2.2.0:
minimatch "^3.0.3"
read-pkg-up "^2.0.0"

eslint-plugin-jsx-a11y@^6.0.2:
version "6.0.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.0.2.tgz#659277a758b036c305a7e4a13057c301cd3be73f"
eslint-plugin-jsx-a11y@^6.0.3:
version "6.0.3"
resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.0.3.tgz#54583d1ae442483162e040e13cc31865465100e5"
dependencies:
aria-query "^0.7.0"
array-includes "^3.0.3"
ast-types-flow "0.0.7"
axobject-query "^0.1.0"
damerau-levenshtein "^1.0.0"
emoji-regex "^6.1.0"
jsx-ast-utils "^1.4.0"
jsx-ast-utils "^2.0.0"

eslint-plugin-react@^7.5.1:
version "7.5.1"
Expand Down Expand Up @@ -3812,10 +3827,6 @@ jsprim@^1.2.2:
json-schema "0.2.3"
verror "1.10.0"

jsx-ast-utils@^1.4.0:
version "1.4.1"
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1"

jsx-ast-utils@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz#e801b1b39985e20fffc87b40e3748080e2dcac7f"
Expand Down

0 comments on commit bcfa9f0

Please sign in to comment.