0.0.26 • Published 1 month ago
@rock-hammer/eslint-config v0.0.26
@rock-hammer/eslint-config
安装
需要额外安装:
- eslint
- @antfu/eslint-config
- eslint-plugin-sort-keys-fix
pnpm add eslint @antfu/eslint-config @rock-hammer/eslint-config eslint-plugin-sort-keys-fix -D
使用
module
如果在 package.json 中声明了 "type": "module"
// eslint.config.js
import antfu from '@antfu/eslint-config'
import config from '@rock-hammer/eslint-config'
import sortKeysFix from 'eslint-plugin-sort-keys-fix'
export default [
...antfu(),
...config(),
{
plugins: {
'sort-keys': sortKeysFix,
},
rules: {
'sort-keys/sort-keys-fix': 'warn',
},
},
]
cjs
例如在 nest.js 项目中
// eslint.config.js
const antfu = require('@antfu/eslint-config').default
const config = require('@rock-hammer/eslint-config')
module.exports = [
...antfu(),
...config(),
{
rules: {
'ts/consistent-type-imports': 'off',
},
},
]
0.0.25
1 month ago
0.0.26
1 month ago
0.0.24
1 month ago
0.0.23
3 months ago
0.0.22
4 months ago
0.0.21
4 months ago
0.0.20
5 months ago
0.0.19
5 months ago
0.0.18
5 months ago
0.0.17
5 months ago
0.0.16
5 months ago
0.0.15
5 months ago
0.0.14
5 months ago
0.0.13
5 months ago
0.0.12
5 months ago
0.0.11
5 months ago
0.0.10
5 months ago
0.0.9
5 months ago
0.0.8
6 months ago
0.0.7
6 months ago
0.0.6
6 months ago
0.0.5
6 months ago
0.0.4
6 months ago
0.0.3
6 months ago
0.0.2
6 months ago
0.0.1
6 months ago