2.1.0 • Published 8 months ago
@namchee/eslint-config v2.1.0
ESLint Config Namchee
Personal and opinionated ESLint shareable configuration. Uses ESLint Stylistic, why?.
Installation
Install this config with your favorite package manager:
# using npm
npm install @namchee/eslint-config -D
# using yarn
yarn add @namchee/eslint-config -D
# using pnpm
pnpm add @namchee/eslint-config -D
# using bun
bun add @namchee/eslint-config -D
Usage
To use the ESLint configuration, you can extend your configuration by importing the config directly:
// with "type": "module" in package.json
import config from '@namchee/eslint-config';
export default [...config];
// without "type": "module" in package.json
const config = require('@namchee/eslint-config');
module.exports = [...config];
VSCode Settings
If you're using VSCode, use the following settings for maximum DX with this configuration
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.experimental.useFlatConfig": true,
"eslint.format.enable": true,
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"json",
"jsonc",
"yaml"
],
"prettier.enable": false
}
Supported Languages
- JavaScript -
.js
,.mjs
,.cjs
,.jsx
- TypeScript -
.ts
,.mts
,.tsx
- JSON -
.json
,.json5
,.jsonc
- YAML -
.yaml
,.yml
- Vue - planned
- Markdown - planned
License
This project is licensed under the MIT License
2.0.11--canary.28.11577356600.0
8 months ago
2.1.0
8 months ago
2.0.10
1 year ago
2.0.10--canary.27.7796330182.0
1 year ago
2.0.9--canary.26.7375949708.0
2 years ago
2.0.9
2 years ago
2.0.8--canary.25.7179836617.0
2 years ago
2.0.7--canary.24.7167237334.0
2 years ago
2.0.7
2 years ago
2.0.8
2 years ago
2.0.6--canary.23.7110315014.0
2 years ago
2.0.6
2 years ago
2.0.4--canary.21.7101322012.0
2 years ago
2.0.5
2 years ago
2.0.4
2 years ago
2.0.5--canary.22.7102368876.0
2 years ago
2.0.4--canary.21.7101276032.0
2 years ago
2.0.3
2 years ago
1.0.19
2 years ago
2.0.2
2 years ago
1.0.19--canary.16.6602805154.0
2 years ago
2.0.1--canary.18.6602974886.0
2 years ago
2.0.1
2 years ago
1.0.2
4 years ago
1.0.1
4 years ago