This package provides Nau's base JS .eslintrc.js as an extensible shared config.
We export below ESLint configuration for your usage.
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires
- Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-nau@latest" peerDependencies
Linux/OSX users can simply run
Which produces and runs a command like:
npm install --save-dev eslint-config-nau eslint@^#.#.# eslint-plugin-import@^#.#.#
"extends": "nau"to your .eslintrc.js
Improving this config
Consider adding test cases if you're making complicated rules changes, like anything involving regexes. Perhaps in a distant future, we could use literate programming to structure our README as test cases for our .eslintrc?
You can run tests with
You can make sure this module lints with itself using
npm run lint.