-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
31 lines (30 loc) · 944 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* .eslintrc.cjs */
module.exports = {
root: true, // Ensures ESLint doesn't look beyond this folder for configuration
parser: '@typescript-eslint/parser', // Tells ESLint to parse TypeScript
parserOptions: {
ecmaVersion: 'latest', // Enables modern JavaScript features
sourceType: 'module', // Allows import/export statements,
project: './tsconfig.json', // Tells ESLint to use the tsconfig.json file
},
extends: [
'eslint:recommended', // Basic ESLint rules
'plugin:@typescript-eslint/recommended', // Adds TypeScript-specific rules
'prettier', // Disables rules conflicting with Prettier
],
ignorePatterns: [
'.eslintrc.cjs',
'scripts',
'src/utils/lodash/*',
'node_modules',
'dist',
'dist-cjs',
'*.js',
'*.cjs',
'*.d.ts',
],
rules: {
// You can add or override any rules here, for example:
// "no-console": "warn", // Warn when using console.log
},
};