1.12.0 • Published 11 months ago
@nekochan0122/config v1.12.0
@nekochan0122/config
pnpm i -D @nekochan0122/config
ESLint (Flat Config + TypeScript)
- Install ESLint
pnpm i -D eslint typescript-eslint @eslint/js @eslint/compat @types/eslint__js
- Install Base Plugins
pnpm i -D globals @stylistic/eslint-plugin eslint-plugin-import eslint-plugin-simple-import-sort eslint-plugin-unicorn
- Use it
Base:
import nekoConfig from '@nekochan0122/config/eslint'
import globals from 'globals'
import tseslint from 'typescript-eslint'
export default tseslint.config(
...nekoConfig.presets.base,
{
languageOptions: {
globals: globals.browser, // choose the correct globals for ur project
},
rules: {
'@stylistic/indent': ['error', 4], // you can override rules in here
},
}
)
React:
pnpm i -D eslint-plugin-react eslint-plugin-react-hooks@rc eslint-plugin-react-refresh eslint-plugin-jsx-a11y
import nekoConfig from '@nekochan0122/config/eslint'
import globals from 'globals'
import tseslint from 'typescript-eslint'
export default tseslint.config(
...nekoConfig.presets.react,
{
languageOptions: {
globals: globals.browser,
},
}
)
- Update VSCode Settings (Optional)
{
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
}
!CAUTION Do not use this config with Prettier or other formatter.
VSCode
- Install Fonts
Editor
Terminal
- Download Profile
https://github.com/nekochan0122/config/blob/main/src/vscode
- Import Profile
File -> Preferences -> Profile -> Import
1.12.0
11 months ago
1.11.0
11 months ago
1.9.0
12 months ago
1.10.0
12 months ago
1.8.0
12 months ago
1.7.0
1 year ago
1.6.0
1 year ago
1.5.2
1 year ago
1.5.1
1 year ago
1.5.0
1 year ago
1.4.1
1 year ago
1.4.0
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.0
1 year ago
0.0.1-alpha.25
1 year ago
0.0.1-alpha.24
1 year ago
0.0.1-alpha.23
1 year ago
0.0.1-alpha.22
1 year ago
0.0.1-alpha.21
1 year ago
0.0.1-alpha.20
1 year ago
0.0.1-alpha.19
1 year ago
0.0.1-alpha.18
1 year ago
0.0.1-alpha.17
1 year ago
0.0.1-alpha.16
1 year ago
0.0.1-alpha.14
1 year ago
0.0.1-alpha.13
1 year ago
0.0.1-alpha.12
1 year ago
0.0.1-alpha.11
1 year ago
0.0.1-alpha.10
1 year ago
0.0.1-alpha.9
1 year ago
0.0.1-alpha.8
1 year ago
0.0.1-alpha.7
1 year ago
0.0.1-alpha.6
1 year ago
0.0.1-alpha.5
1 year ago
0.0.1-alpha.3
1 year ago
0.0.1-alpha.2
1 year ago
0.0.1-alpha.1
1 year ago