[Pkg-mozext-commits] [tabmixplus] 51/107: Add the Eslint configuration file to our repository
David Prévot
taffit at moszumanska.debian.org
Tue Dec 29 19:02:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 516bdbe3d664007011acd947bd4131183feb1de7
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu Nov 5 09:34:22 2015 +0200
Add the Eslint configuration file to our repository
---
.eslintrc | 430 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 430 insertions(+)
diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 0000000..1af8d86
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,430 @@
+{
+ "root": true,
+ "env": {
+ "browser": true,
+ "es6": true,
+ "node": false,
+ "amd": false,
+ "mocha": false,
+ "jasmine": false
+ },
+
+ "ecmaFeatures": {
+ "blockBindings": true,
+ "forOf": true,
+ "jsx": true
+ },
+
+ "rules": {
+ // These rules are only relevant to ES6 environments.
+ //
+ // check again in the future when i drop support for old firefox versions
+ //
+ //
+ // require parens in arrow function arguments
+ "arrow-parens": 0,
+ // require space before/after arrow function's arrow
+ "arrow-spacing": [2, {"before": true, "after": true}],
+ // verify calls of super() in constructors
+ "constructor-super": 2,
+ // enforce spacing around the * in generator functions
+ "generator-star-spacing": [2, "after"],
+ // disallow modifying variables of class declarations
+ "no-class-assign": 2,
+ // disallow modifying variables that are declared using const
+ "no-const-assign": 2,
+ // disallow use of this/super before calling super() in constructors.
+ "no-this-before-super": 2,
+ // require let or const instead of var
+ "no-var": 0,
+ // require method and property shorthand syntax for object literals
+ "object-shorthand": 0,
+ // suggest using const declaration for variables that are never modified after declared
+ "prefer-const": 0, // TODO many error in old code
+ //suggest using the spread operator instead of .apply().
+ "prefer-spread": 0, // since Firefox 34
+ // suggest using Reflect methods where applicable
+ "prefer-reflect": 0, // NOT YET
+ // disallow generator functions that do not have yield
+ "require-yield": 2,
+
+ "no-alert": 2,
+ "no-array-constructor": 2,
+ "no-bitwise": 0,
+ "no-caller": 2,
+ "no-catch-shadow": 2,
+ "no-cond-assign": 2,
+ "no-console": 0,
+ "no-constant-condition": 2,
+ "no-control-regex": 2,
+ "no-debugger": 2,
+ "no-delete-var": 2,
+ "no-div-regex": 0,
+ "no-dupe-keys": 2,
+ "no-dupe-args": 2,
+ "no-duplicate-case": 2,
+ "no-else-return": 0,
+ "no-empty-label": 2,
+ "no-eq-null": 2,
+ "no-eval": 0,
+ // this show error on catch empty block unless there is a comment
+ "no-empty": 0,
+ "no-ex-assign": 2,
+ "no-extend-native": 2,
+ "no-extra-bind": 2,
+ "no-extra-boolean-cast": 2,
+ "no-extra-parens": 0, // TODO need to fix this...
+ "no-extra-semi": 2,
+ "no-fallthrough": 2,
+ "no-floating-decimal": 0,
+ "no-func-assign": 2,
+ "no-implied-eval": 2,
+ "no-inline-comments": 0,
+ "no-inner-declarations": [2, "functions"],
+ "no-invalid-regexp": 2,
+ "no-irregular-whitespace": 2,
+ "no-iterator": 2,
+ "no-label-var": 2,
+ "no-labels": 2,
+ "no-lone-blocks": 2,
+ "no-lonely-if": 2,
+ "no-loop-func": 2,
+ "no-mixed-requires": [0, false], // node
+ "no-mixed-spaces-and-tabs": [2, false],
+ "no-multi-spaces": 2,
+ // TODO need to fix this...
+ "no-multi-str": 0,
+ "no-multiple-empty-lines": [2, {"max": 1}],
+ "no-native-reassign": 2,
+ "no-negated-in-lhs": 2,
+ "no-nested-ternary": 0,
+ "no-unneeded-ternary": 2,
+ "no-new": 2,
+ "no-new-func": 2,
+ "no-new-object": 2,
+ "no-new-require": 0,
+ "no-new-wrappers": 2,
+ "no-obj-calls": 2,
+ "no-octal": 2,
+ "no-octal-escape": 2,
+ "no-path-concat": 0, // node
+ "no-plusplus": 0,
+ "no-process-env": 0,
+ "no-process-exit": 2, // node
+ "no-proto": 2,
+ "no-redeclare": 2,
+ "no-regex-spaces": 2,
+ "no-restricted-modules": 0, // node
+ "no-return-assign": [2, "except-parens"],
+ "no-script-url": 0,
+ "no-self-compare": 0,
+ "no-sequences": 2,
+ "no-shadow": 0,
+ "no-shadow-restricted-names": 2,
+ "no-spaced-func": 2,
+ "no-sparse-arrays": 2,
+ "no-sync": 0, // node
+ "no-ternary": 0,
+ // the editore remove trailing-spaces on save
+ "no-trailing-spaces": 0,
+ "no-throw-literal": 2,
+ "no-undef": 2,
+ "no-undef-init": 2,
+ "no-undefined": 0,
+ "no-underscore-dangle": 0,
+ "no-unreachable": 2,
+ "no-unused-expressions": 2,
+ "no-unused-vars": [2, {"vars": "local", "args": "after-used"}],// TODO change to "vars": "all"
+ // TODO - change this....
+ "no-use-before-define": [0, "nofunc"],
+ "no-void": 0,
+ "no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
+ "no-with": 2,
+
+ "block-scoped-var": 0,
+ "brace-style": 0, // TODO change to [2, "1tbs"] or [2, "stroustrup"]
+ "camelcase": 0,
+ // TODO - maybe in the future
+ // "comma-dangle": [2, "always-multiline"],
+ "comma-dangle": 0,
+ "comma-spacing": 2,
+ "comma-style": [2, "last"],
+ "complexity": [0, 11],
+ "consistent-return": 2,
+ "consistent-this": [2, "self"],
+ // TODO - currently there are more the 1500 errors if we set "curly": 2
+ "curly": [0, "all"],
+ "default-case": 0,
+ "dot-notation": [2, { "allowKeywords": true }],
+ "eol-last": 2,
+ "eqeqeq": 0,
+ "func-names": 0,
+ "func-style": [0, "declaration"],
+ "guard-for-in": 0,
+ "handle-callback-err": 0,
+ "indent": [2, 2, {"SwitchCase": 1}],
+ "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
+ "lines-around-comment": [0, {"beforeBlockComment": true, "allowBlockStart": true, "allowBlockEnd": true}],
+ //XX error in Brackets - Eslint complain that first line is LF
+ "linebreak-style": [0, "windows"],
+ "operator-linebreak": [2, "after"],
+ "max-depth": [0, 4],
+ "max-len": [0, 120, 4],
+ "max-nested-callbacks": [0, 2],
+ "max-params": [0, 3],
+ "max-statements": [0, 10],
+ "new-cap": 0,
+ "new-parens": 2,
+ "one-var": 0,
+ "operator-assignment": [0, "always"],
+ "padded-blocks": [0, "never"],
+ // in Firefox i can use properties obj - {default: x, private: y}
+ "quote-props": [0, "as-needed", {"keywords": true}],
+ "quotes": [0, "double"],
+ "radix": 0,
+ "semi": 2,
+ "semi-spacing": [0, {"before": false, "after": true}],
+ "sort-vars": 0,
+ "space-after-keywords": [0, "always"], // TODO change to [2, "always"]
+ "space-before-blocks": [2, "always"],
+ "space-before-function-paren": [2, "never"],
+ "object-curly-spacing": [2, "never"],
+ "array-bracket-spacing": [2, "never"],
+ "space-in-parens": [2, "never"],
+ "space-infix-ops": 2,
+ "space-return-throw-case": 2,
+ "space-unary-ops": [2, { "words": true, "nonwords": false }],
+ "spaced-comment": [2, "always", {"exceptions":["-", "+", "/"], "markers":["/", "/XXX", "XXX", "****", "***", "**"]}],
+ "strict": [2, "global"],
+ "use-isnan": 2,
+ "valid-jsdoc": 0,
+ "valid-typeof": 2,
+ "vars-on-top": 0,
+ "wrap-iife": 2,
+ "wrap-regex": 0,
+ "yoda": [2, "never"]
+ },
+
+ "globals": {
+ // tabmix globals
+ "$": true,
+ "self": true,
+ "AsyncUtils": false,
+ "Assert": false,
+ "AutoReload": false,
+ "exports": false,
+ "KeyEvent": false,
+ "Decode": false,
+ "filenamesRegex": false,
+ "MergeWindows": false,
+ "getFormattedKey": false,
+ "gTMPprefObserver": false,
+ "gAppearancePane": false,
+ "gPrefWindow": false,
+ "PromptSvc": false,
+ "gMenuPane": false,
+ "LinkNodeUtils": false,
+ "Prefs": false,
+ "reportError": false,
+ "RDFSvc": false,
+ "Shortcuts": false,
+ "SessionBackups": false,
+ "SSS": false,
+ "syncPrefsList": false,
+ "tablib": false,
+ "Tabmix": true,
+ "TabmixAllTabs": false,
+ "TabmixClickEventHandler": true,
+ "TabmixContext": false,
+ "TabmixContentClick": false,
+ "TabmixConvertSession": false,
+ "TabmixProgressListener": false,
+ "TabmixPlacesUtils": false,
+ "TabmixSessionData": false,
+ "TabmixSessionManager": false,
+ "TabmixSvc": false,
+ "TabmixTabbar": false,
+ "TabmixTabClickOptions": false,
+ "TabmixUtils": false,
+ "TMP_BrowserOpenTab": false,
+ "TMP_ClosedTabs": false,
+ "TMP_eventListener": true,
+ "TMP_extensionsCompatibility": false,
+ "TMP_LastTab": false,
+ "TMP_Places": false,
+ "TMP_SessionStore": false,
+ "TMP_tabDNDObserver": false,
+ "TMP_TabView": false,
+
+ // when extends will work move each global to
+ // specific file in its folder
+ "DeferredSave": true,
+ "gTMPprefObserver": true,
+ "gAppearancePane": true,
+ "gMenuPane": true,
+ "gPrefWindow": true,
+ "getFormattedKey": true,
+ "tablib": true,
+ "TabmixAboutNewTab": false,
+ "TabmixAllTabs": true,
+ "TabmixTabClickOptions": true,
+ "TabmixContext": true,
+ "TabmixTabbar": true,
+ "TMP_extensionsCompatibility": true,
+ "TMP_LastTab": true,
+ "TMP_tabDNDObserver": true,
+ "TMP_TabView": true,
+ "TMP_Places": true,
+ "TMP_SessionStore": true,
+ "TMP_ClosedTabs": true,
+ "TabmixProgressListener": true,
+ "TabmixSessionData": true,
+ "TabmixSessionManager": true,
+ "TabmixConvertSession": true,
+
+ // firefox globals
+ "__defineGetter__": false,
+ "aboutNewTabService": false,
+ "addMessageListener": false,
+ "AddonManager": false,
+ "BROWSER_NEW_TAB_URL": false,
+ "BrowserOnClick": false,
+ "BrowserCloseTabOrWindow": false,
+ "browserDragAndDrop": false,
+ "BrowserOpenTab": false,
+ "BrowserTryToCloseWindow": false,
+ "BrowserUtils": false,
+ "Cc": false,
+ "centerWindowOnScreen": false,
+ "ChromeWindow": false,
+ "Ci": false,
+ "closeMenus": false,
+ "Components": false,
+ "content": false,
+ "ContentClick": false,
+ "ContextMenu": false,
+ "Cr": false,
+ "ctrlTab": false,
+ "Cu": false,
+ "CustomizableUI": false,
+ "customizeToolbarDone": false,
+ "closeWindow": false,
+ "dialog": false,
+ "DirectoryLinksProvider": false,
+ "docShell": false,
+ "DocShellCapabilities": false,
+ "dump": false,
+ "focusAndSelectUrlBar": false,
+ "FullScreen": false,
+ "gAllPages": false,
+ "gBrowser": false,
+ "gBrowserInit": false,
+ "gContextMenu": false,
+ "getBoolPref": false,
+ "getBrowserURL": false,
+ "gGrid": false,
+ "gHomeButton": false,
+ "gInPrintPreviewMode": false,
+ "gMultiProcessBrowser": false,
+ "gNavigatorBundle": false,
+ "gNavToolbox": false,
+ "goDoCommand": false,
+ "gRemoteTabsUI": false,
+ "gSanitizePromptDialog": false,
+ "gURLBar": false,
+ "handleDroppedLink": false,
+ "HistoryMenu": false,
+ "isBlankPageURL": false,
+ "isTabEmpty": false,
+ "loadURI": false,
+ "makeURI": false,
+ "moveToAlertPosition": false,
+ "NetUtil": false,
+ "nsBrowserAccess": false,
+ "nsContextMenu": false,
+ "NewTabURL": false,
+ "newWindowButtonObserver": false,
+ "openDialog": false,
+ "openLinkIn": false,
+ "openUILink": false,
+ "openUILinkIn": false,
+ "openURI": false,
+ "OS": false,
+ "PageThumbs": false,
+ "PlacesCommandHook": false,
+ "PlacesOrganizer": false,
+ "PlacesUIUtils": false,
+ "PlacesUtils": false,
+ "PlacesViewBase": false,
+ "PluralForm": false,
+ "pref": false,
+ "PrivateBrowsingUtils": false,
+ "RestoreLastSessionObserver": false,
+ "Sanitizer": false,
+ "Scratchpad": false,
+ "sendAsyncMessage": false,
+ "sendSyncMessage": false,
+ "Services": false,
+ "SidebarUtils": false,
+ "SessionStore": false,
+ "TabContextMenu": false,
+ "TAB_DROP_TYPE": false,
+ "TabsInTitlebar": false,
+ "TabsOnTop": false,
+ "TabState": false,
+ "TabStateCache": false,
+ "TabView": false,
+ "Task": false,
+ "URLBarSetURI": false,
+ "urlSecurityCheck": false,
+ "undoCloseWindow": false,
+ "whereToOpenLink": false,
+ "XPCOMUtils": false,
+ "XULCommandEvent": false,
+ "XULElement": false,
+ "XULBrowserWindow": false,
+
+ // other
+ "cookiepieContextMenu": false,
+ "classiccompactoptions": false,
+ "colorfulTabs": false,
+ "esteban_torres": false,
+ "Fd": false,
+ "FdTabLoader": false,
+ "IeView": false,
+ "ieview": false,
+ "IeTab": false,
+ "middleMousePaste": false,
+ "privateTab": false,
+ "SessionSaver": false,
+ "SwitchThemesModule": false,
+ "SubmitToTab": false,
+
+ // extensions folder globals
+ "bgSaverPref": false,
+ "CHROMATABS": false,
+ "contentAreaDNDObserver": false,
+ "com": false,
+ "closeallOverlay": false,
+ "faviconize": false,
+ "FireGestures": false,
+ "FdUtils": false,
+ "foxTab": false,
+ "gFxWeaveGlue": false,
+ "IeTab2": false,
+ "Local_Install": false,
+ "mgBuiltInFunctions": false,
+ "MouseControl": false,
+ "objLinkify": false,
+ "Omnibar": false,
+ "PersonaController": false,
+ "rdrb": false,
+ "readPref": false,
+ "RSSTICKER": false,
+ "SecondSearchBrowser": false,
+ "SpeedDial": false,
+ "tileTabs": false,
+ "TreeStyleTabBrowser": false,
+ "TreeStyleTabWindowHelper": false
+ }
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list