@aak.lear/eslint-config
v1.0.0-beta.9
Published
This package simplifies the initial setup of eslint and prettier. It installs and apply eslint-config-airbnb to your project, also resolves peerDependencies that are required for eslint-config-airbnb package.
Maintainers
Readme
@aak.lear/eslint-setup
Install
CLI
Run following command in your project root and select the desired options:
npx @aak.lear/eslint-configManually
npm
npm i -D @aak.lear/eslint-configyarn
yarn add -D @aak.lear/eslint-configRun this command:
npx install-peerdeps --dev @aak.lear/eslint-confignpm info @aak.lear/eslint-config peerDependenciesThen install all dependencies from list with this template:
npm
npm i -D <dependency>@<version>yarn
yarn add -D <dependency>@<version>Usage
Note: You can skip this configuration step if you chose CLI installation.
Use this extension in your eslint configuration file.
Example for .eslintrc.js:
module.exports = {
extends: [
'@aak-lear',
],
};You can also use separate parts of config. But note that you should also install peer dependencies of preferred packages.
Example for .eslintrc.js:
module.exports = {
extends: [
'@aak-lear/base',
'@aak-lear/typescript',
'@aak-lear/react',
],
};