Skip to content

Commit 544b06e

Browse files
refactor: next
2 parents dd06d08 + 8e8bf5b commit 544b06e

File tree

940 files changed

+32583
-64378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

940 files changed

+32583
-64378
lines changed

.babelrc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"presets": [[
3-
"@babel/preset-env",
4-
{
5-
"targets": {
6-
"node": "current"
7-
}
8-
}
9-
],
10-
"jest"
11-
]
12-
}
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"node": "current"
8+
}
9+
}
10+
]
11+
]
12+
}

.cz-config.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@
1313
'use strict';
1414

1515
module.exports = {
16-
allowBreakingChanges: ["ast"],
17-
allowCustomScopes: true,
18-
scopes: [],
19-
// sort type values in asc
20-
types: [
21-
{ value: "ast", name: "ast: init, migrate, add, etc" },
22-
{ value: "break", name: "break: Changes that break the behaviour of the cli" },
23-
{ value: "chore", name: "chore: Updating deps, docs, linting, etc" },
24-
{ value: "cli", name: "cli: Core CLI things" },
25-
{ value: "docs", name: "docs: Documentation" },
26-
{ value: "feat", name: "feat: A new feature" },
27-
{ value: "fix", name: "fix: Bugs, typos, etc" },
28-
{ value: "misc", name: "misc: Other formats like tweaks and such" },
29-
{ value: "tests", name: "tests: Tests, jest, binTestCases, etc" },
30-
]
16+
allowBreakingChanges: ['ast'],
17+
allowCustomScopes: true,
18+
scopes: [],
19+
// sort type values in asc
20+
types: [
21+
{ value: 'ast', name: 'ast: init, migrate, add, etc' },
22+
{ value: 'break', name: 'break: Changes that break the behaviour of the cli' },
23+
{ value: 'chore', name: 'chore: Updating deps, docs, linting, etc' },
24+
{ value: 'cli', name: 'cli: Core CLI things' },
25+
{ value: 'docs', name: 'docs: Documentation' },
26+
{ value: 'feat', name: 'feat: A new feature' },
27+
{ value: 'fix', name: 'fix: Bugs, typos, etc' },
28+
{ value: 'misc', name: 'misc: Other formats like tweaks and such' },
29+
{ value: 'tests', name: 'tests: Tests, jest, etc' },
30+
{ value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature' },
31+
],
3132
};

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
root = true
22

33
[*]
4-
indent_style = tab
4+
indent_style = space
55
indent_size = 4
66
charset = utf-8
77
trim_trailing_whitespace = true

.eslintignore

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
1-
**/__testfixtures__/*
1+
__testfixtures__
22
coverage
3-
docs
43
node_modules
5-
test/binCases/errors/parse/index.js
6-
test/**/bundle.js
7-
test/**/*.bundle.js
8-
test/**/null.js
9-
test/**/main.js
10-
test/**/cliEntry.js
11-
test/**/foo.js
12-
test/binCases/config-location/webpack-babel-config/bin/es6.js
13-
packages/utils/validate-identifier.ts
4+
packages/generate-loader/lib
5+
packages/generate-plugin/lib
6+
packages/generators/lib
7+
packages/info/lib
8+
packages/init/lib
9+
packages/migrate/lib
10+
packages/serve/lib
11+
packages/utils/lib
12+
packages/webpack-scaffold/lib
13+
test/**/dist/
14+
test/**/bin/
15+
test/**/binary/
16+
test/**/index.js
17+
test/typescript/webpack.config.ts
18+
test/plugin/test-plugin/test/test-utils.js
19+
test/plugin/test-plugin/test/functional.test.js
20+
test/plugin/test-plugin/examples/simple/src/static-esm-module.js
21+
test/plugin/test-plugin/examples/simple/src/lazy-module.js
22+
test/plugin/test-plugin/examples/simple/webpack.config.js
23+
test/loader/test-loader/test/unit.test.js
24+
test/loader/test-loader/test/test-utils.js
25+
test/loader/test-loader/test/functional.test.js
26+
test/loader/test-loader/examples/simple/webpack.config.js
27+
test/loader/test-loader/examples/simple/src/static-esm-module.js
28+
test/loader/test-loader/examples/simple/src/lazy-module.js
29+
test/loader/test-loader/examples/simple/example_dist/**
30+
lib/test/loader/error-test/src/index.d.ts

.eslintrc.js

Lines changed: 37 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,39 @@
11
module.exports = {
2-
extends: ["eslint:recommended", "plugin:prettier/recommended"],
3-
plugins: ["prettier"],
4-
env: {
5-
node: true,
6-
es6: true,
7-
jest: true
8-
},
9-
parserOptions: { ecmaVersion: 2017, sourceType: "module" },
10-
rules: {
11-
"no-useless-escape": "off",
12-
"quote-props": ["error", "as-needed"],
13-
"no-dupe-keys": "error",
14-
quotes: ["error", "double"],
15-
"no-undef": "error",
16-
"no-extra-semi": "error",
17-
semi: "error",
18-
"no-template-curly-in-string": "error",
19-
"no-caller": "error",
20-
yoda: "error",
21-
eqeqeq: "error",
22-
"global-require": "off",
23-
"brace-style": "error",
24-
"key-spacing": "error",
25-
"space-in-parens": ["error", "never"],
26-
"space-infix-ops": "error",
27-
indent: ["error", "tab", { SwitchCase: 1 }],
28-
"no-extra-bind": "warn",
29-
"no-empty": "off",
30-
"no-multiple-empty-lines": "error",
31-
"no-multi-spaces": "error",
32-
"no-process-exit": "off",
33-
"no-trailing-spaces": "error",
34-
"no-use-before-define": "off",
35-
"no-unused-vars": ["error", { args: "none" }],
36-
"no-unsafe-negation": "error",
37-
"no-loop-func": "warn",
38-
"space-before-function-paren": ["error", "never"],
39-
"space-before-blocks": "error",
40-
"object-curly-spacing": ["error", "always"],
41-
"object-curly-newline": ["error", { consistent: true }],
42-
"keyword-spacing": [
43-
"error",
44-
{
45-
after: true,
46-
overrides: {
47-
const: { after: true },
48-
try: { after: true },
49-
throw: { after: true },
50-
case: { after: true },
51-
return: { after: true },
52-
finally: { after: true },
53-
do: { after: true }
54-
}
55-
}
56-
],
57-
"no-console": "off",
58-
"valid-jsdoc": "error",
59-
"eol-last": ["error", "always"],
60-
"newline-per-chained-call": "off"
61-
}
2+
root: true,
3+
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended', 'prettier'],
4+
parserOptions: { ecmaVersion: 2018, sourceType: 'script' },
5+
plugins: ['node'],
6+
env: {
7+
node: true,
8+
es6: true,
9+
jest: true,
10+
},
11+
rules: {
12+
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }],
13+
'no-process-exit': 'off',
14+
'no-template-curly-in-string': 'error',
15+
'no-caller': 'error',
16+
'no-extra-bind': 'error',
17+
'no-loop-func': 'error',
18+
},
19+
overrides: [
20+
{
21+
settings: {
22+
node: {
23+
tryExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
24+
},
25+
},
26+
files: ['**/*.ts'],
27+
extends: [
28+
'plugin:@typescript-eslint/eslint-recommended',
29+
'plugin:@typescript-eslint/recommended',
30+
'prettier/@typescript-eslint',
31+
],
32+
parser: '@typescript-eslint/parser',
33+
plugins: ['@typescript-eslint'],
34+
rules: {
35+
'node/no-unsupported-features/es-syntax': 'off',
36+
},
37+
},
38+
],
6239
};

.fitcommitjsrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)