Skip to content

Commit a1b074c

Browse files
committed
Update deps and add common eslint config
1 parent 8f7a000 commit a1b074c

File tree

5 files changed

+134
-174
lines changed

5 files changed

+134
-174
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Luis Blanco
3+
Copyright (c) 2025 Luis Blanco
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

eslint.config.js

Lines changed: 1 addition & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,3 @@
11
'use strict';
22

3-
const js = require('@eslint/js');
4-
5-
6-
module.exports = [
7-
js.configs.recommended,
8-
{
9-
'ignores': [
10-
'src/**'
11-
],
12-
languageOptions: {
13-
'parserOptions': {
14-
'ecmaVersion': 2022,
15-
sourceType: 'commonjs'
16-
},
17-
globals: {
18-
global: true,
19-
require: 'readonly',
20-
Buffer: 'readonly',
21-
module: 'readonly',
22-
console: 'readonly',
23-
__dirname: 'readonly',
24-
process: 'readonly',
25-
},
26-
},
27-
'rules': {
28-
'arrow-parens': ['error', 'always'],
29-
'no-trailing-spaces': [
30-
'error',
31-
{
32-
'skipBlankLines': true
33-
}
34-
],
35-
'indent': [
36-
'error',
37-
'tab',
38-
{
39-
'SwitchCase': 1
40-
}
41-
],
42-
'operator-linebreak': [
43-
'error',
44-
'after',
45-
{
46-
'overrides': {
47-
'?': 'before',
48-
':': 'before'
49-
}
50-
}
51-
],
52-
'max-len': ['error', 110],
53-
'quotes': [
54-
'error',
55-
'single'
56-
],
57-
'semi': [
58-
'error',
59-
'always'
60-
],
61-
'no-multiple-empty-lines': ['error', { 'max': 3, 'maxEOF': 1, 'maxBOF': 1 }],
62-
'keyword-spacing': ['error', { 'before': true, 'after': true }],
63-
'space-before-blocks': ['error'],
64-
'space-before-function-paren': [
65-
'error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'}
66-
],
67-
'camelcase': ['error'],
68-
'no-tabs': [0],
69-
'no-unused-vars': [
70-
'error',
71-
{
72-
'argsIgnorePattern': '^_',
73-
'varsIgnorePattern': '^_',
74-
'caughtErrorsIgnorePattern': '^_'
75-
}
76-
],
77-
'global-require': [0],
78-
'no-underscore-dangle': [0],
79-
'no-plusplus': [0],
80-
'no-shadow': [0],
81-
'node/no-unpublished-require': [0],
82-
'no-process-exit': [0],
83-
'linebreak-style': [0],
84-
'node/no-missing-require': [0],
85-
'no-console': [0],
86-
'node/no-unsupported-features/es-builtins': 0,
87-
'node/no-unsupported-features/node-builtins': 0,
88-
'func-names': [
89-
'error',
90-
'never',
91-
{
92-
'generators': 'never'
93-
}
94-
]
95-
}
96-
},
97-
];
3+
module.exports = require('./utils/eslint-common');

package-lock.json

Lines changed: 66 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)