This is the base set of eslint rules for andyet react projects
andyet-react
: base config for react stuff with babel + webpackandyet-react/base
: config for just babel
-
npm install eslint eslint-config-andyet-react babel-eslint eslint-plugin-{import,react} --save-dev
-
Put the following in
.eslintrc
{ "extends": ["andyet-react"] }
If you are doing stuff in Webpack that's is different than Node's default module resolution, you'll also need to:
-
npm install eslint-import-resolver-webpack --save-dev
-
Add the following to your
.eslintrc
(you can also add different settings as described here){ "settings": { "import/resolver": "webpack" } }
-
npm install eslint eslint-config-andyet-react babel-eslint --save-dev
-
Put the following in
.eslintrc
{ "extends": ["andyet-react/base"] }
- Maybe rename since this to
eslint-config-andyet-frontend
with separate configs fromreact
,webpack
, andbase
?