putout
Version:
the pluggable code transformer
222 lines (220 loc) • 6.59 kB
JSON
{
"parser": "babel",
"formatter": ["progress-bar", {
"minCount": 10
}],
"processors": [
"javascript",
"json",
"markdown",
"ignore",
"yaml",
"css",
"html"
],
"match": {
"*.{js,jsx,mjs,cjs,ts,tsx}": {
"strict-mode": "on"
},
"{.,}putout.json": {
"putout-config": "on"
},
".madrun.{js,cjs,mjs}": {
"madrun": "on"
},
"*.md": {
"convert-binary-expression-to-boolean": "off",
"remove-unused-expressions": "off",
"remove-unused-variables": "off",
"remove-useless-escape": "off",
"remove-useless-variables": "off",
"remove-empty": "off",
"remove-unused-for-of-variables": "off",
"remove-constant-conditions": "off",
"remove-console": "off"
},
"{*rc,*.{json,yml}}": {
"remove-useless-escape": "off",
"apply-numeric-separators": "off"
},
".travis.yml": {
"travis": "on",
"remove-useless-escape": "off"
},
".gitignore": {
"gitignore": "on"
},
".npmignore": {
"npmignore": "on"
},
"webpack.config.js": {
"webpack": "on"
},
"browserlist": {
".browserlistrc": "on"
},
".eslintrc.json": {
"eslint": "on"
},
"package.json": {
"package-json": "on"
},
"bin": {
"remove-process-exit": "off",
"remove-console": "off",
"convert-top-level-return": "on",
"remove-empty/import": "off"
},
"{test,*.spec.{js,mjs,cjs}}": {
"remove-only": "on",
"remove-skip": "on",
"tape": "on"
},
"*.mjs": {
"apply-top-level-await": "on",
"convert-commonjs-to-esm": "on",
"convert-mock-require-to-mock-import": "on",
"remove-unused-expressions": "on"
},
"*.cjs": {
"convert-esm-to-commonjs": "on"
},
"*.{ts,tsx}": {
"convert-generic-to-shorthand": "on",
"remove-duplicate-interface-keys": "on",
"remove-useless-types": "on",
"remove-useless-types-from-constants": "on",
"remove-unused-types": "on"
}
},
"ignore": [
"**/node_modules",
"**/fixture",
"**/.nyc_output",
"**/coverage",
"**/dist",
"**/dist-dev",
"**/package-lock.json"
],
"exclude": [
".md"
],
"rules": {
"apply-top-level-await": "off",
"apply-optional-chaining": "on",
"convert-esm-to-commonjs": "off",
"convert-commonjs-to-esm": "off",
"convert-top-level-return": "off",
"convert-generic-to-shorthand": "off",
"remove-useless-types": "off",
"remove-useless-types-from-constants": "off",
"remove-unused-types": "off",
"convert-throw": "off",
"remove-only": "off",
"remove-skip": "off",
"putout": "off",
"putout-config": "off",
"eslint": "off",
"package-json": "off",
"madrun": "off",
"webpack": "off",
"gitignore": "off",
"npmignore": "off",
"travis": "off",
"tape": "off",
"strict-mode": "off",
"regexp/convert-replace-to-replace-all": "off",
"convert-mock-require-to-mock-import": "off",
"remove-duplicate-interface-keys": "off",
"remove-unused-expressions": ["on", {
"dismiss": [
"use strict"
]
}]
},
"plugins": [
"apply-destructuring",
"apply-top-level-await",
"apply-optional-chaining",
"apply-numeric-separators",
"extract-object-properties",
"extract-sequence-expressions",
"madrun",
"webpack",
"eslint",
"package-json",
"remove-debugger",
"remove-iife",
"remove-only",
"remove-skip",
"remove-process-exit",
"remove-console",
"remove-empty",
"remove-unreferenced-variables",
"remove-unused-variables",
"remove-unused-types",
"remove-unused-for-of-variables",
"remove-unused-private-fields",
"remove-unused-expressions",
"remove-useless-variables",
"remove-useless-array-from",
"remove-useless-arguments",
"remove-useless-escape",
"remove-useless-spread",
"remove-useless-async",
"remove-useless-await",
"remove-useless-typeof",
"remove-useless-types",
"remove-useless-types-from-constants",
"remove-useless-type-convertion",
"remove-useless-functions",
"remove-useless-template-expressions",
"remove-useless-for-of",
"remove-constant-conditions",
"remove-boolean-from-logical-expressions",
"remove-duplicates-from-logical-expressions",
"remove-duplicate-interface-keys",
"remove-nested-blocks",
"remove-unreachable-code",
"remove-duplicate-keys",
"reuse-duplicate-init",
"split-variable-declarations",
"split-nested-destructuring",
"simplify-ternary",
"convert-esm-to-commonjs",
"convert-commonjs-to-esm",
"convert-apply-to-spread",
"convert-arguments-to-rest",
"convert-object-assign-to-merge-spread",
"convert-binary-expression-to-boolean",
"convert-math-pow",
"convert-throw",
"convert-to-arrow-function",
"convert-for-to-for-of",
"convert-for-each-to-for-of",
"convert-for-in-to-for-of",
"convert-top-level-return",
"convert-array-copy-to-slice",
"convert-template-to-string",
"convert-equal-to-strict-equal",
"convert-index-of-to-includes",
"convert-generic-to-shorthand",
"convert-mock-require-to-mock-import",
"convert-assignment-to-arrow-function",
"merge-destructuring-properties",
"merge-duplicate-imports",
"merge-if-statements",
"declare-undefined-variables",
"strict-mode",
"putout",
"putout-config",
"promises",
"gitignore",
"npmignore",
"browserlist",
"regexp",
"travis",
"tape",
"nodejs"
]
}