eslint-plugin 0.4.1
Install from the command line:
Learn more about npm packages
$ npm install @gaudiy/eslint-plugin@0.4.1
Install via package.json:
"@gaudiy/eslint-plugin": "0.4.1"
About this version
Gaudiy’s ESLint rules and configs.
Install ESLint and @gaudiy/eslint-plugin
With npm
$ npm install eslint @gaudiy/eslint-plugin --save-dev
Gaudiy’s ESLint configs come bundled in this package. In order to use them, you simply extend the relevant configuration in your project’s .eslintrc
. For example, the following will extend the ts base config:
{
"extends": "plugin:@gaudiy/base"
}
If you are working on an React project, extend the react version of the configuration:
{
"extends": "plugin:@gaudiy/react"
}
These are the configs you can use in combination.
{
"extends": [
"plugin:@shopify/base",
"plugin:@shopify/react",
"plugin:@shopify/jest",
"plugin:@shopify/tailwind",
]
}
Install @typescript-eslint/eslint-plugin
and @typescript-eslint/parser
because it is bundled as peerDependencies.
With npm
$ npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser --save-dev
This config requires knowledge of your TypeScript config. In your ESLint config, set parserOptions.project to the path of your tsconfig.json.
For example:
{
"extends": [
"plugin:@gaudiy/base",
...
],
"parserOptions": {
"project": "tsconfig.json"
}
}