Author: jruchaud Date: 2015-06-09 10:12:28 +0000 (Tue, 09 Jun 2015) New Revision: 1635 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1635 Log: Configure eslint Added: oipf/.eslintrc Modified: oipf/ oipf/lib/gulpfile.js Property changes on: oipf ___________________________________________________________________ Modified: svn:ignore - node_modules nbproject .goutputstream-98NAWX dist + node_modules nbproject .goutputstream-98NAWX dist .eslintrc Added: oipf/.eslintrc =================================================================== --- oipf/.eslintrc (rev 0) +++ oipf/.eslintrc 2015-06-09 10:12:28 UTC (rev 1635) @@ -0,0 +1,249 @@ +{ + "ecmaFeatures": { + "jsx": true + }, + "globals": { + "console": false, + "React": false, + "scope": false, + "alert": false + }, + "env": { + "browser": true, + "node": true, + "es6": true + }, + "rules": { + "comma-dangle": [ + 2, + "never" + ], + "no-comma-dangle": 0, + "no-cond-assign": 2, + "no-console": 2, + "no-constant-condition": 2, + "no-control-regex": 2, + "no-debugger": 2, + "no-dupe-keys": 2, + "no-empty": 2, + "no-empty-class": 2, + "no-ex-assign": 2, + "no-extra-boolean-cast": 2, + "no-extra-parens": 2, + "no-extra-semi": 2, + "no-func-assign": 2, + "no-inner-declarations": [ + 0, + "both" + ], + "no-invalid-regexp": 2, + "no-irregular-whitespace": 2, + "no-negated-in-lhs": 2, + "no-obj-calls": 2, + "no-regex-spaces": 2, + "no-reserved-keys": 2, + "no-sparse-arrays": 2, + "no-unreachable": 2, + "use-isnan": 2, + "valid-jsdoc": 0, + "valid-typeof": 2, + "block-scoped-var": 0, + "complexity": 0, + "consistent-return": 2, + "curly": [ + 2, + "all" + ], + "default-case": 2, + "dot-notation": 2, + "eqeqeq": [ + 2, + "smart" + ], + "guard-for-in": 2, + "no-alert": 2, + "no-caller": 2, + "no-div-regex": 2, + "no-else-return": 2, + "no-empty-label": 2, + "no-eq-null": 0, + "no-eval": 2, + "no-extend-native": 2, + "no-extra-bind": 2, + "no-fallthrough": 2, + "no-floating-decimal": 2, + "no-implied-eval": 2, + "no-iterator": 2, + "no-labels": 2, + "no-lone-blocks": 2, + "no-loop-func": 2, + "no-multi-spaces": 1, + "no-multi-str": 2, + "no-native-reassign": 2, + "no-new": 2, + "no-new-func": 2, + "no-new-wrappers": 2, + "no-octal": 2, + "no-octal-escape": 2, + "no-process-env": 1, + "no-proto": 2, + "no-redeclare": 2, + "no-return-assign": 2, + "no-script-url": 2, + "no-self-compare": 2, + "no-sequences": 2, + "no-throw-literal": 2, + "no-unused-expressions": 2, + "no-void": 2, + "no-warning-comments": 0, + "no-with": 2, + "radix": 2, + "vars-on-top": 0, + "wrap-iife": 2, + "yoda": 2, + "global-strict": 0, + "no-extra-strict": 0, + "strict": [ + 2, + "never" + ], + "no-catch-shadow": 2, + "no-delete-var": 2, + "no-label-var": 2, + "no-shadow": 2, + "no-shadow-restricted-names": 2, + "no-undef": 2, + "no-undef-init": 2, + "no-undefined": 0, + "no-unused-vars": 2, + "no-use-before-define": 2, + "indent": [ + 1, + 4 + ], + "brace-style": [ + 1, + "1tbs", + { + "allowSingleLine": true + } + ], + "camelcase": 1, + "comma-spacing": [ + 1, + { + "before": false, + "after": true + } + ], + "comma-style": [ + 1, + "last" + ], + "consistent-this": [ + 2, + "_this" + ], + "eol-last": 1, + "func-names": 0, + "func-style": 0, + "key-spacing": [ + 1, + { + "beforeColon": false, + "afterColon": true + } + ], + "max-nested-callbacks": [ + 2, + 5 + ], + "new-cap": 2, + "new-parens": 2, + "no-array-constructor": 2, + "no-inline-comments": 0, + "no-lonely-if": 2, + "no-mixed-spaces-and-tabs": 1, + "no-multiple-empty-lines": 1, + "no-nested-ternary": 2, + "no-new-object": 2, + "no-space-before-semi": 0, + "no-spaced-func": 1, + "no-ternary": 0, + "no-trailing-spaces": 1, + "no-underscore-dangle": 0, + "no-wrap-func": 2, + "one-var": 0, + "operator-assignment": 0, + "padded-blocks": 0, + "quote-props": [ + 2, + "as-needed" + ], + "quotes": [ + 1, + "double" + ], + "semi": [ + 2, + "always" + ], + "semi-spacing": [ + 1, + { + "before": false, + "after": true + } + ], + "sort-vars": 0, + "space-after-function-name": 0, + "space-after-keywords": [ + 1, + "always" + ], + "space-before-blocks": [ + 1, + "always" + ], + "space-before-function-paren": [ + 1, + "never" + ], + "space-in-brackets": [ + 1, + "never" + ], + "space-in-parens": [ + 1, + "never" + ], + "space-infix-ops": 1, + "space-return-throw-case": 2, + "space-unary-ops": 2, + "spaced-line-comment": 0, + "wrap-regex": 0, + "no-var": 0, + "generator-star": [ + 2, + "start" + ], + "max-depth": [ + 2, + 10 + ], + "max-len": [ + 1, + 180 + ], + "max-params": [ + 2, + 10 + ], + "max-statements": [ + 1, + 100 + ], + "no-bitwise": 2, + "no-plusplus": 0 + } +} Modified: oipf/lib/gulpfile.js =================================================================== --- oipf/lib/gulpfile.js 2015-06-09 10:02:18 UTC (rev 1634) +++ oipf/lib/gulpfile.js 2015-06-09 10:12:28 UTC (rev 1635) @@ -1,5 +1,5 @@ var gulp = require("gulp"); -var gulpSequence = require('gulp-sequence'); +var gulpSequence = require("gulp-sequence"); var concat = require("gulp-concat"); var sourcemaps = require("gulp-sourcemaps"); var babel = require("gulp-babel"); @@ -24,13 +24,13 @@ }); gulp.task("javascript", function() { - return gulp.src("js/**/*.js") + return gulp.src("js/**/*.js") .pipe(sourcemaps.init()) .pipe(babel({ blacklist: [ "es3.memberExpressionLiterals", "es3.propertyLiterals", - "es5.properties.mutators", + "es5.properties.mutators" ], optional: [ "asyncToGenerator",
participants (1)
-
jruchaud@users.nuiton.org