-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.linter-bundle.js
56 lines (55 loc) · 1.41 KB
/
.linter-bundle.js
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
const snippets = {
lowerCase: '[a-z]*([a-z0-9])',
upperCase: '[A-Z]*([A-Z0-9])',
snakeCase: '[a-z]*(*([a-z0-9]_)+([a-z0-9]))',
screamingSnakeCase: '[A-Z]*(*([A-Z0-9]_)+([A-Z0-9]))',
kebabCase: '[a-z]*(*([a-z0-9]-)+([a-z0-9]))',
camelCase: '[a-z]*([a-zA-Z0-9])',
pascalCase: '[A-Z]*([a-zA-Z0-9])'
};
export default {
verbose: true,
timing: true,
files: {
restrictions: [
{
basePath: '.',
allowed: [
'.git/**',
'.github/FUNDING.yml',
'.vscode/settings.json',
`eslint/rules/package.json`,
`eslint/rules/${snippets.kebabCase}.{js,md}`,
`eslint/{index.cjs,overrides-${snippets.kebabCase}.cjs}`,
'files/index.js',
`helper/${snippets.kebabCase}.{js,cjs,d.ts}`,
'markdownlint/base.json',
'node_modules/**',
'stylelint/index.cjs',
`stylelint/plugins/stylelint-${snippets.kebabCase}.js`,
`stylelint/plugins/stylelint-15.11.0-stylistic/**/{${snippets.camelCase}.cjs,README.md,LICENSE}`,
'.editorconfig',
'.eslintrc.cjs',
'.gitattributes',
'.gitignore',
'.linter-bundle.js',
'.linter-bundle.schema.json',
'.markdownlint.json',
'.npmignore',
'*.md',
'eslint.cjs',
'LICENSE',
'lint.js',
'package-lock.json',
'package.json',
'stylelint.cjs',
'stylelint.config.cjs',
'test-stylelint.js',
'tsconfig.json',
'vscode-eslint-1.png',
'vscode-eslint-2.png'
]
}
]
}
}