eslint-config-swift
eslint config used by Swift for frontend apps; based on airbnb's eslint config, but stricter.
Usage
npm install --save-dev eslint-config-swift
Then you need to install plugins required for our config and airbnb
's:
In your own .eslintrc
, you can include the "universal" config for React/Redux apps or "electron" for Electron apps:
{
"extends": "swift/universal"
}
or
{
"extends": "swift/electron"
}
And you probably want this in your package.json
:
webpack resolution
For the webpack import resolver to work, webpack.config.js
must be in the filesystem adjacent to your package.json
.
You probably want it to look something like this:
// here for eslint-import-resolver-webpack;moduleexports = ;