-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
21 lines (21 loc) · 979 Bytes
/
.eslintrc.cjs
File metadata and controls
21 lines (21 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript'
],
env: { node: true, es2022: true, jest: true },
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { 'import/resolver': { typescript: { project: ['./apps/pwrprogram/tsconfig.json', './packages/shared/tsconfig.json'] } } },
rules: {
'import/order': ['warn', { 'newlines-between': 'always', alphabetize: { order: 'asc', caseInsensitive: true } }],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }]
},
ignorePatterns: ['dist', 'node_modules', '**/*.js']
};