Skip to content

Commit

Permalink
Update config for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
tani committed Feb 1, 2019
1 parent 1f28fb0 commit da07958
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "prettier"]
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A textlint plugin for LaTeX2e",
"main": "lib/index.js",
"scripts": {
"lint": "eslint src/**/*.ts",
"build": "tsc",
"test": "jest"
},
Expand Down
2 changes: 1 addition & 1 deletion src/latex-to-ast/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Rules } from "./rules";
export const Option = (r: Rules) => {
return Parsimmon.regex(/[^\]]*/)
.wrap(Parsimmon.string("["), Parsimmon.string("]"))
.map((opt : any) => {
.map((opt: any) => {
return r.Program.tryParse(opt);
});
};

0 comments on commit da07958

Please sign in to comment.