reduce number of config files

This commit is contained in:
Jeff Nusz 2016-09-22 13:30:26 -07:00
parent 85ee981be4
commit b861ac82f1
5 changed files with 27 additions and 60 deletions

View File

@ -1,5 +0,0 @@
{
"stage": 0,
"loose": "all"
}

View File

@ -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

View File

@ -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
}
}

14
.gitattributes vendored
View File

@ -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

View File

@ -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
}
}
}