Closed
Description
Instruction
- Clone a repository:
git clone https://gitlab.com/valentineus/typescript-eslint-example.git
- Install dependencies:
npm install
- Run a test:
npm run lint
Code to check:
interface ITesstInterfase{
key: string;
}
type TestType=() => void;
const variable1: TestType = () => {
console.log("Hello, World!");
};
variable1();
Enabled all rules eslint
and @typescript-eslint/eslint-plugin
.
On line 1, missing spaces around interface ITesstInterfase
.
On line 5, missing spaces around sign =
.
Are there any rules governing such cases?
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.19.2 |
@typescript-eslint/parser |
2.19.2 |
eslint |
6.8.0 |