eslint-plugin-louffee v2.0.0
Louffee ESLint Configuration
A great way to start.
Note: The configuration is based on the ESLint plugin for the IDE or code editor of your choice, and is compatible with the ESLint ecosystem present in the NPM Package of same name.
The configuration assumes that you've got a prettier plugin installed and configured, both in your IDE or code editor, and via your Node Package Manager.
Instead of reinventing the wheel, we know that there are talented people out there who made possible the open source, so we evaluate these people’s work by using its implementations of ESLint. What we mean is, please consider eslint-config-louffee not just as a contribution to the open source, but also a gathering of all the incredible work that is being done by the people who contributed to the open source in the ESLint community and ecosystem.
Packages that we count on
As we said above, we know there are talented people doing their contribution to the community expecting nothing less than a high quality of the configuration. So we separate the packages in the nicest way possible, and we count on the following packages:
@typescript-eslint/eslint-pluginto implement the TypeScript ESLint compatibility@typescript-eslint/parserto implement the TypeScript ESLint parsereslint-plugin-compatto warn us about the compatibility across browsers and environments at specific native functions or points of the code we’re writing.eslint-plugin-importto help us organise the import statements.eslint-plugin-jestto handle the linting in test unit files.eslint-plugin-jest-domto handle the linting in the browser-compatibility tests.eslint-plugin-jsx-a11yto handle the linting of accessibility issues.eslint-plugin-reactto handle the linting of React components.eslint-plugin-react-hooksto handle the linting of React hooks.eslint-plugin-react-nativeto handle the linting of React Native-related features.eslint-plugin-securityto handle the linting of security issues.eslint-plugin-storybookto handle the linting of Storybook-related features.eslint-plugin-testing-libraryto handle the linting of testing-library-related features.
Installation
Install the package, follow the instructions according to the package manager of your choice, we ranked the top three most popular ones:
With NPM
npm install --dev eslint-config-louffee @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-compat eslint-plugin-import eslint-plugin-jest eslint-plugin-jest-dom eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native eslint-plugin-security eslint-plugin-storybook eslint-plugin-testing-libraryWith Yarn
yarn add -D eslint-config-louffee @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-compat eslint-plugin-import eslint-plugin-jest eslint-plugin-jest-dom eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native eslint-plugin-security eslint-plugin-storybook eslint-plugin-testing-libraryWith PNPM
pnpm install --dev eslint-config-louffee @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-compat eslint-plugin-import eslint-plugin-jest eslint-plugin-jest-dom eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native eslint-plugin-security eslint-plugin-storybook eslint-plugin-testing-libraryUsage 📖
To use the Louffee’s configuration, create a new file named .eslintrc.js in the root of your project, and add the following content:
module.exports = require('eslint-config-louffee');(Optional) Also create a .eslintignore file in the root of your project, then add the following line:
.eslintrc.js