From 07662c1eb08d34d164e5433869e84eda75acba31 Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Mon, 27 May 2019 16:13:11 +0100 Subject: [PATCH] Configure eslint - run from `app` using `npx eslint .` --- app/.eslintignore | 6 ++++++ app/.eslintrc | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 app/.eslintignore create mode 100644 app/.eslintrc 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" + } + } +}