diff --git a/app/.eslintignore b/app/.eslintignore new file mode 100644 index 00000000..2459b296 --- /dev/null +++ b/app/.eslintignore @@ -0,0 +1,6 @@ +node_modules/ +build +test/fixtures +test/tests +razzle.config.js +packages/create-razzle-app/templates diff --git a/app/.eslintrc b/app/.eslintrc new file mode 100644 index 00000000..89468957 --- /dev/null +++ b/app/.eslintrc @@ -0,0 +1,33 @@ +{ + "extends": [ + "eslint:recommended", + "plugin:react/recommended" + ], + "env": { + "browser": true, + "commonjs": true, + "node": true, + "es6": true + }, + "parser": "babel-eslint", + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module", + "ecmaFeatures": { + "jsx": true + } + }, + "rules": { + "no-console": "off", + "strict": ["error", "global"], + "curly": "warn" + }, + "plugins": [ + "react" + ], + "settings": { + "react": { + "version": "detect" + } + } +}