Skip to content

Commit

Permalink
Apply C-Hive JS conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
gomorizsolt committed Aug 4, 2019
1 parent 8c007e5 commit 7c0141d
Show file tree
Hide file tree
Showing 16 changed files with 1,641 additions and 4,157 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# In order to avoid testing the generated folders.
/coverage

/build
/out

/node_modules
/node_modules
8 changes: 3 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
module.exports = {
env: {
node: true,
browser: true,
browser: true
},
extends: ["airbnb", "plugin:prettier/recommended"],
plugins: ["react"],
rules: {
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
"react/prop-types": 0,
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
"import/prefer-default-export": 0, // https://stackoverflow.com/q/54245654/2771889
"linebreak-style": ["error", process.platform === "win32" ? "windows" : "unix"], // // https://stackoverflow.com/q/39114446/2771889
"import/prefer-default-export": 0,
"linebreak-style": ["error", process.platform === "win32" ? "windows" : "unix"],
"import/prefer-default-export": 0,
"react/jsx-one-expression-per-line": 0,
},
};
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Node modules
# node dependencies
/node_modules

# Generated build and out folder by next
/build
/out
.next

# Jest test coverage
/coverage
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// VSCode needs to be restarted if Prettier config changes

// If possible, settings should be kept in 1 place (i.e. `eslintrc`)
// But in some cases ESLing and Prettier confuse eachother
module.exports = {
trailingComma: "es5", // Makes diffs nicer
}
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": false,
"eslint.autoFixOnSave": true,
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# c-hive.dev

A Next.js SPA website to showcase ourselves: https://c-hive.gitlab.io/c-hive.dev/

## Local development

```bash
npm install
npm run dev
```
9 changes: 0 additions & 9 deletions doc/setup.md

This file was deleted.

4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

7 changes: 0 additions & 7 deletions jest.setup.js

This file was deleted.

Loading

0 comments on commit 7c0141d

Please sign in to comment.