-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
51 lines (47 loc) · 1.11 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
'use strict'
const path = require('node:path')
const { jsExtensions } = require('eslint-config-polioan/common/constants')
/**
* @type {import('eslint').Linter.Config}
*/
const config = {
extends: [
'polioan/configurations/comments',
'polioan/configurations/general',
'polioan/configurations/generalTypes',
'polioan/configurations/regex',
'polioan/configurations/spellcheck',
],
env: {
browser: true,
node: true,
es2021: true,
},
settings: {},
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
project: path.join(__dirname, 'tsconfig.json'),
ecmaFeatures: {
jsx: true,
},
},
plugins: [],
rules: {
'@typescript-eslint/no-confusing-void-expression': ['warn'],
'@typescript-eslint/no-misused-promises': ['off'],
'@typescript-eslint/no-unnecessary-condition': ['warn'],
},
overrides: [
{
files: ['*.cjs'],
extends: ['polioan/configurations/commonJS'],
},
{
files: jsExtensions,
extends: ['polioan/configurations/javascriptOnly'],
},
],
}
module.exports = config