Skip to content

Commit

Permalink
prettier/eslint js files (#172)
Browse files Browse the repository at this point in the history
* updates

* updates linting settings, adds prettier target

* npm reg
  • Loading branch information
jdivock-stripe authored Mar 18, 2022
1 parent a8e35ae commit 4a32f6b
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 241 deletions.
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"images" : [
"images": [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
"idiom": "iphone",
"size": "29x29",
"scale": "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
"idiom": "iphone",
"size": "29x29",
"scale": "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
"idiom": "iphone",
"size": "40x40",
"scale": "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
"idiom": "iphone",
"size": "40x40",
"scale": "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
"idiom": "iphone",
"size": "60x60",
"scale": "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
"idiom": "iphone",
"size": "60x60",
"scale": "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
206 changes: 0 additions & 206 deletions example/server/index.js

This file was deleted.

14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
"scripts": {
"test": "jest",
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{ts,tsx}\"",
"lint": "eslint \"**/*.{ts,tsx,js}\"",
"prepare": "bob build",
"release": "release-it",
"prettier": "prettier --write \"**/*.{ts,js,jsx,tsx}\"",
"example": "yarn --cwd example",
"pods": "cd example && pod-install --quiet",
"clean": "rm -rf node_modules && rm -rf example/node_modules && rm -rf example/ios/Pods",
Expand Down Expand Up @@ -70,7 +71,7 @@
"eslint": "^7.14.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-detox": "^1.0.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-prettier": "^3.3.0",
"husky": "^6.0.0",
"jest": "^27.3.1",
"metro-react-native-babel-preset": "^0.66.2",
Expand All @@ -80,8 +81,8 @@
"react-native": "0.66.3",
"react-native-builder-bob": "^0.18.0",
"stripe": "^7.14.0",
"typescript": "^4.1.3",
"typedoc": "^0.22.12"
"typedoc": "^0.22.12",
"typescript": "^4.1.3"
},
"jest": {
"preset": "react-native",
Expand Down Expand Up @@ -120,7 +121,10 @@
},
"eslintIgnore": [
"node_modules/",
"lib/"
"lib/",
"android/build",
"example/ios",
"example/android"
],
"prettier": {
"quoteProps": "consistent",
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const options = {
};

if (os.type() === 'Windows_NT') {
options.shell = true
options.shell = true;
}

let result;
Expand Down
1 change: 0 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"extends": "./tsconfig",
"exclude": ["example"]
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3378,9 +3378,9 @@ eslint-plugin-prettier@3.1.2:
dependencies:
prettier-linter-helpers "^1.0.0"

eslint-plugin-prettier@^3.1.3:
eslint-plugin-prettier@^3.3.0:
version "3.4.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz#e9ddb200efb6f3d05ffe83b1665a716af4a387e5"
resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz#e9ddb200efb6f3d05ffe83b1665a716af4a387e5"
integrity sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==
dependencies:
prettier-linter-helpers "^1.0.0"
Expand Down

0 comments on commit 4a32f6b

Please sign in to comment.