eslint-config-uphold 1.0.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/test/index.js DELETED
@@ -1,60 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Module dependencies.
5
- */
6
-
7
- const { CLIEngine } = require('eslint');
8
- const path = require('path');
9
-
10
- /**
11
- * Tests for `eslint-config-uphold`.
12
- */
13
-
14
- describe('eslint-config-uphold', () => {
15
- const linter = new CLIEngine({ configFile: path.join(__dirname, '..', 'src', 'index.js') });
16
-
17
- it('should not generate any violation for correct code', () => {
18
- const source = path.join(__dirname, 'fixtures', 'correct.js');
19
-
20
- linter.executeOnFiles([source]).results[0].messages.should.be.empty();
21
- });
22
-
23
- it('should generate violations for incorrect code', () => {
24
- const source = path.join(__dirname, 'fixtures', 'incorrect.js');
25
-
26
- Array.from(linter.executeOnFiles([source]).results[0].messages.map(violation => violation.ruleId)).should.eql([
27
- 'consistent-this',
28
- 'curly',
29
- 'dot-notation',
30
- 'id-match',
31
- 'mocha/no-exclusive-tests',
32
- 'mocha/no-identical-title',
33
- 'mocha/no-nested-tests',
34
- 'mocha/no-sibling-hooks',
35
- 'no-new',
36
- 'new-cap',
37
- 'no-class-assign',
38
- 'no-const-assign',
39
- 'no-constant-condition',
40
- 'no-dupe-class-members',
41
- 'no-labels',
42
- 'no-labels',
43
- 'no-multi-str',
44
- 'no-this-before-super',
45
- 'no-underscore-dangle',
46
- 'no-unused-vars',
47
- 'padding-line-between-statements',
48
- 'padding-line-between-statements',
49
- 'prefer-destructuring',
50
- 'prefer-destructuring',
51
- 'prettier/prettier',
52
- 'prettier/prettier',
53
- 'sort-imports-es6/sort-imports-es6',
54
- 'sort-keys',
55
- 'spaced-comment',
56
- 'sql-template/no-unsafe-query',
57
- 'yoda'
58
- ]);
59
- });
60
- });