@noxu/eslint-config

Noxu's ESLint config, following our styleguide

Usage no npm install needed!

<script type="module">
  import noxuEslintConfig from 'https://cdn.skypack.dev/@noxu/eslint-config';
</script>

README

@noxu/eslint-config

npm version

This package provides Noxu's base JS .eslintrc (without React plugins) as an extensible shared config.

Under the hood this package rely on airbnb styleguide and prettier for automatic indentation.

Usage

Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint, prettier, eslint-plugin-prettier and eslint-plugin-import.

  1. Install the correct versions of each package, which are listed by the command:

    npm info "@noxu/eslint-config@latest" peerDependencies
    

    If using npm 5+, use this shortcut

    npx install-peerdeps --dev @noxu/eslint-config
    
  2. Add "extends": "@noxu/eslint-config" to your .eslintrc.