Skip to content

Commit

Permalink
Adding prettier and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Aug 20, 2020
1 parent 182ac51 commit 81cda06
Show file tree
Hide file tree
Showing 5 changed files with 1,735 additions and 622 deletions.
6 changes: 2 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"presets": [
"@babel/preset-env"
]
}
"presets": ["@babel/preset-env"]
}
4 changes: 4 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["important-stuff"],
"parser": "@babel/eslint-parser"
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib
22 changes: 18 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@
"main": "lib/single-spa-preact.js",
"scripts": {
"prepublishOnly": "yarn build",
"lint": "eslint src",
"format": "prettier --write .",
"build": "rimraf lib && babel src --out-dir lib --source-maps"
},
"repository": {
"type": "git",
"url": "git+https://github.com/single-spa/single-spa-preact.git"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && yarn lint"
}
},
"keywords": [
"single",
"page",
Expand All @@ -31,9 +38,16 @@
},
"homepage": "https://github.com/single-spa/single-spa-preact#readme",
"devDependencies": {
"@babel/cli": "^7.6.2",
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"rimraf": "^3.0.0"
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.1",
"@babel/eslint-parser": "^7.11.3",
"@babel/preset-env": "^7.11.0",
"eslint": "^7.7.0",
"eslint-config-important-stuff": "^1.1.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.2.5",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"rimraf": "^3.0.2"
}
}
Loading

0 comments on commit 81cda06

Please # to comment.