$ cnpm install @peakfijn/config-eslint-expo
A sharable ESLint configuration with Peakfijn conventions, for Expo projects.
This does not extend the base configuration for ESLint. However, it does include it in the dependencies.
Install the dependency with npm.
$ npm install --save-dev @peakfijn/config-eslint-expo
Update the package.json
to include an eslintConfig property.
{
"eslintConfig": {
"extends": "peakfijn-expo"
}
}
After installing and configuring the package, you can use it by running this command.
$ npx eslint 'src/**/*.js'
The MIT License (MIT). Please see License File for more information.
Copyright 2014 - 2016 © taobao.org |