1.0.17 • Published 6 months ago
eslint-config-nebula v1.0.17
eslint-config-nebula
What's included?
- Perfectionist plugin - Enforces consistent sorting for objects, imports, TypeScript types, enums, JSX props, and more.
- Prettier plugin - Integrates Prettier with ESLint, reporting formatting issues as ESLint errors.
- React plugin - Provides linting rules for React applications.
- React Hooks plugin - Enforces the Rules of Hooks.
- React Refresh plugin - Ensures components support fast refresh updates.
- TailwindCSS plugin - Enforces best practices and consistency with Tailwind CSS.
- Unused Imports plugin - Detects and removes unused ES6 imports.
- React Refresh plugin - Ensures components are compatible with fast refresh updates.
Installation
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
// eslint.config.mjs
import node from 'eslint-config-nebula/node'
export default [
...node,
// Override any settings from the "eslint-config-nebula" config here
]
React
// eslint.config.mjs
import react from 'eslint-config-nebula/react'
export default [
...react,
// Override any settings from the "eslint-config-nebula" config here
]
React + Tailwind
// eslint.config.mjs
import reactTailwind from 'eslint-config-nebula/react-tailwind'
export default [
...reactTailwind,
// Override any settings from the "eslint-config-nebula" config here
]
VS Code
// package.json
"scripts": {
"lint": "eslint --fix && tsc --noEmit"
},
Recommend to use ESlint extension
// 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"
},
1.0.17
6 months ago
1.0.16
6 months ago
1.0.15
6 months ago
1.0.14
8 months ago
1.0.13
9 months ago
1.0.11
9 months ago
1.0.12
9 months ago
1.0.9
10 months ago
1.0.8
10 months ago
1.0.7
10 months ago
1.0.6
10 months ago
1.0.5
10 months ago
1.0.10
10 months ago
1.0.4
10 months ago
1.0.3
10 months ago
1.0.2
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago