Created
August 12, 2018 15:53
-
-
Save dr-dimitru/ab944ea82edc428de278736f4022ed40 to your computer and use it in GitHub Desktop.
ESLint settings 2018
This file contains 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
android_bundle/ | |
dev_bundle/ | |
docs/ | |
examples/ | |
packages/ | |
scripts/ | |
tools/ | |
!tools/*.js | |
!tools/isobuild/*.js | |
!tools/catalog/*.js | |
!tools/packaging/*.js | |
!tools/cli/*.js | |
!tools/runners/*.js | |
!tools/tool-env/*.js | |
!tools/fs/*.js | |
# Below, files that have yet to be converted to match the linter | |
tools/archinfo.js | |
tools/auth-client.js | |
tools/auth.js | |
tools/buildmessage.js | |
tools/cleanup.js | |
tools/colon-converter.js | |
tools/config.js | |
tools/console.js | |
tools/deploy.js | |
tools/fiber-helpers.js | |
tools/fs/files.js | |
tools/fs/mini-files.js | |
tools/func-utils.js | |
tools/http-helpers.js | |
tools/inspector.js | |
tools/index.js | |
tools/mongo-exit-codes.js | |
tools/processes.js | |
tools/progress.js | |
tools/project-context.js | |
tools/runners/run-log.js | |
tools/fs/safe-pathwatcher.js | |
tools/selftest.js | |
tools/service-connection.js | |
tools/shell-client.js | |
tools/stats.js | |
tools/test-utils.js | |
tools/upgraders.js | |
tools/utils/utils.js | |
tools/fs/watch.js | |
tools/catalog/catalog-local.js | |
tools/catalog/catalog-remote.js | |
tools/catalog/catalog.js | |
tools/catalog/catalog-utils.js | |
tools/cli/commands-cordova.js | |
tools/cli/commands-packages-query.js | |
tools/cli/commands-packages.js | |
tools/cli/commands.js | |
tools/cli/main.js | |
tools/tool-env/flush-buffers-on-exit-in-windows.js | |
tools/tool-env/install-babel.js | |
tools/tool-env/isopackets.js | |
tools/tool-env/profile-require.js | |
tools/tool-env/profile.js | |
tools/runners/run-all.js | |
tools/runners/run-app.js | |
tools/runners/run-mongo.js | |
tools/runners/run-proxy.js | |
tools/runners/run-selenium.js | |
tools/runners/run-updater.js | |
tools/packaging/package-client.js | |
tools/packaging/package-map.js | |
tools/packaging/package-version-parser.js | |
tools/packaging/release.js | |
tools/packaging/tropohouse.js | |
tools/packaging/updater.js | |
tools/packaging/warehouse.js | |
tools/isobuild/build-plugin.js | |
tools/isobuild/builder.js | |
tools/isobuild/bundler.js | |
tools/isobuild/compiler-deprecated-compile-step.js | |
tools/isobuild/compiler-plugin.js | |
tools/isobuild/compiler.js | |
tools/isobuild/import-scanner.js | |
tools/isobuild/isopack-cache.js | |
tools/isobuild/isopack.js | |
tools/isobuild/js-analyze.js | |
tools/isobuild/linker.js | |
tools/isobuild/linter-plugin.js | |
tools/isobuild/meteor-npm.js | |
tools/isobuild/npm-discards.js | |
tools/isobuild/package-api.js | |
tools/isobuild/package-source.js | |
tools/isobuild/source-arch.js |
This file contains 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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"globals": { | |
"Package": true, | |
"Tinytest": true, | |
"Map": true, | |
"Promise": true, | |
"Npm": true | |
}, | |
"rules": { | |
/** | |
* Strict mode | |
*/ | |
"strict": [2, "never"], // http://eslint.org/docs/rules/strict | |
/** | |
* Variables | |
*/ | |
"no-shadow": 2, // http://eslint.org/docs/rules/no-shadow | |
"no-shadow-restricted-names": 2, // http://eslint.org/docs/rules/no-shadow-restricted-names | |
"no-unused-vars": [2, { // http://eslint.org/docs/rules/no-unused-vars | |
"vars": "local", | |
"args": "after-used" | |
}], | |
"no-use-before-define": [2, "nofunc"], // http://eslint.org/docs/rules/no-use-before-define | |
/** | |
* Possible errors | |
*/ | |
"no-cond-assign": [2, "always"], // http://eslint.org/docs/rules/no-cond-assign | |
"no-console": 1, // http://eslint.org/docs/rules/no-console | |
"no-debugger": 1, // http://eslint.org/docs/rules/no-debugger | |
"no-alert": 1, // http://eslint.org/docs/rules/no-alert | |
"no-constant-condition": 1, // http://eslint.org/docs/rules/no-constant-condition | |
"no-dupe-keys": 2, // http://eslint.org/docs/rules/no-dupe-keys | |
"no-duplicate-case": 2, // http://eslint.org/docs/rules/no-duplicate-case | |
"no-empty": 2, // http://eslint.org/docs/rules/no-empty | |
"no-ex-assign": 2, // http://eslint.org/docs/rules/no-ex-assign | |
"no-extra-boolean-cast": 0, // http://eslint.org/docs/rules/no-extra-boolean-cast | |
"no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi | |
"no-func-assign": 2, // http://eslint.org/docs/rules/no-func-assign | |
"no-inner-declarations": 2, // http://eslint.org/docs/rules/no-inner-declarations | |
"no-invalid-regexp": 2, // http://eslint.org/docs/rules/no-invalid-regexp | |
"no-irregular-whitespace": 2, // http://eslint.org/docs/rules/no-irregular-whitespace | |
"no-obj-calls": 2, // http://eslint.org/docs/rules/no-obj-calls | |
"no-sparse-arrays": 2, // http://eslint.org/docs/rules/no-sparse-arrays | |
"no-unreachable": 2, // http://eslint.org/docs/rules/no-unreachable | |
"use-isnan": 2, // http://eslint.org/docs/rules/use-isnan | |
"block-scoped-var": 0, // http://eslint.org/docs/rules/block-scoped-var | |
"no-undef": "error", | |
/** | |
* Best practices | |
*/ | |
"consistent-return": 2, // http://eslint.org/docs/rules/consistent-return | |
"curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly | |
"default-case": 2, // http://eslint.org/docs/rules/default-case | |
"dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation | |
"allowKeywords": true | |
}], | |
"eqeqeq": 2, // http://eslint.org/docs/rules/eqeqeq | |
"guard-for-in": 2, // http://eslint.org/docs/rules/guard-for-in | |
"no-caller": 2, // http://eslint.org/docs/rules/no-caller | |
"no-else-return": 2, // http://eslint.org/docs/rules/no-else-return | |
"no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null | |
"no-eval": 2, // http://eslint.org/docs/rules/no-eval | |
"no-extend-native": 2, // http://eslint.org/docs/rules/no-extend-native | |
"no-extra-bind": 2, // http://eslint.org/docs/rules/no-extra-bind | |
"no-fallthrough": 2, // http://eslint.org/docs/rules/no-fallthrough | |
"no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal | |
"no-implied-eval": 2, // http://eslint.org/docs/rules/no-implied-eval | |
"no-lone-blocks": 2, // http://eslint.org/docs/rules/no-lone-blocks | |
"no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func | |
"no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str | |
"no-native-reassign": 2, // http://eslint.org/docs/rules/no-native-reassign | |
"no-new": 2, // http://eslint.org/docs/rules/no-new | |
"no-new-func": 2, // http://eslint.org/docs/rules/no-new-func | |
"no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers | |
"no-octal": 2, // http://eslint.org/docs/rules/no-octal | |
"no-octal-escape": 2, // http://eslint.org/docs/rules/no-octal-escape | |
"no-param-reassign": 2, // http://eslint.org/docs/rules/no-param-reassign | |
"no-proto": 2, // http://eslint.org/docs/rules/no-proto | |
"no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare | |
"no-return-assign": 2, // http://eslint.org/docs/rules/no-return-assign | |
"no-script-url": 2, // http://eslint.org/docs/rules/no-script-url | |
"no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare | |
"no-sequences": 2, // http://eslint.org/docs/rules/no-sequences | |
"no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal | |
"no-with": 2, // http://eslint.org/docs/rules/no-with | |
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife | |
"yoda": 2, // http://eslint.org/docs/rules/yoda | |
/** | |
* Style | |
*/ | |
"indent": [2, 2], // http://eslint.org/docs/rules/indent | |
"brace-style": [2, // http://eslint.org/docs/rules/brace-style | |
"1tbs", { | |
"allowSingleLine": true | |
}], | |
"quotes": [ | |
2, "single", "avoid-escape" // http://eslint.org/docs/rules/quotes | |
], | |
"camelcase": [2, { // http://eslint.org/docs/rules/camelcase | |
"properties": "never" | |
}], | |
"comma-spacing": [2, { // http://eslint.org/docs/rules/comma-spacing | |
"before": false, | |
"after": true | |
}], | |
"comma-style": [2, "last"], // http://eslint.org/docs/rules/comma-style | |
"eol-last": 2, // http://eslint.org/docs/rules/eol-last | |
"key-spacing": [2, { // http://eslint.org/docs/rules/key-spacing | |
"beforeColon": false, | |
"afterColon": true | |
}], | |
// "new-cap": [2, { // http://eslint.org/docs/rules/new-cap | |
// "newIsCap": true | |
// }], | |
"no-multiple-empty-lines": [2, { // http://eslint.org/docs/rules/no-multiple-empty-lines | |
"max": 2 | |
}], | |
"no-nested-ternary": 2, // http://eslint.org/docs/rules/no-nested-ternary | |
"no-new-object": 2, // http://eslint.org/docs/rules/no-new-object | |
"no-array-constructor": 2, // http://eslint.org/docs/rules/no-array-constructor | |
"no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces | |
"no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle | |
"one-var": [2, "never"], // http://eslint.org/docs/rules/one-var | |
"padded-blocks": [2, "never"], // http://eslint.org/docs/rules/padded-blocks | |
"semi": [2, "always"], // http://eslint.org/docs/rules/semi | |
"semi-spacing": [2, { // http://eslint.org/docs/rules/semi-spacing | |
"before": false, | |
"after": true | |
}], | |
"space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops | |
} | |
} |
This file contains 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
{ | |
"default": true, | |
// "whitespace": false, | |
"line_length": false, | |
"no-trailing-punctuation": false, | |
"ul-start-left": false, | |
// "ul-indent": false, | |
"no-inline-html": false, | |
// "no-bare-urls": false, | |
// "fenced-code-language": false, | |
"first-line-h1": false | |
} |
This file contains 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
{ | |
"options": { | |
"merge-default-rules": false, | |
"max-warnings": 50 | |
}, | |
"rules": { | |
"extends-before-mixins": 2, | |
"extends-before-declarations": 2, | |
"placeholder-in-extend": 1, | |
"mixins-before-declarations": [ | |
2, | |
{ | |
"exclude": [ | |
"breakpoint", | |
"mq" | |
] | |
} | |
], | |
"no-warn": 1, | |
"no-debug": 1, | |
"no-ids": 1, | |
"no-important": 2, | |
"hex-notation": [ | |
2, | |
{ | |
"style": "uppercase" | |
} | |
], | |
"indentation": [ | |
2, | |
{ | |
"size": 2 | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment