Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@tidio/eslint-plugin-tidio
Advanced tools
This package provides custom eslint configs for different uses.
To install run
yarn add -D @tidio/eslint-plugin-tidio @rushstack/eslint-patch
To add tidio plugin to your eslint config you should be adding individual configs (with plugin:@tidio/eslint-plugin-tidio/
) prefix to extends
array in your eslint rc file. One important thing to note is that you should add require("@rushstack/eslint-patch/modern-module-resolution");
to the top of your .eslintrc.js
file. This package patches eslint to use its own module resolution. What it does in practice - you do not need to install any other packages than this one in your repository (normally you would need to install airbnb, eslint plugins etc). For more detailed info see @rushstack/eslint-patch
Example config can look like this:
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@tidio/eslint-plugin-tidio/react',
'plugin:@tidio/eslint-plugin-tidio/translations',
]
};
To add it to your config add plugin:@tidio/eslint-plugin-tidio/basic
to extends
array.
This config extends airbnb-base config. It also extends prettier and recommended rules for typescript. Additionally there are rules which override some of airbnb rules and some that add new rules to this set. This config should be usable in any kind of repo (node, non-react repos etc).
This config is interchangeable with react
config and those 2 should never be used at the same time
To add it to your config add plugin:@tidio/eslint-plugin-tidio/react
to extends
array.
This config is an extension of basic
ruleset with some additional react-only rules. This config extends airbnb config instead of airbnb-base
. In addition to basic
and airbnb
ruleset there are some additional react rules overrides, react-hooks rules and some other custom rules. This config should be usable in repos which use react
This config is interchangeable with basic
config and those 2 should never be used at the same time
To add it to your config add plugin:@tidio/eslint-plugin-tidio/emotion
to extends
array.
It contains rules for CSS-in-JS emotion package.
To add it to your config add plugin:@tidio/eslint-plugin-tidio/translations
to extends
array.
This ruleset disallows using strings as direct JSX children and it requires always importing from lang
as trans
.
To add it to your config add plugin:@tidio/eslint-plugin-tidio/jest
to extends
array and update your settings
object in eslint rc file with jest->version
, for example:
settings: {
jest: {
version: 26,
},
},
This config adds jest rules to your ruleset. It extends jest/recommended
and jest/style
configs.
To add it to your config add plugin:@tidio/eslint-plugin-tidio/redux
to extends
array.
It adds custom redux rules.
To add it to your config add plugin:@tidio/eslint-plugin-tidio/storybook
to extends
array.
It adds some overrides for stories
files.
To add it to your config add plugin:@tidio/eslint-plugin-tidio/testingLibrary
to extends
array.
FAQs
Tidio eslint ruleset
The npm package @tidio/eslint-plugin-tidio receives a total of 1,618 weekly downloads. As such, @tidio/eslint-plugin-tidio popularity was classified as popular.
We found that @tidio/eslint-plugin-tidio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.