Skip to content

Commit

Permalink
refactor: next
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Oct 10, 2020
2 parents dd06d08 + 8e8bf5b commit 544b06e
Show file tree
Hide file tree
Showing 940 changed files with 32,583 additions and 64,378 deletions.
22 changes: 11 additions & 11 deletions .babelrc
@@ -1,12 +1,12 @@
{
"presets": [[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
"jest"
]
}
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
31 changes: 16 additions & 15 deletions .cz-config.js
Expand Up @@ -13,19 +13,20 @@
'use strict';

module.exports = {
allowBreakingChanges: ["ast"],
allowCustomScopes: true,
scopes: [],
// sort type values in asc
types: [
{ value: "ast", name: "ast: init, migrate, add, etc" },
{ value: "break", name: "break: Changes that break the behaviour of the cli" },
{ value: "chore", name: "chore: Updating deps, docs, linting, etc" },
{ value: "cli", name: "cli: Core CLI things" },
{ value: "docs", name: "docs: Documentation" },
{ value: "feat", name: "feat: A new feature" },
{ value: "fix", name: "fix: Bugs, typos, etc" },
{ value: "misc", name: "misc: Other formats like tweaks and such" },
{ value: "tests", name: "tests: Tests, jest, binTestCases, etc" },
]
allowBreakingChanges: ['ast'],
allowCustomScopes: true,
scopes: [],
// sort type values in asc
types: [
{ value: 'ast', name: 'ast: init, migrate, add, etc' },
{ value: 'break', name: 'break: Changes that break the behaviour of the cli' },
{ value: 'chore', name: 'chore: Updating deps, docs, linting, etc' },
{ value: 'cli', name: 'cli: Core CLI things' },
{ value: 'docs', name: 'docs: Documentation' },
{ value: 'feat', name: 'feat: A new feature' },
{ value: 'fix', name: 'fix: Bugs, typos, etc' },
{ value: 'misc', name: 'misc: Other formats like tweaks and such' },
{ value: 'tests', name: 'tests: Tests, jest, etc' },
{ value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature' },
],
};
2 changes: 1 addition & 1 deletion .editorconfig
@@ -1,7 +1,7 @@
root = true

[*]
indent_style = tab
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
Expand Down
39 changes: 28 additions & 11 deletions .eslintignore
@@ -1,13 +1,30 @@
**/__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/binCases/config-location/webpack-babel-config/bin/es6.js
packages/utils/validate-identifier.ts
packages/generate-loader/lib
packages/generate-plugin/lib
packages/generators/lib
packages/info/lib
packages/init/lib
packages/migrate/lib
packages/serve/lib
packages/utils/lib
packages/webpack-scaffold/lib
test/**/dist/
test/**/bin/
test/**/binary/
test/**/index.js
test/typescript/webpack.config.ts
test/plugin/test-plugin/test/test-utils.js
test/plugin/test-plugin/test/functional.test.js
test/plugin/test-plugin/examples/simple/src/static-esm-module.js
test/plugin/test-plugin/examples/simple/src/lazy-module.js
test/plugin/test-plugin/examples/simple/webpack.config.js
test/loader/test-loader/test/unit.test.js
test/loader/test-loader/test/test-utils.js
test/loader/test-loader/test/functional.test.js
test/loader/test-loader/examples/simple/webpack.config.js
test/loader/test-loader/examples/simple/src/static-esm-module.js
test/loader/test-loader/examples/simple/src/lazy-module.js
test/loader/test-loader/examples/simple/example_dist/**
lib/test/loader/error-test/src/index.d.ts
97 changes: 37 additions & 60 deletions .eslintrc.js
@@ -1,62 +1,39 @@
module.exports = {
extends: ["eslint:recommended", "plugin:prettier/recommended"],
plugins: ["prettier"],
env: {
node: true,
es6: true,
jest: true
},
parserOptions: { ecmaVersion: 2017, sourceType: "module" },
rules: {
"no-useless-escape": "off",
"quote-props": ["error", "as-needed"],
"no-dupe-keys": "error",
quotes: ["error", "double"],
"no-undef": "error",
"no-extra-semi": "error",
semi: "error",
"no-template-curly-in-string": "error",
"no-caller": "error",
yoda: "error",
eqeqeq: "error",
"global-require": "off",
"brace-style": "error",
"key-spacing": "error",
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
indent: ["error", "tab", { SwitchCase: 1 }],
"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",
"space-before-function-paren": ["error", "never"],
"space-before-blocks": "error",
"object-curly-spacing": ["error", "always"],
"object-curly-newline": ["error", { consistent: true }],
"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-console": "off",
"valid-jsdoc": "error",
"eol-last": ["error", "always"],
"newline-per-chained-call": "off"
}
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,
},
rules: {
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }],
'no-process-exit': 'off',
'no-template-curly-in-string': 'error',
'no-caller': 'error',
'no-extra-bind': 'error',
'no-loop-func': 'error',
},
overrides: [
{
settings: {
node: {
tryExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
},
},
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',
},
},
],
};
24 changes: 0 additions & 24 deletions .fitcommitjsrc.json

This file was deleted.

0 comments on commit 544b06e

Please sign in to comment.