https://github.com/codex-team/eslint-config
CodeX basic eslint configuration
https://github.com/codex-team/eslint-config
Last synced: about 2 months ago
JSON representation
CodeX basic eslint configuration
- Host: GitHub
- URL: https://github.com/codex-team/eslint-config
- Owner: codex-team
- Created: 2018-08-16T21:15:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-09T16:09:35.000Z (7 months ago)
- Last Synced: 2025-03-28T11:06:49.492Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 343 KB
- Stars: 7
- Watchers: 5
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CodeX ESLint configuration
- [Flat config](https://eslint.org/docs/latest/use/configure/configuration-files), 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:
```bash
yarn add -D eslint-config-codex eslint
```## Usage
Add following lines to your `eslint.config.mjs`:
```js
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`:
```jsonc
// 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](https://github.com/codex-team/eslint-config/issues/25) | [Discussion](https://github.com/eslint/eslint/issues/13385#issuecomment-641252879)