@sparticuz/eslint-config
Version:
Sparticuz's shareable config for eslint
35 lines (34 loc) • 1.03 kB
JavaScript
import perfectionist from "eslint-plugin-perfectionist";
export default [
{
name: "perfectionist/recommended-natural",
...perfectionist.configs["recommended-natural"],
},
{
name: "@sparticuz/eslint-config/perfectionist.ts",
rules: {
"perfectionist/sort-interfaces": [
"error",
{ partitionByNewLine: true, type: "natural" },
],
"perfectionist/sort-named-imports": [
"error",
{
groups: ["value-import", "type-import"],
type: "natural",
},
],
"perfectionist/sort-objects": [
"error",
{ partitionByNewLine: true, type: "natural" },
],
"perfectionist/sort-union-types": [
"error",
{
groups: ["unknown", "nullish"],
type: "natural",
},
],
},
},
];