eslint-config-codex

1.7.2 • Public • Published

CodeX basic ESLint configuration

Install

Add package to your dev-dependencies using npm or yarn:

$ npm i -D eslint-config-codex eslint

$ yarn add -D eslint-config-codex eslint

Usage in JavaScript

Add .eslintrc file to your project's root if you don't have it.

./node_modules/.bin/eslint init

Then add the extends section to there:

{
  "extends": [
    "codex"
  ]
}

Usage in TypeScript

  1. Follow instructions for JavaScript
  2. Extend from codex/ts instead of codex
{
  "extends": [
    "codex/ts"
  ]
}

Troubleshooting

ESLint couldn't determine the plugin ... uniquely

Since 7.x ESLint loads plugins from the location of each config file which has the plugins field. Resolve this issue by adding the root flag to your .eslintrc config

{
  "root": true
}

Issue | Discussion

Keywords

none

Install

npm i eslint-config-codex

DownloadsWeekly Downloads

426

Version

1.7.2

License

MIT

Unpacked Size

10.9 kB

Total Files

10

Last publish

Collaborators

  • codex-team