Skip to content

Commit

Permalink
refactor: 🎉 initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymichel committed Oct 25, 2018
1 parent 5a62c87 commit dc91eb5
Show file tree
Hide file tree
Showing 28 changed files with 5,957 additions and 3,748 deletions.
7 changes: 0 additions & 7 deletions .babelrc

This file was deleted.

12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
indent_size = 4
trim_trailing_whitespace = false
265 changes: 265 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es6': true,
'node': true
},
'extends': 'eslint:recommended',
'parser': 'babel-eslint',
'rules': {
'accessor-pairs': 2,
'array-callback-return': 2,
'array-bracket-spacing': 2,
'arrow-body-style': 2,
'arrow-parens': [
2,
'as-needed',
],
'arrow-spacing': 2,
'block-scoped-var': 2,
'block-spacing': 2,
'brace-style': 2,
'camelcase': [
2,
{
properties: 'always',
},
],
'capitalized-comments': [
2,
'always',
{
ignoreConsecutiveComments: true,
},
],
'class-methods-use-this': 2,
'comma-dangle': [
1,
'always-multiline',
],
'comma-spacing': 2,
'comma-style': 2,
'computed-property-spacing': 2,
'consistent-return': 2,
'consistent-this': 2,
'curly': 2,
'default-case': 2,
'dot-location': [
1,
'property',
],
'dot-notation': 2,
'eol-last': 2,
'eqeqeq': 2,
'func-call-spacing': 2,
'func-name-matching': 2,
'func-names': 2,
'global-require': 2,
'guard-for-in': 2,
'id-length': [
2,
{
min: 1,
max: 24,
},
],
'indent': [
2,
2,
{
SwitchCase: 1,
VariableDeclarator: {
var: 2,
let: 2,
const: 3,
},
},
],
'key-spacing': 2,
'keyword-spacing': 2,
'linebreak-style': 2,
'lines-around-comment': [
2,
{
beforeBlockComment: true,
afterBlockComment: false,
allowBlockStart: true,
allowBlockEnd: true,
allowObjectStart: true,
allowObjectEnd: true,
allowArrayStart: true,
allowArrayEnd: true,
},
],
'lines-around-directive': 2,
'max-depth': 2,
'max-len': [
2,
{
code: 120,
},
],
'max-nested-callbacks': 2,
'max-statements-per-line': [
2,
{
max: 2,
},
],
'new-cap': 2,
'new-parens': 2,
'newline-after-var': 2,
'newline-before-return': 2,
'newline-per-chained-call': 2,
'no-alert': 2,
'no-array-constructor': 2,
'no-await-in-loop': 2,
'no-caller': 2,
'no-console': 0,
'no-continue': 0,
'no-div-regex': 2,
'no-duplicate-imports': 2,
'no-else-return': 2,
'no-empty-function': 2,
'no-eq-null': 2,
'no-eval': 2,
'no-extend-native': 2,
'no-extra-bind': 2,
'no-extra-label': 2,
'no-extra-parens': [
2,
'all',
{
nestedBinaryExpressions: false,
},
],
'no-floating-decimal': 2,
'no-global-assign': 2,
'no-implicit-coercion': 2,
'no-implicit-globals': 2,
'no-implied-eval': 2,
'no-invalid-this': 2,
'no-iterator': 2,
'no-labels': 2,
'no-lone-blocks': 2,
'no-lonely-if': 2,
'no-loop-func': 2,
'no-magic-numbers': [
0,
{
ignore: [0, 1],
ignoreArrayIndexes: true,
},
],
'no-mixed-operators': 2,
'no-mixed-spaces-and-tabs': 2,
'no-multi-assign': 2,
'no-multi-spaces': 2,
'no-multi-str': 2,
'no-multiple-empty-lines': [
2,
{
max: 3,
},
],
'no-negated-condition': 2,
'no-nested-ternary': 2,
'no-new-func': 2,
'no-new-object': 2,
'no-new-wrappers': 2,
'no-new': 2,
'no-octal-escape': 2,
'no-param-reassign': 2,
'no-plusplus': [
2,
{
allowForLoopAfterthoughts: true,
},
],
'no-proto': 2,
'no-prototype-builtins': 2,
'no-restricted-properties': 2,
'no-return-assign': 2,
'no-return-await': 2,
'no-script-url': 2,
'no-self-compare': 2,
'no-sequences': 2,
'no-tabs': 2,
'no-template-curly-in-string': 2,
'no-throw-literal': 2,
'no-trailing-spaces': 2,
'no-unsafe-negation': 2,
'no-unmodified-loop-condition': 2,
'no-unneeded-ternary': 2,
'no-unused-expressions': [
2,
{
allowShortCircuit: true,
},
],
'no-useless-call': 2,
'no-useless-computed-key': 2,
'no-useless-concat': 2,
'no-useless-constructor': 2,
'no-useless-escape': 2,
'no-useless-rename': 2,
'no-useless-return': 2,
'no-var': 2,
'no-void': 2,
'no-warning-comments': 2,
'no-whitespace-before-property': 2,
'no-with': 2,
'object-shorthand': 2,
'object-property-newline': 2,
'operator-assignment': 2,
'operator-linebreak': [
2,
'after',
],
'padded-blocks': [
2,
'never',
],
'prefer-arrow-callback': 2,
'prefer-const': 2,
'prefer-destructuring': 2,
'prefer-promise-reject-errors': 2,
'prefer-rest-params': 2,
'prefer-spread': 2,
'prefer-template': 2,
'quote-props': [
2,
'consistent-as-needed',
],
'quotes': [
2,
'single',
],
'radix': 2,
'require-await': 2,
'require-jsdoc': 2,
'rest-spread-spacing': 2,
'semi': 2,
'semi-spacing': 2,
'space-before-blocks': 2,
'space-in-parens': 2,
'space-infix-ops': 2,
'space-unary-ops': [
2,
{
words: true,
nonwords: false,
},
],
'spaced-comment': 2,
'strict': 2,
'symbol-description': 2,
'template-curly-spacing': 2,
'valid-jsdoc': 2,
'vars-on-top': 2,
'wrap-iife': 2,
'wrap-regex': 2,
'yoda': 2
},
};
16 changes: 14 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created by https://www.gitignore.io/api/node,macos,linux,windows
# Created by https://www.gitignore.io/api/node,macos,linux,windows,visualstudiocode

### Linux ###
*~
Expand Down Expand Up @@ -118,6 +118,13 @@ typings/
# Serverless directories
.serverless

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Expand All @@ -144,4 +151,9 @@ $RECYCLE.BIN/
*.lnk


# End of https://www.gitignore.io/api/node,macos,linux,windows
# End of https://www.gitignore.io/api/node,macos,linux,windows,visualstudiocode


### Custom ###

.vscode/settings.json
8 changes: 8 additions & 0 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
linters:
src/**/*.js:
- prettier --write
- eslint
- git add
*.{json,md}:
- prettier --write
- git add
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"eslint.enable": false,
"editor.formatOnSave": true
}
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Luigi De Rosa <[email protected]> (http://luruke.com/)
Thierry Michel <[email protected]> (https://www.epic.net/)
Empty file removed CONTRIBUTE.md
Empty file.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Contributing

> TBD…
- `yarn install`
- `lerna bootstrap`
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Luigi De Rosa, Thierry Michel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Barba

> TBD
![stability-stable](https://img.shields.io/badge/stability-stable-green.svg?style=flat-square)
[![Coverage Status](https://img.shields.io/coveralls/github/epicagency/barba/master.svg?style=flat-square)](https://travis-ci.com/epicagency/barba)
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://gitlab.com/luruke/barba-next/blob/master/LICENSE)

[![NPM version](https://img.shields.io/npm/v/@barba/core.svg?style=flat-square)](https://www.npmjs.com/package/@barba/core)
[![NPM version](https://img.shields.io/npm/v/@barba/router.svg?style=flat-square)](https://www.npmjs.com/package/@barba/router)
10 changes: 10 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Todos

- Find correct open source license
- anyone can do what they want, but:
- they can't resell it as it is
- I have the right in any moment to not allow a specific use
- Implement unit tests + e2e tests (puppetteer? / cypress?)
- Documentation automatic or manual?
- When build for production (+ npm push), update the file gzip in website and readme
- use conventional commits/changelog with some automation
8 changes: 0 additions & 8 deletions TODO.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit dc91eb5

Please sign in to comment.