Skip to content

Commit 6b4d1ca

Browse files
author
Abdelhalim Dadouche
committed
updating eslint config
1 parent d9c0caa commit 6b4d1ca

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

.eslintignore

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

.eslintrc.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ module.exports = {
4242
"@typescript-eslint/eslint-plugin",
4343
"eslint-plugin-tsdoc"
4444
],
45-
extends: [
45+
extends: [
4646
'plugin:@typescript-eslint/recommended'
4747
],
48-
parser: '@typescript-eslint/parser',
48+
parser: '@typescript-eslint/parser',
4949
parserOptions: {
5050
project: "./tsconfig.json",
5151
tsconfigRootDir: __dirname,
@@ -54,5 +54,15 @@ module.exports = {
5454
},
5555
rules: {
5656
"tsdoc/syntax": "warn"
57-
}
57+
},
58+
ignorePatterns: [
59+
"npm_modules/",
60+
"dist/",
61+
"cdk.out/",
62+
".eslintrc.js",
63+
"package.json",
64+
"package-lock.json",
65+
"tsconfig.json",
66+
"typedoc.json"
67+
],
5868
};

eslint.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{files: ["**/*.{js,mjs,cjs,ts}"]},
9+
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
10+
{languageOptions: { globals: globals.browser }},
11+
pluginJs.configs.recommended,
12+
...tseslint.configs.recommended,
13+
];

0 commit comments

Comments
 (0)