9.3.4 • Published 5 months ago

@secretlint/secretlint-rule-no-dotenv v9.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@secretlint/secretlint-rule-no-dotenv

A secretlint rule for dotenv.

Prevents commits .env file because it may contain credentials.

Install

Install with npm:

npm install @secretlint/secretlint-rule-no-dotenv

Usage

Via .secretlintrc.json(Recommended)

{
    "rules": [
        {
            "id": "@secretlint/secretlint-rule-no-dotenv",
            "options": {
                "allowFileNames": [".env.local", ".env.test"]
            }
        }
    ]
}

The allowFileNames option allows you to specify certain .env files that should be allowed. This is useful for environment-specific configuration files that are safe to commit. Note that this option works alongside .secretlintignore, giving you flexibility in how you want to manage your environment files.

MessageIDs

FOUND_DOTENV_FILE

found .env file

Disallow to commit .env file, because dotenv document describe that

Should I commit my .env file?

No. We strongly recommend against committing your .env file to version control.

-- https://github.com/motdotla/dotenv#should-i-commit-my-env-file

You can tell Secretlint to ignore .env file by .secretlintignore configuration.

For more details .secretlintignore, see following document.

Author

License

MIT © secretlint

9.2.1

7 months ago

9.1.0

8 months ago

9.3.4

5 months ago

9.3.3

5 months ago

9.3.2

6 months ago

9.3.1

7 months ago

9.3.0

7 months ago

9.2.0

8 months ago

8.4.0

1 year ago

8.3.0

1 year ago

8.5.0

1 year ago

8.3.2

1 year ago

8.3.1

1 year ago

8.3.3

1 year ago

9.0.0

1 year ago

8.2.4

2 years ago

8.2.3

2 years ago

8.2.2

2 years ago

8.2.1

2 years ago

8.2.0

2 years ago

8.1.2

2 years ago

8.1.1

2 years ago

8.1.0

2 years ago

7.0.0-beta.66

2 years ago

7.0.0-beta.68

2 years ago

7.0.0-beta.64

2 years ago

7.0.0-beta.65

2 years ago

7.0.0

2 years ago

7.0.4

2 years ago

7.0.3

2 years ago

7.2.0

2 years ago

7.0.2

2 years ago

7.1.0

2 years ago

7.0.1

2 years ago

7.0.8

2 years ago

7.0.7

2 years ago

7.0.6

2 years ago

7.0.5

2 years ago

8.0.0

2 years ago

6.2.4

2 years ago

6.1.0

3 years ago

6.2.1

3 years ago

6.2.0

3 years ago

6.2.3

3 years ago

6.2.2

3 years ago

6.0.1

3 years ago

6.0.2

3 years ago

5.3.0

3 years ago

5.2.4

3 years ago

5.2.1

3 years ago

5.1.3

4 years ago

5.1.2

4 years ago

5.2.0

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.2.0

4 years ago

4.1.3

4 years ago

3.3.1-next.19

4 years ago

4.0.0

4 years ago

3.3.0

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.2.0

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.1.0

6 years ago