@flaconi/eslint-config-flaconi v1.0.3
🚧 REPO UNDER CONSTRUCTION..... 🚧
eslint-config-flaconi
Flaconi's shareable eslint config
Install
1. Install the package:
yarn add -D @flaconi/eslint-config-flaconi
or
npm i -D @flaconi/eslint-config-flaconi
2. Install the correct versions of each package, which are listed by the command:
npx install-peerdeps --dev @flaconi/eslint-config-flaconi
If using yarn, you can also use the shortcut described above, as the command will detect that you are using yarn and will act accordingly.
Otherwise, run npm info "@flaconi/eslint-config-flaconi@latest" peerDependencies
to list the peer dependencies and versions, then run yarn add --dev <dependency>@<version>
for each listed peer dependency.
Usage
Add the following to your .eslintrc
{
"extends": [
"@flaconi/flaconi"
]
}
Contains
Our default export contains all of our ESLint rules, including ECMAScript 6+ and React. It requires: TODO
eslint
eslint-config-prettier
eslint-config-standard
eslint-plugin-graphql
eslint-plugin-import
eslint-plugin-node
eslint-plugin-prettier
eslint-plugin-promise
eslint-plugin-react-hooks
eslint-plugin-jsx-a11y
Develop
Developing or testing locally the repo is possible using the yarn link
command.
1. clone the repo
2. yarn link
and copy the output command
3. go to any project, paste the command and run it
4. your .eslintrc
file must look like this:
{
"extends": [
"@flaconi/eslint-config-flaconi"
]
}
Contributing
PRs are welcome. Please read the code of conduct and contribution guidelines.
License
MIT © Flaconi GmbH