From b861ac82f181885418cadde580f686e0c208085e Mon Sep 17 00:00:00 2001 From: Jeff Nusz Date: Thu, 22 Sep 2016 13:30:26 -0700 Subject: [PATCH] reduce number of config files --- .babelrc | 5 ----- .editorconfig | 17 ----------------- .eslintrc | 23 ----------------------- .gitattributes | 14 -------------- package.json | 28 +++++++++++++++++++++++++++- 5 files changed, 27 insertions(+), 60 deletions(-) delete mode 100644 .babelrc delete mode 100644 .editorconfig delete mode 100644 .eslintrc delete mode 100644 .gitattributes diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 3c35754..0000000 --- a/.babelrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "stage": 0, - "loose": "all" -} - diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 7734a2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,17 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 2 -indent_style = space -max_line_length = 80 -trim_trailing_whitespace = true - -[*.md] -max_line_length = 0 -trim_trailing_whitespace = false - -[COMMIT_EDITMSG] -max_line_length = 0 diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index bfa9939..0000000 --- a/.eslintrc +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": "airbnb-base", - "rules": { - "comma-dangle": 0, - "func-names": 0, - "no-alert": 1, - "no-console": 1, - "no-use-before-define": 0, - "prefer-rest-params": 0, - "prefer-template": 0, - "no-mixed-operators": 0, - "no-undef": 0, - "no-underscore-dangle": 0, - "prefer-arrow-callback": 0, - "space-before-function-paren": 0, - "global-require": 0, - "object-shorthand": 0, - "max-len": 0, - "no-param-reassign": 0, - "consistent-return": 0, - "no-restricted-syntax": 1 - } -} \ No newline at end of file diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 9fb85ec..0000000 --- a/.gitattributes +++ /dev/null @@ -1,14 +0,0 @@ -# Set the default behavior, in case people don't have core.autocrlf set. -* text=auto - -# Explicitly declare text files you want to always be normalized and converted -# to native line endings on checkout. -*.c text -*.h text - -# Declare files that will always have CRLF line endings on checkout. -*.sln text eol=crlf - -# Denote all files that are truly binary and should not be modified. -*.png binary -*.jpg binary \ No newline at end of file diff --git a/package.json b/package.json index 60155d7..99c43d0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "test": "tests" }, "scripts": { - "test": "node ./node_modules/eslint/bin/eslint.js src/", "dev": "webpack --progress --colors --watch --config webpack/webpack.config.js --devtool sourcemap", "build": "npm run build-js && npm run build-css", "build-js": "webpack --config ./webpack/webpack.config.js --devtool sourcemap && webpack --config ./webpack/webpack.config.min.js", @@ -45,5 +44,32 @@ }, "dependencies": { "babel": "^5.8.21" + }, + "babel": { + "stage": 0, + "loose": "all" + }, + "eslintConfig": { + "extends": "airbnb-base", + "rules": { + "comma-dangle": 0, + "func-names": 0, + "no-alert": 1, + "no-console": 1, + "no-use-before-define": 0, + "prefer-rest-params": 0, + "prefer-template": 0, + "no-mixed-operators": 0, + "no-undef": 0, + "no-underscore-dangle": 0, + "prefer-arrow-callback": 0, + "space-before-function-paren": 0, + "global-require": 0, + "object-shorthand": 0, + "max-len": 0, + "no-param-reassign": 0, + "consistent-return": 0, + "no-restricted-syntax": 1 + } } }