Skip to content

Commit

Permalink
use eslint, close: #74
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 25, 2017
1 parent c6112a1 commit 15e770c
Show file tree
Hide file tree
Showing 13 changed files with 1,491 additions and 815 deletions.
60 changes: 60 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true
},
"rules": {
"no-console": 0,
"no-extra-parens": 1,
"block-scoped-var": 1,
"curly": 1,
"eqeqeq": 1,
"no-global-assign": 1,
"no-implicit-globals": 1,
"no-labels": 1,
"no-multi-str": 1,
"no-unused-expressions": 1,
"comma-spacing": 1,
"comma-style": 1,
"func-call-spacing": 1,
"indent": 1,
"keyword-spacing": 1,
"linebreak-style": 1,
"lines-around-comment": 1,
"no-multiple-empty-lines": 1,
"space-infix-ops": 1,
"arrow-spacing": 1,
"no-var": 1,
"prefer-const": 1,
"no-unsafe-negation": 1,
"array-callback-return": 1,
"dot-location": 1,
"dot-notation": 1,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-label": 1,
"semi": 1,
"space-before-blocks": 1,
"space-before-function-paren": 1,
"space-in-parens": 1,
"space-unary-ops": 1,
"spaced-comment": 1,
"arrow-body-style": 1,
"arrow-parens": 1,
"no-restricted-imports": 1,
"no-duplicate-imports": 1,
"no-useless-computed-key": 1,
"no-useless-rename": 1,
"rest-spread-spacing": 1
},
"globals": {
"require": false,
"module": false,
"Hls": false,
"flvjs": false
}
}
2 changes: 1 addition & 1 deletion dist/DPlayer.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/DPlayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/DPlayer.min.js.map

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,23 @@
},
"homepage": "https://github.com/DIYgod/DPlayer#readme",
"devDependencies": {
"autoprefixer": "^6.7.2",
"autoprefixer": "^7.1.1",
"babel-core": "^6.24.1",
"babel-loader": "^6.4.1",
"babel-loader": "^7.0.0",
"babel-preset-es2015": "^6.24.1",
"css-loader": "^0.28.0",
"eslint": "^3.19.0",
"eslint-loader": "^1.7.1",
"exports-loader": "^0.6.4",
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^0.11.1",
"node-sass": "^4.5.0",
"postcss-loader": "^1.3.3",
"postcss-loader": "^2.0.5",
"sass-loader": "^6.0.2",
"strip-loader": "^0.1.2",
"style-loader": "^0.16.1",
"style-loader": "^0.18.1",
"url-loader": "^0.5.7",
"webpack": "^2.3.3",
"webpack-dev-server": "^2.4.2"
"webpack": "^2.6.1",
"webpack-dev-server": "^2.4.5"
}
}
Loading

0 comments on commit 15e770c

Please sign in to comment.