1.2.3 • Published 2 years ago
@avv/eslint-plugin v1.2.3
@avv/eslint-plugin
Install
For projects using Typescript. Therefore, the plugin uses the @typescript-eslint/parser. To work correctly, you need to install the required dependencies::
npm i -D @avv/eslint-plugin eslint eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-config-airbnb eslint-config-airbnb-typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin
To view required dependencies:
npm info "@avv/eslint-plugin@latest" peerDependencies
Using
{
"plugins": [
"@avv"
],
"extends": [
"plugin:@avv/typescript"
]
}
Note: Make sure that parserOptions
uses tsconfig
of the project:
{
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
Note: By default, js
and jsx
files are ignored. To change this setting override:
{
"ignorePatterns": ["*.js", "*.jsx"]
}