Skip to content

Commit

Permalink
Merge pull request #128 from edx/implement-eslint-plugin-compat
Browse files Browse the repository at this point in the history
build(eslint): add browser compatibility linting
  • Loading branch information
jaebradley authored Jan 26, 2018
2 parents 3ff281e + 6011d37 commit 1e83713
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
}
},
"rules": {
"react/no-array-index-key": "off"
"react/no-array-index-key": "off",
"compat/compat": "error"
},
"settings": {
"import/resolver": {
Expand All @@ -16,8 +17,10 @@
}
},
"env": {
"jest": true
"jest": true,
"browser": true
},
"plugins": ["compat"],
"overrides": {
"files": ["*.stories.jsx", "*.test.jsx"],
"rules": {
Expand Down
58 changes: 58 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"eslint-config-airbnb": "^16.0.0",
"eslint-config-edx": "^4.0.1",
"eslint-import-resolver-webpack": "^0.8.1",
"eslint-plugin-compat": "^2.1.0",
"eslint-plugin-jsx-a11y": "^5.1.0",
"eslint-plugin-react": "^7.1.0",
"extract-text-webpack-plugin": "^3.0.1",
Expand Down Expand Up @@ -102,5 +103,9 @@
"transformIgnorePatterns": [
"/node_modules/(?!lodash-es/.*)"
]
}
},
"browserslist": [
"last 2 versions",
"not ie < 11"
]
}

0 comments on commit 1e83713

Please sign in to comment.