@adchitects/eslint-config v0.2.0
@adchitects/eslint-config
➡️ Extendable configuration, part of the adchitects/configs project.
Prerequisites
ℹ️ This configuration package require these tools to use locally on your device(s):
- Latest Node.js LTS (Long-Term Support) version
- One of Node.js package managers:
- Latest version
Basic usage
👣 Follow the steps below:
Install it with the package manager of your choice (in our case, we use ).
pnpm install --save-dev eslint @adchitects/eslint-config
Create an -
.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;
📖 For the usage, please refer to its documentation.
Used configurations & plugins
⚙️ This configuration module loads configurations and plugins options conditionally.
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
🔐 For more information, please refer to the Security section at the root of the adchitects/configs monorepo.
Contributing
🤝 Contributions of any kind are welcome!
Please refer to the monorepo (adchitects/configs) project's CONTRIBUTING file for more information if you wish to get involved.
License
⚖️ For more information, please refer to the License section at the root of the adchitects/configs monorepo.