0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-11-21 13:51:28 +01:00

Add @stylistic/eslint-plugin to ESLint configuration.

This commit is contained in:
David Anson 2024-09-01 15:27:29 -07:00
parent 20384985f1
commit 235535bdb7
4 changed files with 21 additions and 7 deletions

View file

@ -2,11 +2,20 @@
import js from "@eslint/js"; import js from "@eslint/js";
import eslintPluginNode from "eslint-plugin-n"; import eslintPluginNode from "eslint-plugin-n";
import eslintPluginStylistic from "@stylistic/eslint-plugin";
import eslintPluginUnicorn from "eslint-plugin-unicorn"; import eslintPluginUnicorn from "eslint-plugin-unicorn";
export default [ export default [
js.configs.all, js.configs.all,
eslintPluginNode.configs["flat/recommended"], eslintPluginNode.configs["flat/recommended"],
eslintPluginStylistic.configs.customize({
"arrowParens": true,
"commaDangle": "never",
"jsx": false,
"quoteProps": "always",
"quotes": "double",
"semi": true
}),
eslintPluginUnicorn.configs["flat/all"], eslintPluginUnicorn.configs["flat/all"],
{ {
"languageOptions": { "languageOptions": {
@ -23,6 +32,10 @@ export default [
"sort-imports": "off", "sort-imports": "off",
"sort-keys": "off", "sort-keys": "off",
"@stylistic/array-bracket-spacing": [ "error", "always" ],
"@stylistic/dot-location": [ "error", "object" ],
"@stylistic/operator-linebreak": [ "error", "after" ],
"unicorn/no-array-callback-reference": "off", "unicorn/no-array-callback-reference": "off",
"unicorn/prefer-module": "off", "unicorn/prefer-module": "off",
"unicorn/prefer-top-level-await": "off" "unicorn/prefer-top-level-await": "off"

View file

@ -29,6 +29,7 @@
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "9.9.1", "@eslint/js": "9.9.1",
"@stylistic/eslint-plugin": "2.7.2",
"@vercel/ncc": "0.38.1", "@vercel/ncc": "0.38.1",
"eslint": "9.9.1", "eslint": "9.9.1",
"eslint-plugin-n": "17.10.2", "eslint-plugin-n": "17.10.2",