Skip to content

Commit 396d6f5

Browse files
committed
chore: @putout/plugin-nodejs: lint
1 parent 46421de commit 396d6f5

4 files changed

Lines changed: 26 additions & 19 deletions

File tree

packages/plugin-nodejs/.eslintrc.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/plugin-nodejs/.putout.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
}]
99
},
1010
"match": {
11+
".filesystem.json": {
12+
"eslint/convert-rc-to-flat": "on"
13+
},
1114
"*.md": {
1215
"nodejs": "off"
1316
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
'use strict';
2+
3+
const {matchToFlat} = require('@putout/eslint-flat');
4+
const {safeAlign} = require('eslint-plugin-putout/config');
5+
6+
const match = {
7+
'*.md{js}': {
8+
'n/no-deprecated-api': 'off',
9+
'n/no-unsupported-features/node-builtins': 'off',
10+
},
11+
};
12+
13+
module.exports = [
14+
...safeAlign, {
15+
rules: {
16+
'no-useless-return': 'off',
17+
},
18+
},
19+
...matchToFlat(match),
20+
];
21+
22+
module.exports.match = match;

packages/plugin-nodejs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"nodejs"
4040
],
4141
"devDependencies": {
42+
"@putout/eslint-flat": "^1.1.1",
4243
"@putout/plugin-declare": "*",
4344
"@putout/plugin-putout": "*",
4445
"@putout/plugin-typescript": "*",

0 commit comments

Comments
 (0)