You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Different errors are reported for files that are outside of the project directory. This is a problem for https://github.com/dense-analysis/ale because it copies the contents of the current (unsaved) file to a temp file, and runs tslint on it. This results in different errors being reported in my editor that what is expected
Can't do it using the playground as it uses a file but
myProject/tslint.json:
// You can modify the configuration here with your own.
// Make sure that your json is valid, and if you run into
// other issues, try checking the console for errors.
{
"extends": [
"tslint:recommended",
"tslint-config-standard",
"tslint-react",
"tslint-config-prettier"
],
"rules": {
"quotemark": [
true,
"single",
"jsx-single"
]
} // add additional rules and their configuration
}
Hi @dylan-chong! It's a little unusual that you'd be investigating a Vim plugin for TSLint at this stage of its deprecation: #4534. It's also interesting that the only failing rule is prettier. Maybe this is a case of the Prettier rule not reading your Prettier config file?
Bug Report
Different errors are reported for files that are outside of the project directory. This is a problem for https://github.com/dense-analysis/ale because it copies the contents of the current (unsaved) file to a temp file, and runs tslint on it. This results in different errors being reported in my editor that what is expected
Reproduction using TSLint Playground
Can't do it using the playground as it uses a file but
myProject/tslint.json:
myProject/example.ts
console.log('hello'); // no errors here
~/Desktop/example.ts
console.log('hello'); // Incorrect error here saying should be double quotes
The text was updated successfully, but these errors were encountered: