neu242
neu242

Reputation: 16575

Exclude path in EditorConfig matching

I want an .editorconfig rule that includes all *.js files, except all *.min.js files. Is this possible to achieve?

Something like this:

[*.js,!*.min.js]
max_line_length = 140

Upvotes: 1

Views: 1581

Answers (1)

neu242
neu242

Reputation: 16575

I figured out a way to solve this:

[*.js]
max_line_length = 140

[*.min.js]
max_line_length = off

Upvotes: 2

Related Questions