From d520b697e2ebfd20f5ac8768f4ae1cbe01c1b7c5 Mon Sep 17 00:00:00 2001 From: Themousaillon Date: Thu, 10 Oct 2019 16:01:30 +0200 Subject: [PATCH] add missing hidden file, fix missing link bug --- .babelrc | 21 +++++++++++++ .eslintignore | 6 ++++ .eslintrc.json | 68 +++++++++++++++++++++++++++++++++++++++++++ .npmignore | 8 +++++ src/misc/Inspector.js | 2 +- 5 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 .babelrc create mode 100644 .eslintignore create mode 100644 .eslintrc.json create mode 100644 .npmignore diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..231680b --- /dev/null +++ b/.babelrc @@ -0,0 +1,21 @@ +{ + "sourceMaps": "both", + "presets": [ + "es2015", + "stage-2" +// ["env", { +// "targets": { +// "browsers": ["last 2 versions", "> 5% in BE"], +// "uglify": false +// }, +// "modules": false +// }] + ], + "plugins": [ + "syntax-flow", + "transform-flow-strip-types", + "transform-class-properties" + ] +} + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..42fb2c8 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,6 @@ +node_modules/** +out/** +lib/** +build/** +deploy/** +dist/** diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..441b8b5 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,68 @@ +{ + "env": { + "browser": true, + "node": true, + "es6": true + }, + "ecmaFeatures": { + "arrowFunctions": true, + "binaryLiterals": true, + "blockBindings": true, + "classes": true, + "defaultParams": true, + "destructuring": true, + "forOf": true, + "generators": true, + "modules": true, + "objectLiteralComputedProperties": true, + "objectLiteralDuplicateProperties": true, + "objectLiteralShorthandMethods": true, + "objectLiteralShorthandProperties": true, + "octalLiterals": true, + "regexUFlag": true, + "regexYFlag": true, + "spread": true, + "superInFunctions": false, + "templateStrings": true, + "unicodeCodePointEscapes": true, + "globalReturn": true, + "jsx": true + }, + "extends": "eslint:recommended", + "rules": { + "eqeqeq": 2, + "strict": 0, + "no-empty": 1, + "no-alert": 2, + "no-eval": 2, + "quotes": [ + 1, + "single", + "avoid-escape" + ], + "no-trailing-spaces": [ + 2, + { + "skipBlankLines": true + } + ], + "eol-last": 0, + "yoda": [ + 2, + "never", + { + "exceptRange": true + } + ] + }, + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module", + "ecmaFeatures": { + "jsx": true, + "modules": true + }, + "allowImportExportEverywhere": false + }, + "parser": "babel-eslint" +} \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..ef491d1 --- /dev/null +++ b/.npmignore @@ -0,0 +1,8 @@ +/.idea +/src +/static +/tests +.babelrc +karma.conf.js +webpack.conf.js +webpack.export.conf.js \ No newline at end of file diff --git a/src/misc/Inspector.js b/src/misc/Inspector.js index 62a6f15..33c39b1 100644 --- a/src/misc/Inspector.js +++ b/src/misc/Inspector.js @@ -128,7 +128,7 @@ export default class Inspector { } if (option.link) { - value = '' + value + '' + value = (link !== 'null') ? '' + value + '': value } row[label] = value; -- GitLab