Skip to content

Commit

Permalink
Merge pull request #1564 from jwplayer/feature/eslint-es5
Browse files Browse the repository at this point in the history
ES5 Support for ESLint
  • Loading branch information
johnBartos committed Nov 22, 2016
2 parents 2b873d4 + 6618d69 commit bc319d9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
*
29 changes: 29 additions & 0 deletions .eslintrc
@@ -0,0 +1,29 @@
{
"env": {
"browser": true,
"amd": true
},
"globals": {
"define": true
},
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "module"
},
"extends": "jwplayer-base",
"rules": {
"no-var": 0,
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"prefer-spread": "off",
"vars-on-top": "off",
"max-len": ["error", 120, { "ignoreComments": true }],
"object-shorthand": 0,
"no-use-before-define": 0,
"func-names": 0,
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-console": 0,
"prefer-rest-params": 0,
"prefer-arrow-callback": 0
}
}
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -13,6 +13,8 @@
"async": "2.0.0-rc.6",
"autoprefixer-loader": "3.2.0",
"css-loader": "^0.23.1",
"eslint": "^3.5.0",
"eslint-config-jwplayer-base": "^7.1.0",
"esprima": "2.7.2",
"file-loader": "^0.8.5",
"grunt": "1.0.1",
Expand Down

0 comments on commit bc319d9

Please sign in to comment.