1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2024-11-09 22:08:37 +01:00

chore: cleaner configs

This commit is contained in:
Théo LUDWIG 2024-01-30 01:32:52 +01:00
parent 17dea937eb
commit b671018a00
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
8 changed files with 484 additions and 732 deletions

View File

@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
npm run lint:commit -- --edit

View File

@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
npm run lint:staged
npm run test

View File

@ -1,6 +1,7 @@
{
"*": ["editorconfig-checker"],
"*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"],
"*.{json,jsonc,yml,yaml}": ["prettier --write"],
"*.{md,mdx}": ["prettier --write", "markdownlint-cli2 --fix"]
"**/*": ["editorconfig-checker", "prettier --write --ignore-unknown"],
"**/*.md": ["markdownlint-cli2 --fix --no-globs"],
"**/*.{js,jsx,ts,tsx}": [
"eslint --fix --max-warnings 0 --report-unused-disable-directives"
]
}

View File

@ -1,11 +1,11 @@
{
"config": {
"extends": "markdownlint/style/prettier",
"relative-links": true,
"default": true,
"MD033": false
"relative-links": true,
"no-inline-html": false,
},
"globs": ["**/*.{md,mdx}"],
"globs": ["**/*.md"],
"ignores": ["**/node_modules"],
"customRules": ["markdownlint-rule-relative-links"]
"customRules": ["markdownlint-rule-relative-links"],
}

View File

@ -102,7 +102,7 @@ echo "{}" > .prettierrc.json
#### `package.json`
```jsonc
```json
{
"scripts": {
"lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives --ignore-path .gitignore",

1163
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -44,7 +44,7 @@
"lint:staged": "lint-staged",
"test": "node --test test/",
"release": "semantic-release",
"postinstall": "husky install",
"postinstall": "husky",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
@ -55,25 +55,25 @@
"eslint-plugin-unicorn": "^49.0.0 || ^50.0.0"
},
"devDependencies": {
"@commitlint/cli": "18.4.3",
"@commitlint/config-conventional": "18.4.3",
"@commitlint/cli": "18.6.0",
"@commitlint/config-conventional": "18.6.0",
"@tsconfig/strictest": "2.0.2",
"@types/eslint": "8.56.0",
"@types/node": "20.10.5",
"@typescript-eslint/eslint-plugin": "6.16.0",
"@typescript-eslint/parser": "6.16.0",
"@types/eslint": "8.56.2",
"@types/node": "20.11.10",
"@typescript-eslint/eslint-plugin": "6.20.0",
"@typescript-eslint/parser": "6.20.0",
"editorconfig-checker": "5.1.2",
"eslint": "8.56.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-unicorn": "50.0.1",
"husky": "8.0.3",
"husky": "9.0.7",
"lint-staged": "15.2.0",
"markdownlint-cli2": "0.11.0",
"markdownlint-rule-relative-links": "2.1.2",
"markdownlint-cli2": "0.12.1",
"markdownlint-rule-relative-links": "2.2.0",
"pinst": "3.0.0",
"prettier": "3.1.1",
"semantic-release": "22.0.12",
"prettier": "3.2.4",
"semantic-release": "23.0.0",
"typescript": "5.3.3"
}
}

View File

@ -6,6 +6,6 @@
"module": "commonjs",
"lib": ["ESNext"],
"moduleResolution": "node",
"rootDir": "./"
}
"rootDir": "./",
},
}