-
Couldn't load subscription status.
- Fork 323
updated tests to run linter #388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8e51826
updated tests to run linter
strausr b56b4bf
Add lint.sh and prevent lint from running on old node versions
patrick-tolosa 2443775
Fix typo
patrick-tolosa 376e997
Merge branch 'master' of https://github.com/cloudinary/cloudinary_npm…
strausr 39f4df4
removed lint
strausr db7e7dd
added import/no-extraneous-dependencies rule off
strausr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,102 +1,100 @@ | ||
| module.exports = { | ||
| "env": { | ||
| "commonjs": true, | ||
| "es6": true, | ||
| "node": true | ||
| }, | ||
| "extends": "airbnb-base", | ||
| "globals": { | ||
| "Atomics": "readonly", | ||
| "SharedArrayBuffer": "readonly" | ||
| }, | ||
| "parserOptions": { | ||
| "ecmaVersion": 2018 | ||
| }, | ||
| "rules": { | ||
| "camelcase": "off", | ||
| // "class-methods-use-this": "off", | ||
| "comma-dangle": ["error", { | ||
| "functions": "ignore", | ||
| "arrays": "always-multiline", | ||
| "objects": "always-multiline", | ||
| "imports": "always-multiline", | ||
| "exports": "always-multiline", | ||
| }], | ||
| // "consistent-return": "off", | ||
| // "dot-notation": "off", | ||
| "func-names": "off", | ||
| "global-require": "off", | ||
| // "guard-for-in": "off", | ||
| // "import/newline-after-import": "off", | ||
| "import/no-dynamic-require": "off", | ||
| // "import/order": "off", | ||
| "max-len": [ | ||
| "warn", | ||
| { | ||
| "code": 120, | ||
| "ignoreComments": false, | ||
| "ignoreRegExpLiterals": true, | ||
| "ignoreStrings": true, | ||
| "ignoreTemplateLiterals": true, | ||
| "ignoreTrailingComments": false, | ||
| "ignoreUrls": true, | ||
| "tabWidth": 2 | ||
| } | ||
| ], | ||
| // "new-cap": "off", | ||
| "newline-per-chained-call": "off", | ||
| // "no-bitwise": "off", | ||
| // "no-buffer-constructor": "off", | ||
| // "no-cond-assign": "off", | ||
| // "no-confusing-arrow": "off", | ||
| "no-console": "off", | ||
| // "no-dupe-keys": "off", | ||
| // "no-else-return": "off", | ||
| // "no-empty": "off", | ||
| // "no-empty-function": "off", | ||
| // "no-lonely-if": "off", | ||
| // "no-loop-func": "off", | ||
| // "no-mixed-operators": "off", | ||
| // "no-multi-assign": "off", | ||
| "no-param-reassign": "off", | ||
| "no-plusplus": "off", | ||
| "no-prototype-builtins": "off", | ||
| // "no-restricted-syntax": "off", | ||
| // "no-return-assign": "off", | ||
| // "no-shadow": "off", | ||
| "no-throw-literal": "off", | ||
| // "no-unreachable": "off", | ||
| "no-unused-vars": ["error", { | ||
| "args": "none", | ||
| "caughtErrors": "none" | ||
| }], | ||
| "no-trailing-spaces": ['error',{ | ||
| "skipBlankLines" : true | ||
| }], | ||
| "no-use-before-define": "off", | ||
| "no-useless-concat": "off", | ||
| "no-useless-constructor": "off", | ||
| "no-useless-escape": "off", | ||
| "no-var": "off", | ||
| "no-void": "off", | ||
| "object-curly-newline": [ | ||
| "error", | ||
| { | ||
| "consistent": true | ||
| } | ||
| ], | ||
| "object-shorthand": "off", | ||
| "one-var": "off", | ||
| "one-var-declaration-per-line": "off", | ||
| "operator-assignment": "off", | ||
| "prefer-arrow-callback": "off", | ||
| "prefer-const": "off", | ||
| "prefer-destructuring": "off", | ||
| "prefer-template": "off", | ||
| "quote-props": "off", | ||
| "quotes": "off", | ||
| "radix": "off", | ||
| "vars-on-top": "off", | ||
| "wrap-iife": "off" | ||
| } | ||
| } | ||
| "env": { | ||
| "browser": true, | ||
| "commonjs": true, | ||
| "es6": true | ||
| }, | ||
| "extends": "airbnb-base", | ||
| "globals": { | ||
| "Atomics": "readonly", | ||
| "SharedArrayBuffer": "readonly" | ||
| }, | ||
| "parserOptions": { | ||
| "ecmaVersion": 2018 | ||
| }, | ||
| "rules": { | ||
| "arrow-body-style": "off", | ||
strausr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "arrow-spacing": "off", | ||
| "arrow-parens": "off", | ||
| "camelcase": "off", | ||
| "class-methods-use-this": "off", | ||
| "comma-dangle": "off", | ||
| "comma-spacing": "off", | ||
| "consistent-return": "off", | ||
| "dot-notation": "off", | ||
| "function-paren-newline": "off", | ||
| "func-names": "off", | ||
| "global-require": "off", | ||
| "guard-for-in": "off", | ||
| "indent": "off", | ||
| "import/no-extraneous-dependencies": "off", | ||
| "import/no-unresolved": "off", | ||
| "import/newline-after-import": "off", | ||
| "import/no-dynamic-require": "off", | ||
| "import/order": "off", | ||
| "max-len": "off", | ||
| "new-cap": "off", | ||
| "newline-per-chained-call": "off", | ||
| "no-unused-expressions": "off", | ||
| "no-useless-catch": "off", | ||
| "no-underscore-dangle": "off", | ||
| "no-bitwise": "off", | ||
| "no-buffer-constructor": "off", | ||
| "no-cond-assign": "off", | ||
| "no-confusing-arrow": "off", | ||
| "no-console": "off", | ||
| "no-dupe-keys": "off", | ||
| "no-else-return": "off", | ||
| "no-empty": "off", | ||
| "no-empty-function": "off", | ||
| "no-lonely-if": "off", | ||
| "no-loop-func": "off", | ||
| "no-mixed-operators": "off", | ||
| "no-multi-assign": "off", | ||
| "no-param-reassign": "off", | ||
| "no-plusplus": "off", | ||
| "no-prototype-builtins": "off", | ||
| "no-restricted-syntax": "off", | ||
| "no-return-assign": "off", | ||
| "no-shadow": "off", | ||
| "no-throw-literal": "off", | ||
| "no-unreachable": "off", | ||
| "no-unused-vars": "off", | ||
| "no-trailing-spaces": ['error',{ | ||
| "skipBlankLines" : true | ||
| }], | ||
| "no-multiple-empty-lines": "off", | ||
| "no-use-before-define": "off", | ||
| "no-useless-concat": "off", | ||
| "no-useless-constructor": "off", | ||
| "no-useless-escape": "off", | ||
| "no-var": "off", | ||
| "no-void": "off", | ||
| "object-curly-spacing": "off", | ||
| "object-curly-newline": [ | ||
| "error", | ||
| { | ||
| "consistent": true | ||
| } | ||
| ], | ||
| "object-shorthand": "off", | ||
| "one-var": "off", | ||
| "one-var-declaration-per-line": "off", | ||
| "operator-linebreak": "off", | ||
| "operator-assignment": "off", | ||
| "prefer-object-spread": "off", | ||
| "prefer-arrow-callback": "off", | ||
| "prefer-const": "off", | ||
| "prefer-destructuring": "off", | ||
| "prefer-template": "off", | ||
| "quote-props": "off", | ||
| "quotes": "off", | ||
| "radix": "off", | ||
| "semi": "off", | ||
| "space-before-function-paren": 'off', | ||
| "space-before-blocks": "off", | ||
| "space-infix-ops": "off", | ||
| "vars-on-top": "off", | ||
| "wrap-iife": "off" | ||
| } | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/bin/bash | ||
| rimraf ./lib-es5 | ||
| babel lib --out-dir lib-es5 --verbose | ||
| npm run lint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/bash | ||
| set -e; | ||
|
|
||
| node_v=$(node --version) ; | ||
| if [[ "${node_v%%.*}" == 'v4' || "${node_v%%.*}" == 'v6' ]] | ||
| then | ||
| echo 'Old node version - Skipping eslint' | ||
| else | ||
| eslint . | ||
| fi | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,3 @@ else | |
| echo 'Running tests on ES6 Code' | ||
| mocha --ui bdd -R spec --recursive test/ | ||
| fi | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.