Debian Codegraph @

debian/patches/020210413~8eccc37.patch

raw symbols SCIP
1 Descriptionscip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/patches/`020210413~8eccc37.patch`#Description.: Use eslint-scope (not escope)
2 Originscip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/patches/`020210413~8eccc37.patch`#Origin.: upstream, https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/commit/8eccc37
3 Bugscip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/patches/`020210413~8eccc37.patch`#Bug.: https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/issues/109
4 Authorscip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/patches/`020210413~8eccc37.patch`#Author.: fisker Cheung <[email protected]scip-debian . . . identity/`[email protected]`.>
5 Last-Updatescip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/patches/`020210413~8eccc37.patch`#Last-Update.: 2021-04-30
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 --- a/package.jsonscip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/upstream/`package.json`:
9 +++ b/package.jsonscip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/upstream/`package.json`:
10 @@ -7,7 +7,6 @@
11 "license": "MIT",
12 "scripts": {
13 "lint": "eslint . --ignore-pattern \"!.*\"",
14 - "pretest": "npm run lint",
15 "generate-readme-table": "node build/generate-readme-table.js",
16 "generate-release": "node-release-script",
17 "test": "mocha tests --recursive"
18 @@ -33,11 +32,11 @@
19 "@not-an-aardvark/node-release-script": "^0.1.0",
20 "chai": "^4.1.0",
21 "dirty-chai": "^2.0.1",
22 - "escope": "^3.6.0",
23 "eslint": "^7.0.0-alpha.3",
24 "eslint-config-not-an-aardvark": "^2.1.0",
25 "eslint-plugin-node": "^11.1.0",
26 "eslint-plugin-self": "^1.0.1",
27 + "eslint-scope": "^5.1.1",
28 "espree": "^6.2.1",
29 "estraverse": "^5.0.0",
30 "lodash": "^4.17.2",
31 --- a/tests/lib/utils.jsscip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/upstream/`tests/lib/utils.js`:
32 +++ b/tests/lib/utils.jsscip-debian debian node-eslint-plugin-eslint-plugin 2.3.0+~0.3.0-6 node-eslint-plugin-eslint-plugin/upstream/`tests/lib/utils.js`:
33 @@ -3,7 +3,7 @@
34 const util = require('util');
35 const lodash = require('lodash');
36 const espree = require('espree');
37 -const escope = require('escope');
38 +const eslintScope = require('eslint-scope');
39 const estraverse = require('estraverse');
40 const assert = require('chai').assert;
41 const utils = require('../../lib/utils');
42 @@ -27,7 +27,7 @@
43 'module.exports = { create: async function foo() {} }',
44 ].forEach(noRuleCase => {
45 it(`returns null for ${noRuleCase}`, () => {
46 - const ast = espree.parse(noRuleCase, { ecmaVersion: 8 });
47 + const ast = espree.parse(noRuleCase, { ecmaVersion: 8, range: true });
48 assert.isNull(utils.getRuleInfo(ast), 'Expected no rule to be found');
49 });
50 });
51 @@ -114,7 +114,7 @@
52
53 Object.keys(CASES).forEach(ruleSource => {
54 it(ruleSource, () => {
55 - const ast = espree.parse(ruleSource, { ecmaVersion: 6 });
56 + const ast = espree.parse(ruleSource, { ecmaVersion: 6, range: true });
57 const ruleInfo = utils.getRuleInfo(ast);
58 assert(
59 lodash.isMatch(ruleInfo, CASES[ruleSource]),
60 @@ -148,8 +148,8 @@
61
62 Object.keys(CASES).forEach(ruleSource => {
63 it(ruleSource, () => {
64 - const ast = espree.parse(ruleSource, { ecmaVersion: 6 });
65 - const scope = escope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
66 + const ast = espree.parse(ruleSource, { ecmaVersion: 6, range: true });
67 + const scope = eslintScope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
68 const identifiers = utils.getContextIdentifiers(scope, ast);
69
70 assert(identifiers instanceof Set, 'getContextIdentifiers should return a Set');
71 @@ -178,7 +178,7 @@
72 };
73 Object.keys(CASES).forEach(objectSource => {
74 it(objectSource, () => {
75 - const ast = espree.parse(objectSource, { ecmaVersion: 6 });
76 + const ast = espree.parse(objectSource, { ecmaVersion: 6, range: true });
77
78 assert.strictEqual(utils.getKeyName(ast.body[0].expression.properties[0]), CASES[objectSource]);
79 });
80 @@ -189,7 +189,7 @@
81 };
82 Object.keys(CASES_ES9).forEach(objectSource => {
83 it(objectSource, () => {
84 - const ast = espree.parse(objectSource, { ecmaVersion: 9 });
85 + const ast = espree.parse(objectSource, { ecmaVersion: 9, range: true });
86
87 assert.strictEqual(utils.getKeyName(ast.body[0].expression.properties[0]), CASES_ES9[objectSource]);
88 });
89 @@ -211,8 +211,8 @@
90 'new RuleTester().run(foo, bar, notAnObject)',
91 ].forEach(noTestsCase => {
92 it(`returns no tests for ${noTestsCase}`, () => {
93 - const ast = espree.parse(noTestsCase, { ecmaVersion: 8 });
94 - const scope = escope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
95 + const ast = espree.parse(noTestsCase, { ecmaVersion: 8, range: true });
96 + const scope = eslintScope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
97 assert.deepEqual(utils.getTestInfo(scope, ast), [], 'Expected no tests to be found');
98 });
99 });
100 @@ -229,8 +229,8 @@
101
102 Object.keys(CASES).forEach(testSource => {
103 it(testSource, () => {
104 - const ast = espree.parse(testSource, { ecmaVersion: 6 });
105 - const scope = escope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
106 + const ast = espree.parse(testSource, { ecmaVersion: 6, range: true });
107 + const scope = eslintScope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
108 const testInfo = utils.getTestInfo(scope, ast);
109
110 assert.strictEqual(testInfo.length, 1, 'Expected to find one test run');
111 @@ -274,8 +274,8 @@
112
113 Object.keys(CASES).forEach(testSource => {
114 it(testSource, () => {
115 - const ast = espree.parse(testSource, { ecmaVersion: 6 });
116 - const scope = escope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
117 + const ast = espree.parse(testSource, { ecmaVersion: 6, range: true });
118 + const scope = eslintScope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
119 const testInfo = utils.getTestInfo(scope, ast);
120
121 assert.strictEqual(
122 @@ -343,8 +343,8 @@
123
124 Object.keys(CASES).forEach(testSource => {
125 it(testSource, () => {
126 - const ast = espree.parse(testSource, { ecmaVersion: 6 });
127 - const scope = escope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
128 + const ast = espree.parse(testSource, { ecmaVersion: 6, range: true });
129 + const scope = eslintScope.analyze(ast, { ignoreEval: true, ecmaVersion: 6, sourceType: 'script', nodejsScope: true });
130
131 estraverse.traverse(ast, {
132 enter (node, parent) {