diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..121558840 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +# editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.eslintrc b/.eslintrc index 8a6b89472..edcaaa613 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,17 @@ { "extends": ["standard", "prettier"], - "parser": "babel-eslint", - "plugins": ["prettier"] + "parser": "@typescript-eslint/parser", + "plugins": ["prettier", "@typescript-eslint"], + + // add hacky support typescript for standard linter + // remove when https://github.com/standard/standard/issues/1283 + // will be fixed + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": ["error", { "args": "none" }], + "camelcase": "off", + "@typescript-eslint/camelcase": ["error", { "properties": "never" }], + "semi": "off", + "@typescript-eslint/semi": ["error", "never"] + } } diff --git a/README.md b/README.md index 6dd353981..4052b7010 100644 --- a/README.md +++ b/README.md @@ -86,11 +86,8 @@ If you're looking for the widget v2 docs, check out [here][uc-docs-widget-v2]. There are a few types of JS bundles: -* `uploadcare.full.js` — a full bundle with built-in jQuery. -* `uploadcare.js` — a bundle without built-in jQuery. -* `uploadcare.api.js` — a bundle without UI of the widget and built-in jQuery - [JavaScript API][uc-docs-widget-js-api] only. -* `uploadcare.lang.en.js` — a bundle without built-in jQuery, `en` locale only. +* `uploadcare.js` — default bundle with widget code. +* `uploadcare.lang.en.js` — a bundle with `en` locale only. Each bundle has its minified version. Just add `.min` before `.js`, e.g. `uploadcare.min.js`. diff --git a/dummy/crop.html b/dummy/crop.html index 74c8a6336..766c399b4 100644 --- a/dummy/crop.html +++ b/dummy/crop.html @@ -4,11 +4,8 @@ UPLOADCARE_TABS = "default huddle"; UPLOADCARE_DEBUG_UPLOADS = true; - - + +