This package is modeled heavily off of Airbnb's base config. A huge thanks to their team.
We export our standard ESLint configuration.
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint
, eslint-plugin-node
, eslint-plugin-json
, eslint-plugin-unicorn
, @stylistic/eslint-plugin
and eslint-plugin-import
.
- Install package:
npm install --save-dev @nodecraft/eslint-config
- Add
"extends": "@nodecraft"
to your .eslintrc
If your application uses Vue.js 3.x, also add @nodecraft/eslint-config/vue3
to your extends
array to inherit our Vue rules. If using Vue.js 2.x, add @nodecraft/eslint-config/vue
.
Also add @nodecraft/eslint-config/vue-a11y
for our Vue Accessibility rules (compatible with both Vue.js 3 and Vue.js 2.
Be sure to also install the following optional peer dependencies:
eslint-plugin-vue
eslint-plugin-vue-a11y
If your application uses TypeScript, instead of extending @nodecraft/eslint-config
, extend @nodecraft/eslint-config/typescript
. Also ensure you install the following optional peer depenendies:
@typescript-eslint/eslint-plugin
@typescript-eslint/parser
typescript