The ESLint config used for front-end projects at V-Technologies.
This config is heavily based on eslint-config-airbnb, except for some custom rules which better fits our coding style.
Install the package and its peer dependencies:
npm install --save-dev eslint eslint-config-vtech babel-eslint eslint-plugin-babel eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y
Configure ESLint by adding .eslintrc
at the root of your project:
{
"extends": "vtech"
}
Use with webpack
npm install --save-dev eslint-loader
Then add in your webpack.config.js
{
test: /\.js$/,
exclude: /node_modules/,
use: 'eslint-loader'
}