Skip to content

Commit

Permalink
Add eslint, prettier, fix all files
Browse files Browse the repository at this point in the history
  • Loading branch information
jemise111 committed Oct 5, 2019
1 parent 78bf372 commit 421bcdf
Show file tree
Hide file tree
Showing 14 changed files with 2,764 additions and 1,335 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"env": {
"es6": true,
"node": true
},
"extends": ["plugin:prettier/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["prettier", "react"],
"rules": {
"prettier/prettier": "error"
}
}
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5"
}
4 changes: 0 additions & 4 deletions SwipeListExample/.eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion SwipeListExample/__tests__/App-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import App from '../App';
import renderer from 'react-test-renderer';

it('renders correctly', () => {
renderer.create(<App />);
renderer.create(<App />);
});
2 changes: 1 addition & 1 deletion SwipeListExample/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:metro-react-native-babel-preset'],
};
Loading

0 comments on commit 421bcdf

Please sign in to comment.