0.9.0 • Published 2 years ago
@aklesky/eslint-config v0.9.0
ESLint TypeScript & Jest Preset
Shareable Configuration for Linting and Testing
Usage for Node/Typescript Preset
{
"extends": "@aklesky/eslint-config/node/node"
}
Usage for Jest Preset
{
"extends": "@aklesky/eslint-config/node/jest"
}
Jest Preset
Configuration extends preset from node and adds jest rules.
{
"env": {
"jest/globals": true,
},
"plugins": [
"jest",
],
"rules": {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
}
}
Node & Typescript Preset
enabled node rules and environments
{
"root": true,
"env": {
"node": true,
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"no-console": ["error", { "allow": ["warn", "error","info"] }],
"prettier/prettier": ["error", prettier],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "ignoreRestSiblings": true }],
}
}
Supported Versions
Name | Version | Supported |
---|---|---|
Node | >= 18.13.0 | :white_check_mark: |
Typescript | >= 4.9.4 | :white_check_mark: |
Jest | >= 29.4.1 | :white_check_mark: |
ESLint | >= 8.33.0 | :white_check_mark: |
0.9.0
2 years ago
0.8.0
2 years ago
0.7.14
2 years ago
0.7.11
2 years ago
0.7.13
2 years ago
0.7.12
2 years ago
0.7.10
2 years ago
0.7.6
2 years ago
0.7.5
2 years ago
0.7.8
2 years ago
0.7.7
2 years ago
0.6.7
2 years ago
0.7.2
2 years ago
0.7.1
2 years ago
0.7.3
2 years ago
0.7.0
2 years ago
0.6.3
2 years ago
0.1.0
2 years ago
0.2.0
2 years ago
0.1.1
2 years ago
0.6.2
2 years ago
0.6.0
2 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago