aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorhristoterezov <hristo@jitsi.org>2016-12-12 14:46:47 -0600
committerhristoterezov <hristo@jitsi.org>2016-12-12 14:52:17 -0600
commitc07fe8fa1ec85677e83ddb0568eb0fe54985d044 (patch)
tree600c90260fdf7eda872f74a7d079e84203f1f9a0 /.eslintrc.js
Initial commit
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..bbec37f
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,37 @@
+module.exports = {
+ 'env': {
+ 'browser': true,
+ 'commonjs': true,
+ 'es6': true
+ },
+ 'extends': 'eslint:recommended',
+ 'globals': {
+ // The globals that (1) are accessed but not defined within many of our
+ // files, (2) are certainly defined, and (3) we would like to use
+ // without explicitly specifying them (using a comment) inside of our
+ // files.
+ '__filename': false
+ },
+ 'parserOptions': {
+ 'ecmaFeatures': {
+ 'experimentalObjectRestSpread': true
+ },
+ 'sourceType': 'module'
+ },
+ 'rules': {
+ 'new-cap': [
+ 'error',
+ {
+ 'capIsNew': false // Behave like JSHint's newcap.
+ }
+ ],
+ // While it is considered a best practice to avoid using methods on
+ // console in JavaScript that is designed to be executed in the browser
+ // and ESLint includes the rule among its set of recommended rules, (1)
+ // the general practice is to strip such calls before pushing to
+ // production and (2) we prefer to utilize console in lib-jitsi-meet
+ // (and jitsi-meet).
+ 'no-console': 'off',
+ 'semi': 'error'
+ }
+};