chore: run prettier and eslint separately
This commit is contained in:
parent
78e073432f
commit
bd32dad1c5
6 changed files with 23 additions and 81 deletions
|
@ -4,36 +4,12 @@
|
|||
|
||||
module.exports = {
|
||||
parser: "@typescript-eslint/parser",
|
||||
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020,
|
||||
sourceType: "module",
|
||||
},
|
||||
|
||||
env: {
|
||||
browser: true,
|
||||
},
|
||||
|
||||
extends: ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
|
||||
|
||||
parserOptions: { ecmaVersion: 2020, sourceType: "module" },
|
||||
env: { browser: true },
|
||||
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
|
||||
plugins: ["@typescript-eslint"],
|
||||
|
||||
rules: {
|
||||
// Specify any specific ESLint rules.
|
||||
},
|
||||
|
||||
overrides: [
|
||||
{
|
||||
files: ["./*.cjs", "./*.js"],
|
||||
rules: {
|
||||
"@typescript-eslint/no-var-requires": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["./spec/**/*"],
|
||||
env: {
|
||||
browser: false,
|
||||
},
|
||||
},
|
||||
{ files: ["./*.cjs"], rules: { "@typescript-eslint/no-var-requires": "off" } },
|
||||
{ files: ["./spec/**/*"], env: { browser: false } },
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue