1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2024-10-05 03:36:10 +02:00

Compare commits

..

No commits in common. "b671018a0051ea4a046b4953ce071fc037fdb3e1" and "7f3c152e61938c53c1d95ec374466c201ed05a65" have entirely different histories.

9 changed files with 731 additions and 483 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
# MIT License # MIT License
Copyright (c) Théo LUDWIG <contact@theoludwig.fr> Copyright (c) Théo LUDWIG
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

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

1159
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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

View File

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