fix(linting): Adding standard JS linting rules

This commit is contained in:
Chris Troutner
2020-07-06 15:13:35 -07:00
parent 38bbd24c87
commit 22a9f29274
5 changed files with 636 additions and 401 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "standard",
"env": {
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 10
}
}
+1 -1
View File
@@ -6,5 +6,5 @@
module.exports = {
/* Your site config here */
plugins: ["gatsby-ipfs-web-wallet"],
plugins: ['gatsby-ipfs-web-wallet']
}
+616 -392
View File
File diff suppressed because it is too large Load Diff
+4 -3
View File
@@ -6,11 +6,11 @@
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"lint": "standard --env mocha --fix",
"start": "npm run develop",
"serve": "gatsby serve",
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
"test": "npm run lint"
},
"dependencies": {
"gatsby": "^2.23.7",
@@ -24,7 +24,8 @@
"url": "https://github.com/Permissionless-Software-Foundation/bch-wallet-starter/issues"
},
"devDependencies": {
"semantic-release": "^17.1.1"
"semantic-release": "^17.1.1",
"standard": "^14.3.4"
},
"release": {
"publish": [
@@ -6,17 +6,17 @@
It over-rides he default file in the gatsby-ipfs-web-wallet Theme.
*/
import React from "react"
import { Sidebar } from "adminlte-2-react"
import React from 'react'
import { Sidebar } from 'adminlte-2-react'
const { Item } = Sidebar
const MenuComponents = [
{
key: "New Component",
key: 'New Component',
component: <div>Test!</div>,
menuItem: <Item icon="fas-cog" key="New Component" text="New Component" />,
},
menuItem: <Item icon='fas-cog' key='New Component' text='New Component' />
}
]
export default MenuComponents