Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mayconfsousa/eslint-config-nebula
Elevate JS, TS, and React with best practices for stellar code quality and consistency
https://github.com/mayconfsousa/eslint-config-nebula
eslint eslint-config javascript react reactjs static-code-analysis style-guide typescript
Last synced: about 2 months ago
JSON representation
Elevate JS, TS, and React with best practices for stellar code quality and consistency
- Host: GitHub
- URL: https://github.com/mayconfsousa/eslint-config-nebula
- Owner: mayconfsousa
- Created: 2024-11-01T12:23:33.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-16T18:41:59.000Z (about 2 months ago)
- Last Synced: 2024-12-16T19:40:52.652Z (about 2 months ago)
- Topics: eslint, eslint-config, javascript, react, reactjs, static-code-analysis, style-guide, typescript
- Language: JavaScript
- Homepage:
- Size: 98.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# eslint-config-nebula
[![npm version](https://img.shields.io/npm/v/eslint-config-nebula)](https://www.npmjs.com/package/eslint-config-nebula)
## What's included?
- [Perfectionist plugin](https://www.npmjs.com/package/eslint-plugin-perfectionist) - Enforces consistent sorting for objects, imports, TypeScript types, enums, JSX props, and more.
- [Prettier plugin](https://www.npmjs.com/package/eslint-plugin-prettier) - Integrates Prettier with ESLint, reporting formatting issues as ESLint errors.
- [React plugin](https://www.npmjs.com/package/eslint-plugin-react) - Provides linting rules for React applications.
- [React Hooks plugin](https://www.npmjs.com/package/eslint-plugin-react-hooks) - Enforces the [Rules of Hooks](https://react.dev/reference/rules/rules-of-hooks).
- [React Refresh plugin](https://www.npmjs.com/package/eslint-plugin-react-refresh) - Ensures components support fast refresh updates.
- [TailwindCSS plugin](https://www.npmjs.com/package/eslint-plugin-tailwindcss) - Enforces best practices and consistency with Tailwind CSS.
- [Unused Imports plugin](https://www.npmjs.com/package/eslint-plugin-unused-imports) - Detects and removes unused ES6 imports.
- [React Refresh plugin](https://www.npmjs.com/package/eslint-plugin-react-refresh) - Ensures components are compatible with fast refresh updates.## Installation
```bash
npm add -D eslint eslint-config-nebula
pnpm add -D eslint eslint-config-nebula
yarn add -D eslint eslint-config-nebula
bun add -D eslint eslint-config-nebula
```## Configuration
### Node
```js
// eslint.config.mjsimport node from 'eslint-config-nebula/node'
export default [
...node,
// Override any settings from the "eslint-config-nebula" config here
]```
### React```js
// eslint.config.mjsimport react from 'eslint-config-nebula/react'
export default [
...react,
// Override any settings from the "eslint-config-nebula" config here
]
```### VS Code
```jsonc
// package.json"scripts": {
"lint": "eslint --fix && tsc --noEmit"
},
```
> Recommend to use [ESlint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension```jsonc
// settings.json"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
```