Skip to content

Commit 165631f

Browse files
committed
Update linter and config
1 parent e18375c commit 165631f

File tree

4 files changed

+145
-125
lines changed

4 files changed

+145
-125
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
JavaScript/2-safe.js
2+
JavaScript/5-fp.js

eslint.config.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22

33
const init = require('eslint-config-metarhia');
44

5-
module.exports = [
6-
...init,
7-
{
8-
rules: {
9-
'class-methods-use-this': 'off',
10-
'no-self-compare': 'off',
11-
'no-extra-parens': 'off',
12-
'no-invalid-this': 'off',
13-
},
14-
},
15-
];
5+
init[0].rules['no-self-compare'] = 'off';
6+
init[0].rules['no-invalid-this'] = 'off';
7+
init[0].rules['no-extra-parens'] = 'off';
8+
init[0].ignores.push('**/*.mjs');
9+
10+
module.exports = init;

0 commit comments

Comments
 (0)