Hypernym's internal config for ESLint.
Repository | Package | Releases | Discussions
npm i -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]
// 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.
Released under the MIT license.
© Hypernym Studio