Skip to content

Commit

Permalink
Pretify code
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrinicolas committed Aug 21, 2018
1 parent dc17bb6 commit 6687ea1
Show file tree
Hide file tree
Showing 40 changed files with 1,126 additions and 768 deletions.
12 changes: 5 additions & 7 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[
"node_modules/*",
"fixtures/*",
"**/vendor/*.js",
"**/dist/*.js",
"src/gui/*"
]
node_modules/**/*
**/*/vendor/**/*
**/*/fictures/**/*
**/*/dist/**/*
**/*/src/gui/**/*
41 changes: 41 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"env": {
"browser": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"max-len": [
"error",
{
"code": 150
}
],
"comma-dangle": 0,
"no-plusplus": 0,
"arrow-parens": ["error", "as-needed"],
"no-multi-assign": 0,
"strict": 0,
"no-console": 0,
"prefer-destructuring": 0,
"function-paren-newline": 0,
"global-require": 0,
"prefer-spread": 0,
"prefer-rest-params": 0,
"prefer-arrow-callback": 0,
"arrow-body-style": 0,
"no-restricted-globals": 0,
"no-restricted-syntax": 0,
"no-unused-expressions": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"no-underscore-dangle": 0,
"import/no-unresolved": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": ["warn", "ignorePackages"],
"react/prefer-stateless-function": 0,
"react/jsx-one-expression-per-line": 0,
"implicit-arrow-linebreak": 0
}
}
36 changes: 0 additions & 36 deletions .eslintrc.js

This file was deleted.

61 changes: 61 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"printWidth": 80,
"parser": "flow",
"singleQuote": true,
"overrides": [
{
"files": "*.css",
"options": {
"parser": "scss",
"singleQuote": false
}
},
{
"files": ["*.json", ".prettierrc", ".eslintrc"],
"options": {
"parser": "json"
}
}
],
"eslintConfig": {
"env": {
"browser": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"max-len": [
"error",
{
"code": 150
}
],
"comma-dangle": 0,
"no-plusplus": 0,
"arrow-parens": ["error", "as-needed"],
"no-multi-assign": 0,
"strict": 0,
"no-console": 0,
"prefer-destructuring": 0,
"function-paren-newline": 0,
"global-require": 0,
"prefer-spread": 0,
"prefer-rest-params": 0,
"prefer-arrow-callback": 0,
"arrow-body-style": 0,
"no-restricted-globals": 0,
"no-restricted-syntax": 0,
"no-unused-expressions": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"no-underscore-dangle": 0,
"import/no-unresolved": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": ["warn", "ignorePackages"],
"react/prefer-stateless-function": 0,
"react/jsx-one-expression-per-line": 0,
"implicit-arrow-linebreak": 0
}
}
}
4 changes: 4 additions & 0 deletions fixtures/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ lepto(config)
console.error(msg);
})

.on('success', msg => {
console.log('success', msg);
})

.on('processed-file', data => {
let maxSave = 0;
let outputsText = [];
Expand Down
5 changes: 2 additions & 3 deletions fixtures/lepto.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"input": "fixtures/input",
"output": "fixtures/input/output",
"watch": true,
"input": "input",
"output": "input/output",
"filters": [
{
"glob": "**/*.jpg",
Expand Down
Binary file modified fixtures/test/output/icons/document.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fixtures/test/output/icons/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fixtures/test/output/icons/social/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fixtures/test/output/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fixtures/test/output/photos/002.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fixtures/test/output/svgfile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fixtures/test/photos/001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6687ea1

Please sign in to comment.