diff --git a/.github/workflows/grammar-check.yml b/.github/workflows/grammar-check.yml new file mode 100644 index 0000000000..a76751394e --- /dev/null +++ b/.github/workflows/grammar-check.yml @@ -0,0 +1,26 @@ +name: Check grammar + +on: + pull_request: + paths: + - "docs/**" + - "**.md" + +jobs: + check-grammar: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "19" + + - name: Install write-good + run: npm install write-good + + - name: Check grammar + run: npx write-good docs/**/*.md --no-passive --no-weasel --no-adverb diff --git a/tsconfig.json b/tsconfig.json index e0c08d9753..e3f3ae2ee3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,6 @@ "strictBindCallApply": true, // Enable stricter checking of the 'bind', 'call', and 'apply' methods "strictPropertyInitialization": true, // Ensure class properties are initialized in the constructor "noImplicitThis": true, // Raise error on 'this' expressions with an implied 'any' type - "alwaysStrict": true, // Parse in strict mode and emit "use strict" for each source file - }, + "alwaysStrict": true // Parse in strict mode and emit "use strict" for each source file + } }