-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3.mjs
More file actions
26 lines (24 loc) · 661 Bytes
/
3.mjs
File metadata and controls
26 lines (24 loc) · 661 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
/**
* @typedef {Object} Signature
* @property {string} name
* @property {boolean} regex
* @property {string} signature
* @property {string[]} extensions
* @property {string} level
*/
export default [
{
name: 'Unicode Private Use Area Characters',
regex: true,
signature: '[\\uE000-\\uF8FF\\U000F0000-\\U000FFFFD\\U00100000-\\U0010FFFD]',
extensions: ['js', 'mjs', 'cjs', 'ts', 'mts', 'cts', 'jsx', 'tsx', 'json', 'py'],
level: 'warning'
},
{
name: 'Excessive Whitespace',
regex: true,
signature: '\\s{80,}',
extensions: ['js', 'mjs', 'cjs', 'ts', 'mts', 'cts', 'jsx', 'tsx', 'py'],
level: 'warning'
},
]