Skip to content
Permalink
Browse files

Breaking: refresh config logic (fixes #11510)

  • Loading branch information...
mysticatea committed Mar 16, 2019
1 parent 4fe7eb7 commit d0a3a1918bd9b72afaa098a121997185c40ecbbd
Showing with 9,654 additions and 7,929 deletions.
  1. +0 −2 .travis.yml
  2. +1 −1 Makefile.js
  3. +1 −1 README.md
  4. +2 −2 lib/api.js
  5. +0 −796 lib/cli-engine.js
  6. +882 −0 lib/cli-engine/cli-engine.js
  7. 0 lib/{util → cli-engine}/hash.js
  8. +5 −0 lib/cli-engine/index.js
  9. +16 −20 lib/{util → cli-engine}/lint-result-cache.js
  10. +1 −1 lib/cli.js
  11. +0 −377 lib/config.js
  12. +1 −1 lib/config/autoconfig.js
  13. +0 −130 lib/config/config-cache.js
  14. +3 −499 lib/config/config-file.js
  15. +14 −26 lib/config/config-initializer.js
  16. +0 −274 lib/config/config-ops.js
  17. +78 −16 lib/config/config-validator.js
  18. +0 −84 lib/config/environments.js
  19. +0 −169 lib/config/plugins.js
  20. +187 −47 lib/linter.js
  21. +927 −0 lib/lookup/config-array-factory.js
  22. +436 −0 lib/lookup/config-array.js
  23. +100 −0 lib/lookup/config-dependency.js
  24. +91 −0 lib/lookup/extracted-config.js
  25. +802 −0 lib/lookup/file-enumerator.js
  26. +24 −46 lib/{util → lookup}/ignored-paths.js
  27. +15 −0 lib/lookup/index.js
  28. +61 −0 lib/lookup/load-formatter.js
  29. 0 lib/{ → lookup}/load-rules.js
  30. +40 −0 lib/lookup/module-resolver.js
  31. +3 −13 lib/{util → lookup}/naming.js
  32. +167 −0 lib/lookup/override-tester.js
  33. +6 −1 lib/rules.js
  34. +6 −6 lib/testers/rule-tester.js
  35. +0 −144 lib/util/file-finder.js
  36. +0 −285 lib/util/glob-utils.js
  37. +0 −63 lib/util/glob.js
  38. +0 −83 lib/util/module-resolver.js
  39. +0 −72 lib/util/path-utils.js
  40. +2 −2 lib/util/report-translator.js
  41. +3 −1 lib/util/source-code-fixer.js
  42. +19 −33 lib/util/source-code-utils.js
  43. +1 −1 messages/file-not-found.txt
  44. +1 −1 messages/no-config-found.txt
  45. +4 −6 messages/plugin-missing.txt
  46. +5 −4 package.json
  47. +1 −1 tests/bench/bench.js
  48. +5 −0 tests/fixtures/config-file/extends-chain-2/parser.js
  49. +1 −1 tests/fixtures/config-file/js/node_modules/foo/index.js
  50. +1 −1 tests/fixtures/configurations/plugins-with-prefix-and-namespace.json
  51. +1 −1 tests/fixtures/configurations/plugins-without-prefix-with-namespace.json
  52. +174 −66 tests/lib/{ → cli-engine}/cli-engine.js
  53. +18 −29 tests/lib/{util → cli-engine}/lint-result-cache.js
  54. +18 −17 tests/lib/cli.js
  55. +1 −1 tests/lib/code-path-analysis/code-path-analyzer.js
  56. +1 −1 tests/lib/code-path-analysis/code-path.js
  57. +0 −1,495 tests/lib/config.js
  58. +3 −1,180 tests/lib/config/config-file.js
  59. +9 −15 tests/lib/config/config-initializer.js
  60. +0 −678 tests/lib/config/config-ops.js
  61. +49 −51 tests/lib/config/config-validator.js
  62. +0 −69 tests/lib/config/environments.js
  63. +0 −244 tests/lib/config/plugins.js
  64. +0 −1 tests/lib/formatters/table.js
  65. +1 −14 tests/lib/linter.js
  66. +408 −0 tests/lib/lookup/_utils.js
  67. +2,160 −0 tests/lib/lookup/config-array-factory.js
  68. +725 −0 tests/lib/lookup/config-array.js
  69. +92 −0 tests/lib/lookup/config-dependency.js
  70. +1,753 −0 tests/lib/lookup/file-enumerator.js
  71. +16 −134 tests/lib/{util → lookup}/ignored-paths.js
  72. +2 −2 tests/lib/{ → lookup}/load-rules.js
  73. +2 −3 tests/lib/{util → lookup}/module-resolver.js
  74. +1 −1 tests/lib/{util → lookup}/naming.js
  75. +254 −0 tests/lib/lookup/override-tester.js
  76. +1 −1 tests/lib/rules.js
  77. +1 −1 tests/lib/util/ast-utils.js
  78. +0 −177 tests/lib/util/file-finder.js
  79. +0 −414 tests/lib/util/glob-utils.js
  80. +49 −18 tests/lib/util/npm-utils.js
  81. +0 −93 tests/lib/util/path-utils.js
  82. +2 −12 tests/lib/util/source-code-utils.js
  83. +1 −1 tests/lib/util/source-code.js
@@ -1,8 +1,6 @@
language: node_js
node_js:
- "6"
- "8"
- "9"
- "10"
- "11"

@@ -26,7 +26,7 @@ const lodash = require("lodash"),
ejs = require("ejs"),
loadPerf = require("load-perf"),
yaml = require("js-yaml"),
CLIEngine = require("./lib/cli-engine");
{ CLIEngine } = require("./lib/cli-engine");

const { cat, cd, cp, echo, exec, exit, find, ls, mkdir, pwd, rm, test } = require("shelljs");

@@ -26,7 +26,7 @@ ESLint is a tool for identifying and reporting on patterns found in ECMAScript/J

## Installation and Usage

Prerequisites: [Node.js](https://nodejs.org/en/) (>=6.14), npm version 3+.
Prerequisites: [Node.js](https://nodejs.org/) (>=8.10), npm version 3+.

There are two ways to install ESLint: globally and locally.

@@ -5,11 +5,11 @@

"use strict";

const Linter = require("./linter");
const { Linter } = require("./linter");

module.exports = {
Linter,
CLIEngine: require("./cli-engine"),
CLIEngine: require("./cli-engine").CLIEngine,
RuleTester: require("./testers/rule-tester"),
SourceCode: require("./util/source-code")
};

0 comments on commit d0a3a19

Please sign in to comment.
You can’t perform that action at this time.