Skip to content

Commit

Permalink
fix: separate rules should apply only to js files
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Aug 13, 2024
1 parent ab22f50 commit e68eac0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,16 @@ export default function config(rootdir) {
'@stylistic/no-multiple-empty-lines': [ 'error', { 'max': 1 }],
'@stylistic/eol-last': [ 'warn', 'always' ],
'@stylistic/no-trailing-spaces': [ 'warn', { 'ignoreComments': true }],
'camelcase': [ 'off' ],
'camelcase': [ 'off' ]
}
},
{
files: [
'**/*.js',
'**/*.cjs',
'**/*.mjs'
],
rules: {
'require-await': [ 'error' ],
'no-unused-vars': [ 'warn' ]
}
Expand Down

0 comments on commit e68eac0

Please sign in to comment.