Skip to content

Commit

Permalink
ADD: Dependencies and Linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
karloluis committed Dec 1, 2018
1 parent 8a30a3a commit fccb287
Show file tree
Hide file tree
Showing 3 changed files with 407 additions and 258 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
env: {
es6: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
sourceType: 'module',
},
plugins: ['react', 'eslint-plugin-react'],
rules: {
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
},
};
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
"dependencies": {
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"clean": "rm -rf node_modules/ && rm yarn.lock && yarn install"
},
"eslintConfig": {
"extends": "react-app"
Expand All @@ -21,5 +24,8 @@
"not dead",
"not ie <= 11",
"not op_mini all"
]
],
"devDependencies": {
"eslint-plugin-react": "^7.11.1"
}
}
Loading

0 comments on commit fccb287

Please sign in to comment.