visual-studio-codeeslint

Is it possible to see all active rules from a complex eslint config?


My eslint configuration extends several other configuration files. Is it possible to get a static export of all the currently applied rules?

Is there possibly a VSCode plugin for it?


Solution

  • Yes, you can use the --print-config option.

    ./node_modules/.bin/eslint --print-config some-file.js > my-config.json
    

    or

    npx eslint --print-config some-file.js > my-config.json