28 lines
587 B
JavaScript
28 lines
587 B
JavaScript
import next from "eslint-config-next";
|
|
import importPlugin from "eslint-plugin-import";
|
|
|
|
export default [
|
|
next,
|
|
{
|
|
plugins: {
|
|
import: importPlugin,
|
|
},
|
|
rules: {
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
groups: [
|
|
"builtin",
|
|
"external",
|
|
"internal",
|
|
["parent", "sibling", "index"],
|
|
],
|
|
"newlines-between": "always",
|
|
alphabetize: { order: "asc", caseInsensitive: true },
|
|
},
|
|
],
|
|
semi: ["error", "always"],
|
|
quotes: ["error", "double"],
|
|
},
|
|
},
|
|
];
|