@adchitects/eslint-config
Prerequisites
- Latest Node.js LTS (Long-Term Support) version
- One of Node.js package managers:
- Latest ESLint version
Basic usage
-
Install it with the Node.js package manager of your choice (in our case, we use pnpm).
pnpm install --save-dev eslint @adchitects/eslint-config
-
Create an ESLint configuration file -
.eslintrc.(c)js
. -
Extend this module package configuration.
const config = { extends: "@adchitects", env: { // Specify the environment(s) // https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments browser: true, node: true, }, }; module.exports = config;
Used configurations & plugins
Configurations
Configurations | Version | Loading condition(s) |
---|---|---|
eslint-config-next |
next as dependency |
|
eslint-config-prettier |
prettier as dependency |
Plugins
Plugin | Version | Loading condition(s) |
---|---|---|
@typescript-eslint/eslint-plugin |
typescript as dependency |
|
eslint-plugin-compat | - | |
eslint-plugin-diff | Set one of environment variables: CI or CONTINUOUS_INTEGRATION to true
|
|
@emotion/eslint-plugin |
@emotion/css or @emotion/react as dependency |
|
eslint-plugin-import | - | |
eslint-plugin-jest |
jest or vitest as dependency |
|
eslint-plugin-jest-dom |
@testing-library/jest-dom as dependency |
|
eslint-plugin-jest-formatting |
jest or vitest as dependency |
|
eslint-plugin-json-schema-validator | - | |
eslint-plugin-jsonc | - | |
eslint-plugin-jsx-a11y |
react or preact as dependency |
|
eslint-plugin-node | - | |
eslint-plugin-react |
react or preact as dependency |
|
eslint-plugin-react-hooks |
react or preact as dependency |
|
eslint-plugin-regexp | - | |
eslint-plugin-sonarjs | - | |
eslint-plugin-sql | - | |
eslint-plugin-storybook |
sb or storybook or @storybook/react as dependency |
|
eslint-plugin-testing-library |
@testing-library/jest-dom as dependency |
|
eslint-plugin-unicorn | - | |
eslint-plugin-yml | - |
Security
Contributing
Please refer to the monorepo (adchitects/configs) project's CONTRIBUTING file for more information if you wish to get involved.