An ESLint Shareable Config featuring Airbnb and some other goodies.
Using this config you won't need to install any other dependencies/plugins, and you will profit from eslint, react, imports, etc...
npm install --save-dev eslint eslint-config-mural
For a basic javascript linting, add the file .eslintrc
with:
{
"extends": ["mural"]
}
If you want to include Node.js rules:
{
"extends": ["mural", "mural/node"]
}
For React projects:
{
"extends": ["mural", "mural/react"]
}
And for React Native ones:
{
"extends": ["mural", "mural/react-native"]
}
Just install:
- Make sure to have the Package Control installed.
- Install SublimeLinter.
- On OSX, make sure to have SublimeFixMacPath.
- Install and configure SublimeLinter-eslint.