diff options
author | Javan Makhmali <javan@javan.us> | 2017-07-28 11:17:48 -0400 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-28 10:17:48 -0500 |
commit | a0a23e9f5d88cf668e649500de594c3e506b0946 (patch) | |
tree | c07cadf9378d4c4e81d6782376a91611cbf414c2 /.eslintrc | |
parent | 6262891b5669716db7c46dcdcec685d2f55903b5 (diff) | |
download | rails-a0a23e9f5d88cf668e649500de594c3e506b0946.tar.gz rails-a0a23e9f5d88cf668e649500de594c3e506b0946.tar.bz2 rails-a0a23e9f5d88cf668e649500de594c3e506b0946.zip |
Add JavaScript linting (#82)
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 19 |
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" + } +} |