Skip to content

Commit

Permalink
Merge pull request #10 from teambailey/feature/lintingFormating
Browse files Browse the repository at this point in the history
Add linting and formatting configs
  • Loading branch information
teambailey authored Oct 6, 2020
2 parents 7d702a7 + 02b00e2 commit bd22dba
Show file tree
Hide file tree
Showing 7 changed files with 3,761 additions and 511 deletions.
4 changes: 2 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": ["@babel/preset-env"],
"plugins": ["transform-object-rest-spread"]
"presets": ["@babel/preset-env"],
"plugins": ["transform-object-rest-spread"]
}
68 changes: 68 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:react-hooks/recommended",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"rules": {
// Disabled
"no-tabs": 0,
"comma-dangle": 0,
"object-curly-newline": 0,
"no-unused-expressions": [
0,
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
],
"no-underscore-dangle": 0,

// Warnings
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"no-mixed-spaces-and-tabs": 0,
"react/jsx-props-no-spreading": 1,
"react/forbid-prop-types": 1,
"import/no-extraneous-dependencies": 1,
"camelcase": [
1,
{
"properties": "never",
"ignoreDestructuring": true,
"ignoreImports": true,
"ignoreGlobals": true
}
],
"no-param-reassign": 1,
"no-plusplus": 1,
"react/jsx-no-bind": 1,
"no-restricted-globals": 1,

// Configurations
"indent": [2, "tab", { "SwitchCase": 1, "offsetTernaryExpressions": true }],
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"]
},
"globals": {
"console": "readonly",
"process": "readonly",
"fetch": "readonly",
"Promise": "readonly",
"window": "readonly",
"setTimeout": "readonly",
"clearTimeout": "readonly",
"setInterval": "readonly",
"clearInterval": "readonly",
"document": "readonly",
"sessionStorage": "readonly",
"alert": "readonly",
"Blob": "readonly",
"ga": "readonly",
"gtag": "readonly",
"fbq": "readonly"
}
}
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 80,
"useTabs": true,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "always",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "strict"
}
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
# Simple Base
# Simple Base

### Fast setup for a simple framework used for quick build outs than can be production ready if required

#### Get dependencies

```
npm install
```

#### Then run constructor

```
gulp makie
```

#### During development run

```
gulp
```

#### For a production ready build

```
gulp build:prod
```
-------

---

#### Zsh function for auto-build

```
generateSimpleBase(){git clone https://github.com/teambailey/simple-base.git $1 && cd $1/ && npm i && gulp makie && gulp}
```

#### Auto-build command line use

```
generateSimpleBase ${ newDirectoryName }
```
Loading

0 comments on commit bd22dba

Please sign in to comment.