From d6fa797d3d43ef6161d4d1400f423104b0bcd068 Mon Sep 17 00:00:00 2001 From: "dr.dimitru" Date: Mon, 3 Jun 2019 11:39:22 +0300 Subject: [PATCH] Better linters and dot.files --- .eslintrc | 25 +++++------------- .gitignore | 70 +++---------------------------------------------- .markdownlintrc | 8 ++++++ .npmignore | 47 +++++++-------------------------- 4 files changed, 28 insertions(+), 122 deletions(-) create mode 100644 .markdownlintrc diff --git a/.eslintrc b/.eslintrc index d9863e55..af81ed25 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,8 @@ { "parser": "babel-eslint", + "parserOptions": { + "sourceType": "module" + }, "env": { "node": true, "browser": false @@ -14,23 +17,7 @@ "Worker": true, "navigator": true }, - "ecmaFeatures": { - "arrowFunctions": true, - "blockBindings": true, - "classes": true, - "defaultParams": true, - "destructuring": true, - "forOf": true, - "generators": false, - "modules": true, - "objectLiteralComputedProperties": true, - "objectLiteralDuplicateProperties": false, - "objectLiteralShorthandMethods": true, - "objectLiteralShorthandProperties": true, - "spread": true, - "superInFunctions": true, - "templateStrings": true - }, + "ecmaFeatures": {}, "rules": { "strict": [2, "never"], "no-shadow": 2, @@ -62,7 +49,6 @@ "block-scoped-var": 0, "no-undef": "error", "consistent-return": 2, - "consistent-this": ["error", "self"], "curly": [2, "multi-line"], "default-case": 2, "dot-notation": [2, { @@ -120,6 +106,9 @@ "beforeColon": false, "afterColon": true }], + "new-cap": [2, { + "newIsCap": true + }], "no-multiple-empty-lines": [2, { "max": 2 }], diff --git a/.gitignore b/.gitignore index 05531a7a..ac68445b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,68 +1,4 @@ -/test/ -# Logs -logs -*.log - -# Runtime data -pids -*.pid -*.seed - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt -.idea -*.lock - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directory -# Deployed apps should consider commenting this line out: -# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git -node_modules - -# OSX.gitignore -# https://github.com/github/gitignore/blob/master/Global/OSX.gitignore +.npm .DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear on external disk -.Spotlight-V100 -.Trashes - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -# cache files for sublime text -*.tmlanguage.cache -*.tmPreferences.cache -*.stTheme.cache - -# workspace files are user-specific -*.sublime-workspace - -# project files should be checked into the repository, unless a significant -# proportion of contributors will probably not be using SublimeText -*.sublime-project - -# sftp configuration file -sftp-config.json -private/* +.eslintcache +node_modules diff --git a/.markdownlintrc b/.markdownlintrc new file mode 100644 index 00000000..3c80b4b5 --- /dev/null +++ b/.markdownlintrc @@ -0,0 +1,8 @@ +{ + "default": true, + "line_length": false, + "no-trailing-punctuation": false, + "ul-start-left": false, + "no-inline-html": false, + "first-line-h1": false +} \ No newline at end of file diff --git a/.npmignore b/.npmignore index a602c1ba..0b6d19f0 100644 --- a/.npmignore +++ b/.npmignore @@ -1,38 +1,11 @@ -logs -*.log -pids -*.pid -*.seed -lib-cov -coverage -.grunt -.idea -*.lock -build/Release -node_modules +.npm +.github +.meteor .DS_Store -.AppleDouble -.LSOverride -Icon -._* -.Spotlight-V100 -.Trashes -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk -*.tmlanguage.cache -*.tmPreferences.cache -*.stTheme.cache -*.sublime-workspace -*.sublime-project -sftp-config.json -private/* -demo/* -demo-simplest-download-button/* -demo-simplest-streaming/* -demo-simplest-upload/* -docs/* -.npm/* -.meteor/* \ No newline at end of file +.versions +.eslintcache +node_modules +npm-debug.log* + +logo.png +logo-bw.png