This package provides SSL.com's base JS .eslintrc as an extensible shared config.
We export two ESLint configurations for your usage.
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint
and eslint-plugin-import
.
npm install --save-dev eslint-config-sslcom-base eslint-plugin-import eslint
- add
"extends": "sslcom-base"
to your .eslintrc
Lints ES5 and below. Requires eslint
and eslint-plugin-import
.
npm install --save-dev eslint-config-sslcom-base eslint-plugin-import eslint
- add
"extends": "sslcom-base/legacy"
to your .eslintrc
See SSL.com's overarching ESLint config, SSL.com's Javascript styleguide, and the ESlint config docs for more information.
Consider adding test cases if you're making complicated rules changes, like anything involving regexes. Perhaps in a distant future, we could use literate programming to structure our README as test cases for our .eslintrc?
You can run tests with npm test
.
You can make sure this module lints with itself using npm run lint
.