Skip to content

Commit f32871e

Browse files
committed
docs: update docs
1 parent 9e35a04 commit f32871e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import checkFile from 'eslint-plugin-check-file';
3434

3535
export default [
3636
{
37-
// optional: add this processor to files which not processed by other processors
38-
files: ['**/*.yaml', '**/*.webp', '**/.gitignore'],
37+
// optional: add this processor to files which not processed by other processors but still require linting
38+
files: ['**/*.yaml', '**/*.webp'],
3939
processor: 'check-file/eslint-processor-check-file',
4040
},
4141
{

examples/basic/eslint.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import checkFile from '../../lib/index.js';
22

33
export default [
4+
{
5+
files: ['src/**/*.webp', 'src/**/*.md', 'src/**/*.css'],
6+
processor: 'check-file/eslint-processor-check-file',
7+
},
48
{
59
files: ['src/**/*.*'],
610
plugins: {
711
'check-file': checkFile,
812
},
9-
processor: 'check-file/eslint-processor-check-file',
1013
rules: {
1114
'check-file/no-index': 'error',
1215
'check-file/filename-blocklist': [
@@ -28,6 +31,9 @@ export default [
2831
{
2932
'**/*.{jsx,tsx}': 'PASCAL_CASE',
3033
'**/*.{js,ts}': 'CAMEL_CASE',
34+
'**/*.css': 'PASCAL_CASE',
35+
'**/*.md': 'FLAT_CASE',
36+
'**/*.webp': 'KEBAB_CASE',
3137
},
3238
{
3339
ignoreMiddleExtensions: true,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Button.module.css */

0 commit comments

Comments
 (0)