Update rules

This commit is contained in:
Alex
2024-08-13 03:37:00 -04:00
parent 191848fdca
commit b0cc4a1525
21 changed files with 106 additions and 53 deletions

View File

@ -1,6 +1,6 @@
module.exports = {
root: true,
plugins: ['unicorn', 'jsdoc'],
plugins: ['unicorn', 'jsdoc', 'import-x'],
env: { node: true, browser: true, es2023: true },
reportUnusedDisableDirectives: true,
parserOptions: {
@ -14,7 +14,6 @@ module.exports = {
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:jsdoc/recommended-typescript',
],
overrides: [
{
files: ['repl.ts', 'scripts/**/*.ts'],
@ -31,6 +30,22 @@ module.exports = {
},
],
rules: {
'import-x/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
],
'newlines-between': 'always-and-inside-groups',
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
'arrow-body-style': ['error', 'as-needed'],
'class-methods-use-this': 'warn',
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],