This config used in my projects to achieve same style along my JavaScript projects
ESLint shareable config
yarn add -D eslint-config-alpha
OR
npm install --save-dev eslint-config-alpha
Add the ESLint config to your package.json
:
{
"name": "my-project",
...
"eslintConfig": {
"extends": "alpha"
}
}
Or to eslintrc.js
or eslintrc.json
:
{
"extends": "alpha"
}
If you are developing with JavaScript consider adding:
{
"extends": "alpha",
"env": {
"browser": true
}
}
or use the platform specific configs for Node.js:
{
"extends": "alpha/src/node"
}
or Vue.js:
{
"extends": "alpha/src/vue"
}
Using the vue extended config will require you to additionally install eslint-plugin-vue
and babel-eslint
yarn add -D babel-eslint eslint-plugin-vue
OR
npm install --save-dev babel-eslint eslint-plugin-vue
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Original Author iCrawl.
GitHub @iCrawl · Twitter @iCrawlToGo
Changed for personal use by iSm1le.