forge/.eslintrc.json

146 строки
3.6 KiB
JSON
Исходник Постоянная ссылка Обычный вид История

chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
{
"plugins": ["mocha", "import"],
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
"env": {
"mocha": true
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
},
"extends": ["@malept/eslint-config/src/common"],
"globals": {
"NodeJS": "readonly"
},
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
"rules": {
"no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"vars": "all"
}
],
"mocha/no-exclusive-tests": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true,
"allowSeparatedGroups": true,
"ignoreCase": true
}
],
"import/no-named-as-default": "error"
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
},
"overrides": [
{
"files": ["**/*.ts"],
"extends": ["@malept/eslint-config/src/typescript"],
"parserOptions": {
"project": ["./tsconfig.base.json"]
},
"rules": {
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"vars": "all"
}
]
}
},
2023-08-17 03:33:58 +03:00
{
"files": ["ci/**/*.js"],
"rules": {
"node/no-unpublished-require": "off"
}
},
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
{
"files": ["packages/*/*/test/**/*_spec*.ts", "packages/*/*/test/fixture/**/*.ts"],
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
"rules": {
"global-require": "off",
"import/no-dynamic-require": "off",
2023-08-17 03:33:58 +03:00
"node/no-extraneous-import": "off",
"node/no-unpublished-import": "off",
"node/no-unpublished-require": "off"
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
}
},
{
"files": ["packages/api/cli/src/**/*.ts", "packages/external/create-electron-app/src/**/*.ts", "tools/*.{js,ts}"],
"rules": {
"no-process-exit": "off",
"node/shebang": [
"error",
{
"convertPath": {
"src/*.ts": ["src/(.+?)\\.ts$", "dist/$1.js"]
}
}
]
}
},
{
"files": ["packages/api/core/test/**/*.ts", "packages/maker/*/src/Maker*.ts"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["packages/*/*/test/fixture/**/*.js", "packages/*/*/test/fixtures/**/*.js"],
"rules": {
"node/no-extraneous-require": "off",
"node/no-missing-require": "off",
"node/no-unpublished-require": "off"
}
},
{
"files": ["packages/plugin/webpack/test/fixtures/**/*.js"],
"rules": {
"no-process-exit": "off",
"no-undef": "off",
"import/no-unresolved": "off",
"node/no-missing-import": "off",
"node/no-unpublished-import": "off",
"node/no-unsupported-features/es-syntax": "off"
}
},
{
"files": ["packages/utils/web-multi-logger/static/*.js"],
"env": {
"browser": true,
"node": false
}
},
{
"files": ["tools/*.{js,ts}"],
"rules": {
"node/no-unpublished-import": "off",
"node/no-unpublished-require": "off",
"node/shebang": "off"
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
}
},
{
"files": ["packages/plugin/vite/src/**/*.ts"],
"rules": {
"node/no-unpublished-import": [
"error",
{
"allowModules": ["vite"]
}
]
}
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
}
]
chore: replace tslint with eslint to lint mocha tests (#590) * chore: re-add eslint to lint mocha tests * Upgrade typescript-eslint-parser to ^22 * Update tools/ to conform to eslint-config-airbnb * Fix some ESLint warnings for async-ora * Fix ESLint warnings for types * Fix ESLint warnings for web-multi-logger * Fix ESLint warnings for cli * Add eslint-config-airbnb & eslint-plugin-typescript * Apparently you can't DRY up commander directives * Use the new typescript-eslint scoped packages * Explicitly adding the parser is no longer necessary * Fix ESLint warnings for deb * Fix ESLint warnings for rpm * Fix ESLint warnings for snap * Fix ESLint warnings for flatpak * Fix ESLint warnings for maker-base * Fix ESLint warnings for maker-zip * Fix ESLint warnings for maker-pkg * Fix ESLint warnings for maker-dmg * Fix ESLint warnings for maker-squirrel * Fix ESLint warnings for maker-wix * Fix ESLint warnings for maker-appx * Use no-unused-vars for Typescript as directed * Fix ESLint warnings for core * Fix ESLint warnings for publisher modules * Fix ESLint warnings for plugin modules * Fix ESLint warnings for installer modules * Drop tslint * Fix typings * Remove unused import * Ignore empty constructors * Upgrade typescript-eslint packages * Disable class-methods-use-this rule globally * Remove bare eslint-disable-line directives * Upgrade eslint & friends * Fix linting errors * Fix yarn.lock * Stop making @types/webpack out of sync * chore: drop @types/ora, typings are bundled * Fix TypeScript errors * Fix no-unresolved lint errors on Windows * Ignore camelcase instances that are part of the GitHub API * Ignore import/no-cycle rules * Make SinonStub more specific * Fix forgeConfigIsValidFilePath * Reel it in
2019-03-22 03:46:24 +03:00
}