Utility to create ESLint config files
Prerequisites: Node.js (^12.22.0
, ^14.17.0
, or >=16.0.0
) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
You can use npm/npx(shipped with Node.js).
# use npm
npm init @eslint/config
# use npx
npx @eslint/create-config
If you want to use the specified shared configs:
# use `eslint-config-semistandard` shared config
npm init @eslint/config --config semistandard
# or (`eslint-config` prefix is optional)
npm init @eslint/config --config eslint-config-semistandard
The --config
flag also supports passing in arrays:
npm init @eslint/config --config semistandard,standard
# or
npm init @eslint/config --config semistandard --config standard