-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
84 lines (80 loc) · 1.65 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
'use strict'
const path = require('node:path')
const {
commonJsExtensions,
esmExtensionsWhenTypeModule,
} = 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'),
},
plugins: [],
rules: {
'spellcheck/spell-checker': [
'warn',
{
comments: true,
strings: true,
identifiers: true,
templates: true,
lang: 'en_US',
skipWords: [
'checkbox',
'unary',
'convertable',
'baseexponent',
'typeof',
'str',
'clipboardy',
'esm',
'cjs',
'iife',
'dts',
'tsconfig',
'minify',
'rimraf',
],
},
],
},
overrides: [
{
files: commonJsExtensions,
extends: ['polioan/configurations/commonJS'],
},
{
files: esmExtensionsWhenTypeModule,
extends: ['polioan/configurations/esmModules'],
},
{
files: ['examples/**'],
rules: {
'no-console': 'off',
},
},
{
files: ['.eslintrc.cjs'],
rules: {
'spellcheck/spell-checker': 'off',
},
},
],
}
module.exports = config