@noxx/eslint-config

2.0.1 • Public • Published

eslint-config-noxx

npm version

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',
  ...
};

Package Sidebar

Install

npm i @noxx/eslint-config

Weekly Downloads

9

Version

2.0.1

License

MIT

Unpacked Size

3.4 kB

Total Files

3

Last publish

Collaborators

  • noxx