summaryrefslogtreecommitdiff
path: root/languages/js/.eslintrc
diff options
context:
space:
mode:
Diffstat (limited to 'languages/js/.eslintrc')
-rw-r--r--languages/js/.eslintrc43
1 files changed, 43 insertions, 0 deletions
diff --git a/languages/js/.eslintrc b/languages/js/.eslintrc
new file mode 100644
index 0000000..5febf43
--- /dev/null
+++ b/languages/js/.eslintrc
@@ -0,0 +1,43 @@
+{
+ "parser": "babel-eslint",
+ "plugins": [ "react" ],
+ "extends": "airbnb-base",
+ "env": {
+ "browser": true,
+ "es6": true,
+ "node": true
+ },
+ "parserOptions": {
+ "ecmaFeatures": {
+ "jsx": true,
+ "modules": true
+ },
+ "sourceType": "module"
+ },
+ "ecmaFeatures": {
+ "arrowFunctions": true,
+ "blockBindings": true,
+ "classes": true,
+ "defaultParams": true,
+ "destructuring": true,
+ "forOf": true,
+ "generators": true,
+ "modules": true,
+ "spread": true,
+ "templateStrings": true,
+ "jsx": true
+ },
+ "rules": {
+ "consistent-return": [0],
+ "key-spacing": [0],
+ "quotes": [0],
+ "new-cap": [0],
+ "no-multi-spaces": [0],
+ "no-shadow": [0],
+ "no-unused-vars": [1],
+ "no-use-before-define": [2, "nofunc"],
+ "react/jsx-no-undef": 1,
+ "react/jsx-uses-react": 1,
+ "react/jsx-uses-vars": 1
+ }
+}