@sikaeducation/eslint-config
v4.0.0
Published
Linting and formatting for Sika's projects
Downloads
19
Readme
Sika's ESLint Config
Install with npm install -D eslint @sikaeducation/eslint-config
.
Usage
# Install dependencies for TS and React
npm i -D eslint @sikaeducation/eslint-config
// .eslintrc.js
module.exports = {
extends: [
"@sikaeducation",
"@sikaeducation/eslint-config/src/configs/vitest",
],
};
- Integrate this with your editor's ESLint plugin for fix-on-save. Neovim's is part of
nvim-lsp-config
. If the app is{"type": "module"}
, use.eslintrc.cjs
.
Available Configs
"@sikaeducation/eslint-config/src/configs/js"
"@sikaeducation/eslint-config/src/configs/ts"
"@sikaeducation/eslint-config/src/configs/react"
"@sikaeducation/eslint-config/src/configs/react-ts"
"@sikaeducation/eslint-config/src/configs/jest"
"@sikaeducation/eslint-config/src/configs/jest-ts"
"@sikaeducation/eslint-config/src/configs/storybook"
"@sikaeducation/eslint-config/src/configs/playwright-test"
"@sikaeducation/eslint-config/src/configs/playwright-jest"
"@sikaeducation/eslint-config/src/configs/vitest"
Default is JS+TS+React+React TS.
Deployment
Set NPM_TOKEN
on GitHub Actions to publish. Generate it on Sika's npm page then add it to the secrets page.
Publish updates by incrementing the version with npm version patch|minor|major
and pushing.