Update rules
This commit is contained in:
19
.eslintrc.js
19
.eslintrc.js
@ -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 }],
|
||||
|
Reference in New Issue
Block a user