eslint-config-noxx
My shareable eslint config
Usage
npm i -D @noxx/eslint-config
// OR
yarn add -D @noxx/eslint-config
Inside of .eslintrc.js
(at root of repo)
module.exports = {
extends: '@noxx',
};
Inside of the scripts
node of package.json
"scripts": {
"test": "eslint ./**/*.js"
},
Notes
If you have any dot folders or files that you want to be linted, create a
.eslintignore
and add this:
!.FOLDER_NAME/
!.FILE_NAME
If you need support for dynamic imports import('FILE')
, then you'll need to
install babel-eslint
and add it to your .eslintrc.js
, this will add support
for stage-3 features.
module.exports = {
...
parser: 'babel-eslint',
...
};