2.0.1 • Published 6 years ago
@noxx/eslint-config v2.0.1
eslint-config-noxx
My shareable eslint config
Usage
npm i -D @noxx/eslint-config
// OR
yarn add -D @noxx/eslint-configInside 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_NAMEIf 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',
...
};