-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy patheslint.config.mjs
More file actions
28 lines (26 loc) · 891 Bytes
/
eslint.config.mjs
File metadata and controls
28 lines (26 loc) · 891 Bytes
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
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
export default tseslint.config({
files: ['**/*.ts'], // Applies to TypeScript files
languageOptions: {
parser: tsParser,
parserOptions: {
project: './tsconfig.types.json', // Ensure this path is correct
tsconfigRootDir: './', // This helps in locating tsconfig.json
},
},
plugins: {
'@typescript-eslint': tsPlugin,
prettier: eslintPluginPrettierRecommended.plugins.prettier,
},
rules: {
'no-console': 'off',
'arrow-parens': [2, 'as-needed'],
// 'prettier/prettier': 2,
},
ignores: ['dist', 'node_modules', '.eslintrc.js', 'jest.config.js', 'lib'],
});