-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
134 changed files
with
5,069 additions
and
5,509 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,24 +1,19 @@ | ||
**/__testfixtures__/* | ||
__testfixtures__ | ||
coverage | ||
docs | ||
node_modules | ||
test/binCases/errors/parse/index.js | ||
test/**/bundle.js | ||
test/**/*.bundle.js | ||
test/**/null.js | ||
test/**/main.js | ||
test/**/cliEntry.js | ||
test/**/foo.js | ||
test/**/**/**/bin/ | ||
test/**/**/**/binary/ | ||
packages/generate-loader/lib | ||
packages/generate-plugin/lib | ||
packages/generators/lib | ||
packages/info/lib | ||
packages/init/lib | ||
packages/migrate/lib | ||
packages/package-utils/lib | ||
packages/serve/lib | ||
packages/utils/lib | ||
packages/webpack-scaffold/lib | ||
test/**/dist/ | ||
test/**/**/dist/ | ||
test/**/**/**/dist/ | ||
test/**/**/index.js | ||
test/binCases/config-location/webpack-babel-config/bin/es6.js | ||
packages/**/lib | ||
packages/utils/validate-identifier.ts | ||
|
||
|
||
lib/utils/interactive.js | ||
test/**/bin/ | ||
test/**/binary/ | ||
test/**/index.js | ||
test/typescript/webpack.config.ts |
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 |
---|---|---|
@@ -1,62 +1,39 @@ | ||
module.exports = { | ||
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended'], | ||
root: true, | ||
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended', 'prettier'], | ||
parserOptions: { ecmaVersion: 2018, sourceType: 'script' }, | ||
plugins: ['node'], | ||
env: { | ||
node: true, | ||
es6: true, | ||
jest: true, | ||
}, | ||
root: true, | ||
plugins: ['node', 'prettier'], | ||
parserOptions: { ecmaVersion: 2020, sourceType: 'module' }, | ||
|
||
rules: { | ||
'no-useless-escape': 'off', | ||
'quote-props': ['error', 'as-needed'], | ||
'no-dupe-keys': 'error', | ||
'no-undef': 'error', | ||
'no-extra-semi': 'error', | ||
quotes: ['error', 'single'], | ||
'prettier/prettier': ['error', { singleQuote: true }], | ||
semi: 'error', | ||
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }], | ||
'no-process-exit': 'off', | ||
'no-template-curly-in-string': 'error', | ||
'no-caller': 'error', | ||
'global-require': 'off', | ||
'brace-style': 'error', | ||
'key-spacing': 'error', | ||
'space-in-parens': ['error', 'never'], | ||
'space-infix-ops': 'error', | ||
'no-extra-bind': 'warn', | ||
'no-empty': 'off', | ||
'no-multiple-empty-lines': 'error', | ||
'no-multi-spaces': 'error', | ||
'no-process-exit': 'off', | ||
'no-trailing-spaces': 'error', | ||
'no-use-before-define': 'off', | ||
'no-unused-vars': ['error', { args: 'none' }], | ||
'no-unsafe-negation': 'error', | ||
'no-loop-func': 'warn', | ||
'object-curly-spacing': ['error', 'always'], | ||
'object-curly-newline': ['error', { consistent: true }], | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/ban-ts-ignore': 'off', | ||
'keyword-spacing': [ | ||
'error', | ||
{ | ||
after: true, | ||
overrides: { | ||
const: { after: true }, | ||
try: { after: true }, | ||
throw: { after: true }, | ||
case: { after: true }, | ||
return: { after: true }, | ||
finally: { after: true }, | ||
do: { after: true }, | ||
'no-extra-bind': 'error', | ||
'no-loop-func': 'error', | ||
}, | ||
overrides: [ | ||
{ | ||
settings: { | ||
node: { | ||
tryExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json'], | ||
}, | ||
}, | ||
], | ||
'no-console': 'off', | ||
'valid-jsdoc': 'error', | ||
'eol-last': ['error', 'always'], | ||
'newline-per-chained-call': 'off', | ||
}, | ||
files: ['**/*.ts'], | ||
extends: [ | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier/@typescript-eslint', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
rules: { | ||
'node/no-unsupported-features/es-syntax': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
hooks: { | ||
'pre-commit': 'lint-staged', | ||
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
'*.{json,md,yml,css}': ['prettier --write'], | ||
'*.{js,ts}': ['eslint --fix'], | ||
}; |
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 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { loaderGenerator } from "@webpack-cli/generators"; | ||
import yeoman from "yeoman-environment"; | ||
import { loaderGenerator } from '@webpack-cli/generators'; | ||
import yeoman from 'yeoman-environment'; | ||
|
||
/** | ||
* Runs a yeoman generator to create a new webpack loader project | ||
* @returns {void} | ||
*/ | ||
|
||
export default function loaderCreator(): void { | ||
const env = yeoman.createEnv(); | ||
const generatorName = "webpack-loader-generator"; | ||
const env = yeoman.createEnv(); | ||
const generatorName = 'webpack-loader-generator'; | ||
|
||
env.registerStub(loaderGenerator, generatorName); | ||
env.registerStub(loaderGenerator, generatorName); | ||
|
||
env.run(generatorName); | ||
env.run(generatorName); | ||
} |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { pluginGenerator } from "@webpack-cli/generators"; | ||
import yeoman from "yeoman-environment"; | ||
import { pluginGenerator } from '@webpack-cli/generators'; | ||
import yeoman from 'yeoman-environment'; | ||
|
||
/** | ||
* Runs a yeoman generator to create a new webpack plugin project | ||
* @returns {void} | ||
*/ | ||
|
||
export default function pluginCreator(): void { | ||
const env = yeoman.createEnv(); | ||
const generatorName = "webpack-plugin-generator"; | ||
const env = yeoman.createEnv(); | ||
const generatorName = 'webpack-plugin-generator'; | ||
|
||
env.registerStub(pluginGenerator, generatorName); | ||
env.registerStub(pluginGenerator, generatorName); | ||
|
||
env.run(generatorName); | ||
env.run(generatorName); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.