2024-04-18 07:34:41 +02:00
|
|
|
/* eslint-disable n/no-unpublished-import */
|
|
|
|
|
|
|
|
import js from "@eslint/js";
|
|
|
|
import eslintPluginNode from "eslint-plugin-n";
|
2024-09-02 00:27:29 +02:00
|
|
|
import eslintPluginStylistic from "@stylistic/eslint-plugin";
|
2024-04-18 07:34:41 +02:00
|
|
|
import eslintPluginUnicorn from "eslint-plugin-unicorn";
|
|
|
|
|
|
|
|
export default [
|
|
|
|
js.configs.all,
|
|
|
|
eslintPluginNode.configs["flat/recommended"],
|
2024-09-02 00:27:29 +02:00
|
|
|
eslintPluginStylistic.configs.customize({
|
|
|
|
"arrowParens": true,
|
|
|
|
"commaDangle": "never",
|
|
|
|
"jsx": false,
|
|
|
|
"quoteProps": "always",
|
|
|
|
"quotes": "double",
|
|
|
|
"semi": true
|
|
|
|
}),
|
2024-04-18 07:34:41 +02:00
|
|
|
eslintPluginUnicorn.configs["flat/all"],
|
|
|
|
{
|
|
|
|
"linterOptions": {
|
|
|
|
"reportUnusedDisableDirectives": true
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"max-statements": "off",
|
|
|
|
"no-magic-numbers": "off",
|
|
|
|
"no-ternary": "off",
|
|
|
|
"one-var": "off",
|
|
|
|
"sort-imports": "off",
|
|
|
|
"sort-keys": "off",
|
2024-09-02 00:27:29 +02:00
|
|
|
|
|
|
|
"@stylistic/array-bracket-spacing": [ "error", "always" ],
|
|
|
|
"@stylistic/dot-location": [ "error", "object" ],
|
|
|
|
"@stylistic/operator-linebreak": [ "error", "after" ],
|
|
|
|
|
2024-04-18 07:34:41 +02:00
|
|
|
"unicorn/no-array-callback-reference": "off",
|
|
|
|
"unicorn/prefer-module": "off",
|
|
|
|
"unicorn/prefer-top-level-await": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|