forked from ethereumjs/ethereumjs-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereumjs#2701 from ethereumjs/develop-v7-merge-m…
…aster Merge develop-v7 into master (v2?) (V7 releases)
- Loading branch information
Showing
497 changed files
with
17,180 additions
and
13,586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const fs = require('fs') | ||
const path = require('path') | ||
|
||
const ruleFiles = fs | ||
.readdirSync(__dirname) | ||
.filter((file) => file !== 'index.js' && !file.endsWith('test.js')) | ||
|
||
const rules = Object.fromEntries( | ||
ruleFiles.map((file) => [path.basename(file, '.js'), require('./' + file)]) | ||
) | ||
|
||
module.exports = { rules } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// @ts-no-check | ||
/** @type {import('eslint').Rule.RuleModule} */ | ||
module.exports = { | ||
create(context) { | ||
return { | ||
Identifier: function (node) { | ||
if (node.name === 'Buffer') { | ||
context.report({ | ||
node: node.parent, | ||
message: 'No Buffers - use Uint8Array instead', | ||
}) | ||
} | ||
}, | ||
} | ||
}, | ||
} |
Oops, something went wrong.