mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-05-08 12:00:22 +08:00
style(eslint-fixes): change eslint to standard and fix warnings (#18)
This PR is just a proposition in order to enhance the code practices. * Eslint configuration changes from 4 to 2. * Fix warnings about missing `;`.
This commit is contained in:
committed by
Danilo Woznica
parent
3bc4a1a841
commit
a400e32ac8
@@ -27,8 +27,8 @@
|
||||
"scripts": {
|
||||
"watch": "babel --plugins transform-es2015-modules-umd src --watch --ignore tests --out-dir ./dist",
|
||||
"prepublish": "babel --plugins transform-es2015-modules-umd src --ignore tests --out-dir ./dist",
|
||||
"lint": "eslint ./src",
|
||||
"lintfix": "eslint ./src --fix",
|
||||
"lint": "eslint 'src/**/*.js'",
|
||||
"prettier": "prettier --write 'src/**/*.{js,jsx,json,css}'",
|
||||
"testonly": "mocha $npm_package_options_mocha",
|
||||
"test": "npm run lint && npm run testonly",
|
||||
"test-watch": "npm run testonly -- --watch --watch-extensions js",
|
||||
@@ -49,7 +49,9 @@
|
||||
"chai-enzyme": "^0.6.1",
|
||||
"enzyme": "^2.2.0",
|
||||
"eslint": "^2.7.0",
|
||||
"eslint-config-prettier": "^2.4.0",
|
||||
"eslint-plugin-babel": "^3.1.0",
|
||||
"eslint-plugin-prettier": "^2.2.0",
|
||||
"eslint-plugin-react": "^4.2.3",
|
||||
"jsdom": "^8.1.0",
|
||||
"mocha": "^2.4.5",
|
||||
|
||||
Reference in New Issue
Block a user