diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..91d92e3d --- /dev/null +++ b/.eslintignore @@ -0,0 +1,7 @@ +.travis/* +.idea/* +.vscode/* +node_modules/* +public/* +gulpfile.js +webpack.mix.js diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..2ab1039a --- /dev/null +++ b/.eslintrc @@ -0,0 +1,25 @@ +{ + "extends": "airbnb", + "env": { + "es6": true, + "mocha": true + }, + "parserOptions": { + "ecmaVersion": 8 + }, + "rules": { + "camelcase": 0, + "no-param-reassign": [ + 2, + { + "props": false + } + ], + "import/no-extraneous-dependencies": [ + "error", + { + "devDependencies": true + } + ] + } +} diff --git a/.styleci.yml b/.styleci.yml new file mode 100644 index 00000000..7312f339 --- /dev/null +++ b/.styleci.yml @@ -0,0 +1,31 @@ +preset: recommended +risky: true +enabled: + - align_double_arrow_minimal + # - align_equals_minimal + # - date_time_immutable + - ereg_to_preg + - function_to_constant + # - mb_str_functions + - modernize_types_casting + # - native_function_invocation + - no_blank_lines_after_return + - no_homoglyph_names + - no_php4_constructor + - no_useless_else + - phpdoc_add_missing_param_annotation +disabled: + - align_double_arrow + - blank_line_before_return + # - hash_to_slash_comment + - phpdoc_summary + - phpdoc_var_without_name + # - unalign_equals +finder: + exclude: + - modules + - node_modules + - storage + - vendor + name: "*.php" + not-name: "*.blade.php" diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index a4802f76..71354bd0 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -54,10 +54,13 @@ if [ "$TRAVIS" = "true" ]; then .sass-cache .idea .travis + tests + _ide_helper.php .dpl + .eslintignore + .eslintrc .phpstorm.meta.php - _ide_helper.php - tests + .styleci.yml env.php config.php Makefile