2.0.1 • Published 5 days ago

eslint-config-codex v2.0.1

Weekly downloads
451
License
MIT
Repository
github
Last release
5 days ago

CodeX ESLint configuration

  • Flat config, ESLint 9
  • JavaScript and TypeScript configs
  • Vue.js config (TS)
  • Node.js
  • Codestyle config
  • JSDoc configs for JS and TS
  • Global variables list
  • Gitignore support

Install

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

yarn add -D eslint-config-codex eslint

Usage

Add following lines to your eslint.config.mjs:

import CodeX from 'eslint-config-codex'

export default [
  ...CodeX,
  // your customization
]

VSCode suport

Open Code / Settings, find "Open Settings (JSON)" icon at the top-bar

Then fill opened .vscode/settings.json:

  // Enable the ESlint flat config support
  "eslint.experimental.useFlatConfig": true,

  // Disable the default formatter, use eslint instead
  "prettier.enable": false,
  "editor.formatOnSave": false,

  // Auto fix
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit",
    "source.organizeImports": "never"
  },

  // Enable eslint for all supported languages
  "eslint.validate": [
    "javascript",
    "typescript",
    "vue",
    "html",
  ]

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

2.0.1

5 days ago

2.0.0

19 days ago

1.8.4

1 month ago

1.9.2

1 month ago

1.9.1

7 months ago

1.9.0

7 months ago

1.8.3

9 months ago

1.8.2

9 months ago

1.8.1

10 months ago

1.8.0

10 months ago

1.7.2

1 year ago

1.7.1

1 year ago

1.7.0

2 years ago

1.6.4

3 years ago

1.6.3

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago