-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(all): [v16] Bump eslint and related packages, bump prettier and run on codebase #927
Changes from all commits
6ba9bcf
031c21f
13dc50d
34b54a9
f95dd7b
a128bcb
69f205a
adf14e2
24d5c39
840d0ae
df8a16f
9a0b9ef
8c4384d
3926632
9f04ff6
549acae
6612ca0
4aca06f
56e2791
f9a0e95
707a40b
6812b4e
9a14d13
bd14c99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
const mocha = require("eslint-plugin-mocha"); | ||
const globals = require("globals"); | ||
const js = require("@eslint/js"); | ||
|
||
const { | ||
FlatCompat, | ||
} = require("@eslint/eslintrc"); | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
module.exports = [{ | ||
ignores: [ | ||
// this needs to combine all other eslintignore files so that lint-staged knows what to ignore | ||
"packages/cli/scaffold/*.js", | ||
"packages/cli/src/generators/templates/**/*.template.js", | ||
"**/.yarn", | ||
"example-apps/onedrive/test/*", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: I added this new ignore rule for onedrive example app tests; there seems to be some issue with eslint trying to read the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yikes, yeah that seems reasonable! |
||
|
||
], | ||
}, ...compat.extends("eslint:recommended", "standard", "prettier"), { | ||
plugins: { | ||
mocha, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, { | ||
files: [ | ||
"packages/*/test/**/*.js", | ||
"packages/*/smoke-test/**/*.js", | ||
"packages/*/integration-test/**/*.js", | ||
"packages/cli/src/tests/**/*.js", | ||
"packages/cli/src/smoke-tests/**/*.js", | ||
], | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.mocha, | ||
}, | ||
}, | ||
|
||
rules: { | ||
"mocha/no-exclusive-tests": "error", | ||
}, | ||
}, { | ||
files: ["packages/cli/snippets/**/*.js"], | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.mocha, | ||
}, | ||
}, | ||
|
||
rules: { | ||
"no-unused-vars": 0, | ||
}, | ||
}]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved
.eslintignore
into thisignores
property as required by eslint 9