Skip to content

Commit 700f8bf

Browse files
authored
Tweaks (#1033)
1 parent 2975919 commit 700f8bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+60
-60
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030
if: matrix.os == 'ubuntu-latest' && matrix.node-version == 14
3131
with:
3232
fail_ci_if_error: true
33-
lint:
33+
run-rules-on-codebase:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v2
3737
- uses: actions/setup-node@v1
3838
with:
3939
node-version: 14
4040
- run: npm install
41-
- run: npm run lint
41+
- run: npm run run-rules-on-codebase
4242
integration:
4343
runs-on: ubuntu-latest
4444
steps:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"test": "xo && nyc ava",
1818
"create-rule": "node ./scripts/create-rule.js",
19-
"lint": "node ./test/lint/lint.js",
19+
"run-rules-on-codebase": "node ./test/run-rules-on-codebase/lint.js",
2020
"integration": "node ./test/integration/test.js",
2121
"smoke": "eslint-remote-tester --config ./test/smoke/eslint-remote-tester.config.js"
2222
},
@@ -98,7 +98,7 @@
9898
"plugin:eslint-plugin/all"
9999
],
100100
"ignores": [
101-
"test/integration/{fixtures,unicorn}/**",
101+
"test/integration/{fixtures,fixtures-local}/**",
102102
".cache-eslint-remote-tester",
103103
"eslint-remote-tester-results"
104104
],

scripts/template/test.js.jst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ test({
2525
]
2626
});
2727

28-
test.visualize([
28+
test.snapshot([
2929
'const foo = \'unicorn\';'
3030
]);

test/consistent-function-scoping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ test.typescript({
803803
invalid: []
804804
});
805805

806-
test.visualize([
806+
test.snapshot([
807807
outdent`
808808
function foo() {
809809
function bar() {}

test/empty-brace-spaces.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ test({
7878
]
7979
});
8080

81-
test.visualize([
81+
test.snapshot([
8282
outdent`
8383
try {
8484
foo();

test/error-message.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test({
3131
]
3232
});
3333

34-
test.visualize([
34+
test.snapshot([
3535
'throw new Error()',
3636
'throw Error()',
3737
'throw new Error(\'\')',

test/explicit-length-check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ test({
129129
]
130130
});
131131

132-
test.visualize([
132+
test.snapshot([
133133
outdent`
134134
if (
135135
!!!(

test/import-style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ test.babel({
618618
].map(test => addDefaultOptions(test))
619619
});
620620

621-
test.visualize([
621+
test.snapshot([
622622
'import util from \'util\'',
623623
'import * as util from \'util\'',
624624
'const util = require(\'util\')',
File renamed without changes.

test/integration/projects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const path = require('path');
33

44
module.exports = [
55
{
6-
name: 'unicorn',
7-
location: path.join(__dirname, 'unicorn')
6+
name: 'fixtures-local',
7+
location: path.join(__dirname, 'fixtures-local')
88
},
99
{
1010
repository: 'https://github.com/avajs/ava',

0 commit comments

Comments
 (0)