Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
chore: the big package renaming#82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
bd86fc2
daac559
070b168
cbb2d9a
a16efce
9efce0a
5d9c2f8
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Diff view
Diff view
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "0.2.0", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"stream": true | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +0,0 @@ | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -10,7 +10,7 @@ const parserOptions: any = { | ||
ecmaFeatures: {}, | ||
/** | ||
* Project is needed to generate the parserServices | ||
* within@typescript-eslint/parser | ||
*/ | ||
project: './tests/tsconfig.json' | ||
}; | ||
@@ -40,7 +40,7 @@ ruleTester.run('tslint/config', rules.config, { | ||
valid: [ | ||
{ | ||
code: 'var foo = true;', | ||
parser: '@typescript-eslint/parser', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. can you move parser and parserOptions to construleTester=newRuleTester(); construleTester=newRuleTester({parserOptions:{ecmaVersion:6,sourceType:'module',ecmaFeatures:{}},parser:'@typescript-eslint/parser',project:'./tests/tsconfig.json'}); | ||
parserOptions, | ||
options: [tslintRulesConfig] | ||
}, | ||
@@ -50,7 +50,7 @@ ruleTester.run('tslint/config', rules.config, { | ||
/\n/g, | ||
' ' | ||
), | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
...parserOptions, | ||
project: `${__dirname}/test-project/tsconfig.json` | ||
@@ -63,7 +63,7 @@ ruleTester.run('tslint/config', rules.config, { | ||
}, | ||
{ | ||
code: 'throw "should be ok because rule is not loaded";', | ||
parser: '@typescript-eslint/parser', | ||
parserOptions, | ||
options: [tslintRulesConfig] | ||
} | ||
@@ -72,7 +72,7 @@ ruleTester.run('tslint/config', rules.config, { | ||
invalid: [ | ||
{ | ||
options: [{ lintFile: './tests/test-project/tslint.json' }], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions, | ||
code: 'throw "err" // no-string-throw', | ||
errors: [ | ||
@@ -84,7 +84,7 @@ ruleTester.run('tslint/config', rules.config, { | ||
}, | ||
{ | ||
code: 'var foo = true // semicolon', | ||
parser: '@typescript-eslint/parser', | ||
parserOptions, | ||
options: [tslintRulesConfig], | ||
output: 'var foo = true // semicolon', | ||
@@ -98,7 +98,7 @@ ruleTester.run('tslint/config', rules.config, { | ||
}, | ||
{ | ||
code: 'var foo = true // fail', | ||
parser: '@typescript-eslint/parser', | ||
parserOptions, | ||
options: [tslintRulesDirectoryConfig], | ||
output: 'var foo = true // fail', | ||
@@ -116,7 +116,7 @@ ruleTester.run('tslint/config', rules.config, { | ||
/\n/g, | ||
' ' | ||
), | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
...parserOptions, | ||
project: `${__dirname}/test-project/tsconfig.json` | ||
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.