Skip to content

Commit

Permalink
eslint and prettier
Browse files Browse the repository at this point in the history
fixes creativetimofficial#47. eslint and prettier added with react plugin as optional dependencies. Ignores documentation directory. Matches current styling rules in place. To run use npm run-script lint.
  • Loading branch information
kdclaw3 committed Jul 10, 2018
1 parent 3f760fd commit 23df9d0
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 41 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
documentation/
21 changes: 21 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"es6": true,
"node": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"prettier/react",
"prettier/standard"
]
}
89 changes: 48 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,49 @@
{
"name": "material-dashboard-react",
"version": "1.2.0",
"description": "Material Dashboard React. Coded by Creative Tim",
"private": false,
"main": "index.js",
"dependencies": {
"@material-ui/core": "1.2.1",
"@material-ui/icons": "1.1.0",
"@types/googlemaps": "3.30.9",
"@types/markerclustererplus": "2.1.33",
"ajv": "6.5.1",
"chartist": "0.10.1",
"classnames": "2.2.6",
"npm-run-all": "4.1.3",
"perfect-scrollbar": "1.4.0",
"react": "16.4.0",
"react-chartist": "0.13.1",
"react-dom": "16.4.0",
"react-google-maps": "9.4.5",
"react-router-dom": "4.3.1",
"react-scripts": "1.1.4",
"react-swipeable-views": "0.12.13"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
"repository": {
"type": "git",
"url": "git+https://github.com/creativetimofficial/material-dashboard-react.git"
},
"keywords": [],
"author": "Creative Tim <[email protected]> (https://www.creative-tim.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/creativetimofficial/material-dashboard-react/issues"
},
"homepage": "https://creativetimofficial.github.io/material-dashboard-react/#/dashboard"
}
"name": "material-dashboard-react",
"version": "1.2.0",
"description": "Material Dashboard React. Coded by Creative Tim",
"private": false,
"main": "index.js",
"dependencies": {
"@material-ui/core": "1.2.1",
"@material-ui/icons": "1.1.0",
"@types/googlemaps": "3.30.9",
"@types/markerclustererplus": "2.1.33",
"ajv": "6.5.1",
"chartist": "0.10.1",
"classnames": "2.2.6",
"npm-run-all": "4.1.3",
"perfect-scrollbar": "1.4.0",
"react": "16.4.0",
"react-chartist": "0.13.1",
"react-dom": "16.4.0",
"react-google-maps": "9.4.5",
"react-router-dom": "4.3.1",
"react-scripts": "1.1.4",
"react-swipeable-views": "0.12.13"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"lint": "eslint . --fix; exit 0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/creativetimofficial/material-dashboard-react.git"
},
"keywords": [],
"author": "Creative Tim <[email protected]> (https://www.creative-tim.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/creativetimofficial/material-dashboard-react/issues"
},
"homepage": "https://creativetimofficial.github.io/material-dashboard-react/#/dashboard",
"optionalDependencies": {
"eslint": "^5.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-react": "^7.10.0",
"prettier": "^1.13.7"
}
}

0 comments on commit 23df9d0

Please sign in to comment.