Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-turbo

Package Overview
Dependencies
Maintainers
2
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-turbo - npm Package Compare versions

Comparing version 2.3.2-canary.1 to 2.3.2

8

package.json
{
"name": "eslint-plugin-turbo",
"version": "2.3.2-canary.1",
"version": "2.3.2",
"description": "ESLint plugin for Turborepo",

@@ -40,6 +40,6 @@ "keywords": [

"@turbo/eslint-config": "0.0.0",
"@turbo/test-utils": "0.0.0",
"@turbo/tsconfig": "0.0.0",
"@turbo/types": "2.3.2-canary.1",
"@turbo/utils": "0.0.0"
"@turbo/utils": "0.0.0",
"@turbo/types": "2.3.2",
"@turbo/test-utils": "0.0.0"
},

@@ -46,0 +46,0 @@ "peerDependencies": {

@@ -19,41 +19,5 @@ # `eslint-plugin-turbo`

## Usage (Legacy `eslintrc*`)
Add `turbo` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": ["turbo"]
}
```
Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"turbo/no-undeclared-env-vars": "error"
}
}
```
## Example (Legacy `eslintrc*`)
```json
{
"plugins": ["turbo"],
"rules": {
"turbo/no-undeclared-env-vars": [
"error",
{
"allowList": ["^ENV_[A-Z]+$"]
}
]
}
}
```
## Usage (Flat Config `eslint.config.js`)
In ESLint v8, both the legacy system and the new flat config system are supported. In ESLint v9, only the new system will be supported. See the [official ESLint docs](https://eslint.org/docs/latest/use/configure/configuration-files).
ESLint v9 uses the Flat Config format seen below:

@@ -104,1 +68,37 @@ ```js

```
## Usage (Legacy `eslintrc*`)
Add `turbo` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": ["turbo"]
}
```
Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"turbo/no-undeclared-env-vars": "error"
}
}
```
## Example (Legacy `eslintrc*`)
```json
{
"plugins": ["turbo"],
"rules": {
"turbo/no-undeclared-env-vars": [
"error",
{
"allowList": ["^ENV_[A-Z]+$"]
}
]
}
}
```

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc