mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2024-12-18 21:45:04 +01:00
Compare commits
No commits in common. "6cb7af3a05e234c02fa0bbc80265bcdce03bef07" and "10b5a0d8dfe458664be260ca1e5b8fcaab3e8716" have entirely different histories.
6cb7af3a05
...
10b5a0d8df
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"plugins": ["promise", "unicorn"],
|
"plugins": ["import", "promise", "unicorn"],
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"node": true,
|
"node": true,
|
||||||
@ -157,6 +157,24 @@
|
|||||||
"arrow-parens": ["error", "always"],
|
"arrow-parens": ["error", "always"],
|
||||||
"arrow-body-style": ["error", "always"],
|
"arrow-body-style": ["error", "always"],
|
||||||
|
|
||||||
|
"import/no-absolute-path": "error",
|
||||||
|
"import/no-webpack-loader-syntax": "error",
|
||||||
|
"import/no-self-import": "error",
|
||||||
|
"import/no-useless-path-segments": "error",
|
||||||
|
"import/export": "error",
|
||||||
|
"import/first": "error",
|
||||||
|
"import/no-duplicates": "error",
|
||||||
|
"import/order": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"groups": ["builtin", "external", "internal"],
|
||||||
|
"newlines-between": "always"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"import/no-named-default": "error",
|
||||||
|
"import/no-empty-named-blocks": "error",
|
||||||
|
"import/no-anonymous-default-export": "error",
|
||||||
|
|
||||||
"promise/param-names": "error",
|
"promise/param-names": "error",
|
||||||
"promise/no-new-statics": "error",
|
"promise/no-new-statics": "error",
|
||||||
"promise/no-multiple-resolved": "error",
|
"promise/no-multiple-resolved": "error",
|
||||||
|
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@ -10,10 +10,10 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@v4.1.7"
|
- uses: "actions/checkout@v4.1.6"
|
||||||
|
|
||||||
- name: "Setup Node.js"
|
- name: "Setup Node.js"
|
||||||
uses: "actions/setup-node@v4.0.3"
|
uses: "actions/setup-node@v4.0.2"
|
||||||
with:
|
with:
|
||||||
node-version: "lts/*"
|
node-version: "lts/*"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -13,13 +13,13 @@ jobs:
|
|||||||
pull-requests: "write"
|
pull-requests: "write"
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@v4.1.7"
|
- uses: "actions/checkout@v4.1.6"
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: "Setup Node.js"
|
- name: "Setup Node.js"
|
||||||
uses: "actions/setup-node@v4.0.3"
|
uses: "actions/setup-node@v4.0.2"
|
||||||
with:
|
with:
|
||||||
node-version: "lts/*"
|
node-version: "lts/*"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -10,10 +10,10 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@v4.1.7"
|
- uses: "actions/checkout@v4.1.6"
|
||||||
|
|
||||||
- name: "Setup Node.js"
|
- name: "Setup Node.js"
|
||||||
uses: "actions/setup-node@v4.0.3"
|
uses: "actions/setup-node@v4.0.2"
|
||||||
with:
|
with:
|
||||||
node-version: "lts/*"
|
node-version: "lts/*"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
@ -36,6 +36,7 @@ More information about **formatting rules** vs **code-quality rules** can be fou
|
|||||||
```sh
|
```sh
|
||||||
npm install --save-dev \
|
npm install --save-dev \
|
||||||
eslint@^8.56.0 \
|
eslint@^8.56.0 \
|
||||||
|
eslint-plugin-import@^2.29.1 \
|
||||||
eslint-plugin-promise@^6.1.1 \
|
eslint-plugin-promise@^6.1.1 \
|
||||||
eslint-plugin-unicorn@^53.0.0 \
|
eslint-plugin-unicorn@^53.0.0 \
|
||||||
eslint-config-conventions@latest
|
eslint-config-conventions@latest
|
||||||
@ -45,6 +46,7 @@ Dependencies are:
|
|||||||
|
|
||||||
- [ESLint](https://github.com/eslint/eslint)
|
- [ESLint](https://github.com/eslint/eslint)
|
||||||
- 3 [ESLint Plugins](https://eslint.org/docs/user-guide/configuring/plugins)
|
- 3 [ESLint Plugins](https://eslint.org/docs/user-guide/configuring/plugins)
|
||||||
|
- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
|
||||||
- [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise)
|
- [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise)
|
||||||
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
||||||
- This package: `eslint-config-conventions`
|
- This package: `eslint-config-conventions`
|
||||||
@ -73,7 +75,7 @@ Dependencies are:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"extends": ["conventions"],
|
"extends": ["conventions"],
|
||||||
"plugins": ["promise", "unicorn"]
|
"plugins": ["import", "promise", "unicorn"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -82,7 +84,7 @@ Dependencies are:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"extends": ["conventions"],
|
"extends": ["conventions"],
|
||||||
"plugins": ["promise", "unicorn"],
|
"plugins": ["import", "promise", "unicorn"],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": ["*.ts", "*.tsx"],
|
"files": ["*.ts", "*.tsx"],
|
||||||
|
2757
package-lock.json
generated
2757
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@ -49,28 +49,30 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
|
"eslint-plugin-import": "^2.29.1",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"eslint-plugin-unicorn": "^51.0.1 || ^52.0.0 || ^53.0.0 || ^54.0.0"
|
"eslint-plugin-unicorn": "^51.0.1 || ^52.0.0 || ^53.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "19.2.2",
|
"@commitlint/cli": "19.2.2",
|
||||||
"@commitlint/config-conventional": "19.2.2",
|
"@commitlint/config-conventional": "19.2.2",
|
||||||
"@tsconfig/strictest": "2.0.5",
|
"@tsconfig/strictest": "2.0.5",
|
||||||
"@types/eslint": "8.56.10",
|
"@types/eslint": "8.56.10",
|
||||||
"@types/node": "20.14.10",
|
"@types/node": "20.12.12",
|
||||||
"@typescript-eslint/eslint-plugin": "7.16.0",
|
"@typescript-eslint/eslint-plugin": "7.10.0",
|
||||||
"@typescript-eslint/parser": "7.16.0",
|
"@typescript-eslint/parser": "7.10.0",
|
||||||
"editorconfig-checker": "5.1.8",
|
"editorconfig-checker": "5.1.5",
|
||||||
"eslint": "8.57.0",
|
"eslint": "8.57.0",
|
||||||
"eslint-plugin-promise": "6.4.0",
|
"eslint-plugin-import": "2.29.1",
|
||||||
"eslint-plugin-unicorn": "54.0.0",
|
"eslint-plugin-promise": "6.1.1",
|
||||||
|
"eslint-plugin-unicorn": "53.0.0",
|
||||||
"husky": "9.0.11",
|
"husky": "9.0.11",
|
||||||
"lint-staged": "15.2.7",
|
"lint-staged": "15.2.2",
|
||||||
"markdownlint-cli2": "0.13.0",
|
"markdownlint-cli2": "0.13.0",
|
||||||
"markdownlint-rule-relative-links": "3.0.0",
|
"markdownlint-rule-relative-links": "2.3.2",
|
||||||
"pinst": "3.0.0",
|
"pinst": "3.0.0",
|
||||||
"prettier": "3.3.2",
|
"prettier": "3.2.5",
|
||||||
"semantic-release": "23.1.1",
|
"semantic-release": "23.1.1",
|
||||||
"typescript": "5.5.3"
|
"typescript": "5.4.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user