2.0.34 • Published 12 months ago
@relaxed/eslint-config v2.0.34
eslint-config-relaxed
relaxed's eslint config presets with prettier
it equal to relaxed-ts
Usage
Install
pnpm add -D eslint eslint-config-relaxed
Config eslint (.eslintrc | .eslintrc.js | .eslintrc.json)
{
"extends": "relaxed"
}
You don't need .eslintignore normally as it has been provided by the preset.
add import alias
{
"settings": {
"import/resolver": {
"alias": {
"map": [
["~", "."],
["@", "./src"]
],
"extensions": [".js", ".jsx", ".mjs", ".ts", ".tsx", "mts", ".d.ts"]
}
}
}
}
Add scripts for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
2.0.28
12 months ago
2.0.29
12 months ago
2.0.34
12 months ago
2.0.32
12 months ago
2.0.27
12 months ago
2.0.24
12 months ago
2.0.22
12 months ago
2.0.20
1 year ago
2.0.17
1 year ago
2.0.18
1 year ago
2.0.3
1 year ago
2.0.13
1 year ago
2.0.5
1 year ago
2.0.11
1 year ago
2.0.12
1 year ago
2.0.9
1 year ago
2.0.10
1 year ago
2.0.2
1 year ago
1.0.11
2 years ago
2.0.1
1 year ago
1.1.2
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.6
2 years ago
1.0.0
2 years ago