1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2025-05-18 12:02:33 +02:00

Compare commits

..

5 Commits

Author SHA1 Message Date
d91b2a2538 feat: replace no-new-object (deprecated) rule with no-object-constructor
All checks were successful
Lint / lint (push) Successful in 1m9s
Test / test (push) Successful in 48s
2023-10-18 13:04:31 +02:00
d8b3ef6646 build(deps): update latest
BREAKING CHANGE: peerDependencies: `eslint@^8.51.0`
`eslint-plugin-import@^2.28.1`
`eslint-plugin-promise@^6.1.1`
`eslint-plugin-unicorn@^48.0.1`

BREAKING CHANGE: Bump minimum supported Node.js >= 18.0.0
2023-10-18 12:59:19 +02:00
d149fdd6ab fix: relax unicorn/consistent-function-scoping
Some checks failed
Lint / lint (push) Successful in 49s
Test / test (push) Successful in 37s
Release / release (push) Failing after 1m2s
Rule not working well with typeof generic in TypeScript.
React.js component should have all the related functions in its scope.
2023-07-18 23:12:21 +02:00
6345bddd38 fix: relax @typescript-eslint/prefer-nullish-coalescing
Should ignore ternary tests.
2023-07-18 23:06:31 +02:00
4e99d69598 fix: relax no-duplicate-imports
Conflict with `@typescript-eslint/consistent-type-imports`
2023-07-18 22:31:59 +02:00
7 changed files with 1916 additions and 1580 deletions

View File

@ -112,7 +112,7 @@
],
"no-multi-str": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-object-constructor": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-proto": "error",
@ -176,7 +176,6 @@
"unicorn/better-regex": "error",
"unicorn/catch-error-name": "error",
"unicorn/consistent-destructuring": "error",
"unicorn/consistent-function-scoping": "error",
"unicorn/custom-error-definition": "error",
"unicorn/error-message": "error",
"unicorn/escape-case": "error",
@ -267,6 +266,7 @@
"error",
"interface"
],
"no-duplicate-imports": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
@ -319,6 +319,7 @@
"@typescript-eslint/prefer-nullish-coalescing": [
"error",
{
"ignoreTernaryTests": true,
"ignoreConditionalTests": false,
"ignoreMixedLogicalExpressions": false
}

View File

@ -10,10 +10,10 @@ jobs:
lint:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3.5.3'
- uses: 'actions/checkout@v3.6.0'
- name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0'
uses: 'actions/setup-node@v3.8.1'
with:
node-version: 'lts/*'
cache: 'npm'

View File

@ -13,13 +13,13 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: 'actions/checkout@v3.5.3'
- uses: 'actions/checkout@v3.6.0'
with:
fetch-depth: 0
persist-credentials: false
- name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0'
uses: 'actions/setup-node@v3.8.1'
with:
node-version: 'lts/*'
cache: 'npm'

View File

@ -10,10 +10,10 @@ jobs:
test:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3.5.3'
- uses: 'actions/checkout@v3.6.0'
- name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0'
uses: 'actions/setup-node@v3.8.1'
with:
node-version: 'lts/*'
cache: 'npm'

View File

@ -31,16 +31,16 @@ More information about **formatting rules** vs **code-quality rules** can be fou
### Prerequisites
- [Node.js](https://nodejs.org/) >= 16.0.0
[Node.js](https://nodejs.org/) >= 18.0.0
### Installation
```sh
npm install --save-dev \
eslint@^8.44.0 \
eslint-plugin-import@^2.27.5 \
eslint@^8.51.0 \
eslint-plugin-import@^2.28.1 \
eslint-plugin-promise@^6.1.1 \
eslint-plugin-unicorn@^48.0.0 \
eslint-plugin-unicorn@^48.0.1 \
eslint-config-conventions@latest
```
@ -57,9 +57,9 @@ If you want to use **TypeScript**, you also need to install:
```sh
npm install --save-dev \
typescript@^5.1.6 \
@typescript-eslint/eslint-plugin@^6.1.0 \
@typescript-eslint/parser@^6.1.0
typescript@^5.2.2 \
@typescript-eslint/eslint-plugin@^6.8.0 \
@typescript-eslint/parser@^6.8.0
```
Dependencies are:

3427
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@
"provenance": true
},
"engines": {
"node": ">=16.0.0",
"node": ">=18.0.0",
"npm": ">=9.0.0"
},
"scripts": {
@ -49,31 +49,31 @@
"postpublish": "pinst --enable"
},
"peerDependencies": {
"eslint": "^8.44.0",
"eslint-plugin-import": "^2.27.5",
"eslint": "^8.51.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^48.0.0"
"eslint-plugin-unicorn": "^48.0.1"
},
"devDependencies": {
"@commitlint/cli": "17.6.6",
"@commitlint/config-conventional": "17.6.6",
"@tsconfig/strictest": "2.0.1",
"@types/eslint": "8.44.0",
"@types/node": "20.4.2",
"@typescript-eslint/eslint-plugin": "6.1.0",
"@typescript-eslint/parser": "6.1.0",
"@commitlint/cli": "17.8.0",
"@commitlint/config-conventional": "17.8.0",
"@tsconfig/strictest": "2.0.2",
"@types/eslint": "8.44.5",
"@types/node": "20.8.7",
"@typescript-eslint/eslint-plugin": "6.8.0",
"@typescript-eslint/parser": "6.8.0",
"editorconfig-checker": "5.1.1",
"eslint": "8.45.0",
"eslint-plugin-import": "2.27.5",
"eslint": "8.51.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-unicorn": "48.0.0",
"eslint-plugin-unicorn": "48.0.1",
"husky": "8.0.3",
"lint-staged": "13.2.3",
"markdownlint-cli2": "0.8.1",
"lint-staged": "15.0.1",
"markdownlint-cli2": "0.10.0",
"markdownlint-rule-relative-links": "2.1.0",
"pinst": "3.0.0",
"prettier": "3.0.0",
"semantic-release": "21.0.7",
"typescript": "5.1.6"
"prettier": "3.0.3",
"semantic-release": "22.0.5",
"typescript": "5.2.2"
}
}