aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.javascript
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.javascript')
-rw-r--r--Dockerfile.javascript15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile.javascript b/Dockerfile.javascript
new file mode 100644
index 0000000..592f58a
--- /dev/null
+++ b/Dockerfile.javascript
@@ -0,0 +1,15 @@
+FROM thornycrackers/neovim:php
+MAINTAINER Cody Hiar <codyfh@gmail.com>
+
+# Install nodejs 6
+RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
+RUN apt-get install -y \
+ nodejs
+
+# Install JS linting modules
+# The reason for the version specifications is an 'Unmet peerDependancy error'
+# 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