Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 9d0e325

Browse files
authored
Merge pull request #29 from tdukart/eslint-config-airbnb-extended
Replace eslint settings
2 parents affc42a + 83ed6cd commit 9d0e325

6 files changed

Lines changed: 4359 additions & 1434 deletions

File tree

.eslintrc.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.17.3
1+
v20

eslint.config.mjs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import path from 'node:path';
2+
3+
import {includeIgnoreFile} from '@eslint/compat';
4+
import js from '@eslint/js';
5+
import {configs, plugins} from 'eslint-config-airbnb-extended';
6+
7+
const gitignorePath = path.resolve('.', '.gitignore');
8+
9+
const jsConfig = [
10+
// ESLint Recommended Rules
11+
{
12+
name: 'js/config',
13+
...js.configs.recommended,
14+
},
15+
// Stylistic Plugin
16+
plugins.stylistic,
17+
// Import X Plugin
18+
plugins.importX,
19+
// Airbnb Base Recommended Config
20+
...configs.base.recommended,
21+
{
22+
rules: {
23+
'no-console': [0],
24+
'@stylistic/max-len': ['error', {code: 120}]
25+
}
26+
}
27+
];
28+
29+
const nodeConfig = [
30+
// Node Plugin
31+
plugins.node,
32+
// Airbnb Node Recommended Config
33+
...configs.node.recommended,
34+
];
35+
36+
export default [
37+
// Ignore .gitignore files/folder in eslint
38+
includeIgnoreFile(gitignorePath),
39+
// Javascript Config
40+
...jsConfig,
41+
// Node Config
42+
...nodeConfig,
43+
];

0 commit comments

Comments
 (0)