-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(all): [v16] Bump eslint and related packages, bump prettier and…
… run on codebase (#927) * bumping oclif packages * bump more packages * upgrade Yeoman enviornment to latest v3 * dotenv added a package.json * more package upgrades * use promises instead of callback * revert jsonschema upgrade as it breaks a test * bump * upgrade Lerna to v8 * upgrade prettier to latest v3 * run prettier with trailingComma: es5 * upgrade husky * husky followups * Revert "upgrade prettier to latest v3" This reverts commit 840d0ae. * Revert "run prettier with trailingComma: es5" This reverts commit df8a16f. * bump mocha, dotenv and oclif core patch * undo convert changes * bump eslint and related packages * prettier bump, run prettier * fix eslintignore * fix test * run over example-apps as well * rebuild yarn.lock
- Loading branch information
Showing
273 changed files
with
2,914 additions
and
3,015 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,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/*", | ||
|
||
], | ||
}, ...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, | ||
}, | ||
}]; |
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
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
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
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
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
Oops, something went wrong.