eslint-plugin-turbo
Advanced tools
Comparing version 2.3.2-canary.1 to 2.3.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
17
36
5
152
445839