lint for consistency of rules with in a file not a project
You'll first need to install ESLint:
$ npm i eslint --save-dev
$ npm install eslint-plugin-be-consistent --save-dev
Note: If you installed ESLint globally (using the
-g flag) then you must also install
be-consistent to the plugins section of your
.eslintrc configuration file. You can omit the
Then configure the rules you want to use under the rules section.
quotes- aimed at checking quote consistency within a file and not project.
let-const-var- aimed at checking for consistent use of let/const or var in a file not a project.