Skip to content

Commit

Permalink
ttag to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
k.stoyanov committed Dec 4, 2023
1 parent 6c9333e commit 7e5991a
Show file tree
Hide file tree
Showing 30 changed files with 3,304 additions and 4,746 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["@babel/preset-env"]
"presets": ["@babel/preset-env", "@babel/preset-typescript"]
}
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docs
examples
types
website
dist
15 changes: 12 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
{
"env": { "mocha": true },
"env": { "mocha": true, "node": true },
"globals": {
"_": true
},
"extends": "@evo/eslint-config-uaprom",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2015
},
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "prettier", "plugin:@typescript-eslint/recommended"],
"rules": {
"no-unused-expressions": "off",
"no-unused-vars": ["error", { "varsIgnorePattern": "^_$" }],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"prefer-const": ["error", { "destructuring": "all" }],
"no-prototype-builtins": "off",
"no-useless-escape": "off",
"no-underscore-dangle": [
"error",
{ "allow": ["__Rewire__", "__ResetDependency__", "_strs", "_exprs", "_headers"] }
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/ttag_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: TTag CI

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
- run: npm install
- name: TS check
run: npm run ts-check
- name: Test
run: npm run test
- name: Prettier check
run: npm run prettier-check
- name: Linter check
run: npm run lint
7 changes: 7 additions & 0 deletions Global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
declare module 'plural-forms/minimal-safe';

declare module 'dedent' {
export function dedent(literals: string): string;
export function dedent(literals: TemplateStringsArray, ...placeholders: any[]): string;
export default dedent;
}
Loading

0 comments on commit 7e5991a

Please sign in to comment.