Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Apr 13, 2023
1 parent 51d59d8 commit 6572ff4
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 232 deletions.
14 changes: 8 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ module.exports = {
'ash-nazg/sauron-node-script-overrides'
],
env: {
browser: false,
es6: true
browser: false
},
parserOptions: {
ecmaVersion: 2022
},
globals: {
Atomics: 'readonly',
Expand All @@ -25,14 +27,14 @@ module.exports = {
'compat/compat': 0,
'import/no-commonjs': 0,
'no-console': 0,
'node/exports-style': 0
'n/exports-style': 0
}
}, {
files: ['*.md/*.js'],
globals: {
},
rules: {
'node/no-missing-require': ['error', {
'n/no-missing-require': ['error', {
allowModules: ['integrity-matters']
}],
'no-unused-vars': ['error', {
Expand All @@ -48,9 +50,9 @@ module.exports = {
'compat/compat': 0,

// Reenabled by plugin:node/recommended-script
'no-process-exit': 0,
'n/no-process-exit': 0,

'node/exports-style': 0,
'n/exports-style': 0,

// Reenable when ESLint 8 support
'jsdoc/check-examples': 0
Expand Down
1 change: 1 addition & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if (!optionDefinitions) { // cliBasics handled
process.exit();
}

// eslint-disable-next-line unicorn/prefer-top-level-await -- CJS still
(async () => {
try {
await integrityMatters({
Expand Down
199 changes: 4 additions & 195 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6572ff4

Please sign in to comment.