aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile3
-rw-r--r--eslintrc.json19
2 files changed, 21 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index db4a4ea..28d9703 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -47,4 +47,5 @@ RUN apt-get install -y \
# https://github.com/airbnb/javascript/issues/952
RUN npm install -g eslint@\^2.10.2 eslint-config-airbnb eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y@\^1.2.2
-
+# Install the eslintrc.json
+ADD eslintrc.json /root/.eslintrc.json
diff --git a/eslintrc.json b/eslintrc.json
new file mode 100644
index 0000000..289e875
--- /dev/null
+++ b/eslintrc.json
@@ -0,0 +1,19 @@
+{
+ "extends": "airbnb",
+ "rules": {
+ "no-undef": 0,
+ "prefer-arrow-callback": 0,
+ "no-console": 0,
+ "require-jsdoc": ["error", {
+ "require": {
+ "FunctionDeclaration": true,
+ "MethodDefinition": false,
+ "ClassDeclaration": false
+ }
+ }],
+ "valid-jsdoc": ["error", {
+ "requireParamDescription": true,
+ "requireReturn": false
+ }]
+ }
+}