Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@hypernym/eslint-config
Advanced tools
Hypernym's internal config for ESLint.
Repository ✦ Package ✦ Releases ✦ Discussions
pnpm add -D @hypernym/eslint-config
Add lint
commands for manual linting (optionally):
// package.json
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint --fix ."
}
}
// eslint.config.js
import { jsConfig, ignoresConfig } from '@hypernym/eslint-config'
export default [jsConfig, ignoresConfig]
// eslint.config.js
import { jsConfig, tsConfig, ignoresConfig } from '@hypernym/eslint-config'
export default [jsConfig, tsConfig, ignoresConfig]
[!NOTE]
Install the required
Svelte
dev dependencies before using:pnpm add -D eslint-plugin-svelte svelte-eslint-parser
Also, don't forget to add the
svelte
lang key to theeslint.validate
vscode setting:
// .vscode/settings.json { "eslint.validate": ["javascript", "typescript", "svelte"] }
// eslint.config.js
import { jsConfig, tsConfig, ignoresConfig } from '@hypernym/eslint-config'
import { svelteConfig } from '@hypernym/eslint-config/svelte'
export default [jsConfig, tsConfig, svelteConfig, ignoresConfig]
[!NOTE]
Install the required
Vue
dev dependencies before using:pnpm add -D eslint-plugin-vue
Also, don't forget to add the
vue
lang key to theeslint.validate
vscode setting:
// .vscode/settings.json { "eslint.validate": ["javascript", "typescript", "vue"] }
// eslint.config.js
import { jsConfig, tsConfig, ignoresConfig } from '@hypernym/eslint-config'
import { vueConfig } from '@hypernym/eslint-config/vue'
export default [jsConfig, tsConfig, vueConfig, ignoresConfig]
[!NOTE]
Install the required
React
dev dependencies before using:pnpm add -D eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-refresh
Also, don't forget to add the
react
lang keys to theeslint.validate
vscode setting:
// .vscode/settings.json { "eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact"] }
// eslint.config.js
import { ignoresConfig } from '@hypernym/eslint-config'
import { jsxConfig, tsxConfig } from '@hypernym/eslint-config/react'
export default [jsxConfig, tsxConfig, ignoresConfig]
// eslint.config.js
import { jsConfig, tsConfig, ignores } from '@hypernym/eslint-config'
export default [
jsConfig,
tsConfig,
{
files: tsConfig.files,
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ ignoreRestSiblings: true },
],
},
},
{
ignores: [...ignores, '**/dir/**/*'],
},
]
Feel free to ask questions or share new ideas.
Use the official discussions to get involved.
Developed in 🇭🇷 Croatia, © Hypernym Studio.
Released under the MIT license.
FAQs
Hypernym's internal config for ESLint.
We found that @hypernym/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.