Skip to content

putout v22.4.0

Choose a tag to compare

@coderaiser coderaiser released this 02 Dec 20:13
· 12766 commits to master since this release

Added support of Environment Variable PUTOUT_CONFIG_FILE

Just landed 🐊Putout v22.4.0 with ability to override default config with help of PUTOUT_CONFIG_FILE env variable (in the similar way as it works with ESLINT_CONFIG_FILE):

PUTOUT_CONFIG_FILE=.putout-off.json putout . --no-config

With .putout-off.json:

{
    "formatter": "progress-bar",
    "rules": {
        "remove-unused-variables": "on"
    },
    "processors": [
        "javascript",
        "json",
        "markdown",
        "ignore",
        "yaml",
        "css"
    ],
    "ignore": [
        "**/node_modules",
    ],
    "plugins": [
        "remove-unused-variables"
    ]
}

It runs one rule remove-unused-variables. So you can add any rules you want :).

First class support of TypeScript in ESLint plugin

eslint-plugin-putout v12.0.0 has better support of TypeScript because it uses @typescript-eslint and a lot of it's rules to format TypeScript files 🎉 .

🔥 feature