aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2017-07-28 11:17:48 -0400
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-28 10:17:48 -0500
commita0a23e9f5d88cf668e649500de594c3e506b0946 (patch)
treec07cadf9378d4c4e81d6782376a91611cbf414c2 /.eslintrc
parent6262891b5669716db7c46dcdcec685d2f55903b5 (diff)
downloadrails-a0a23e9f5d88cf668e649500de594c3e506b0946.tar.gz
rails-a0a23e9f5d88cf668e649500de594c3e506b0946.tar.bz2
rails-a0a23e9f5d88cf668e649500de594c3e506b0946.zip
Add JavaScript linting (#82)
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc19
1 files changed, 19 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 0000000000..3d9ecd4bce
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,19 @@
+{
+ "extends": "eslint:recommended",
+ "rules": {
+ "semi": ["error", "never"],
+ "quotes": ["error", "double"],
+ "no-unused-vars": ["error", { "vars": "all", "args": "none" }]
+ },
+ "plugins": [
+ "import"
+ ],
+ "env": {
+ "browser": true,
+ "es6": true
+ },
+ "parserOptions": {
+ "ecmaVersion": 6,
+ "sourceType": "module"
+ }
+}