diff --git a/.eslintrc.js b/.eslintrc.js index 7390938..69eb83f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -23,7 +23,6 @@ module.exports = { plugins: ['@typescript-eslint'], rules: { indent: ['error', 4], - 'linebreak-style': ['error', 'windows'], quotes: ['error', 'single'], semi: ['error', 'always'], }, diff --git a/.github/workflows/Eslint.yml b/.github/workflows/Eslint.yml new file mode 100644 index 0000000..f476290 --- /dev/null +++ b/.github/workflows/Eslint.yml @@ -0,0 +1,31 @@ +name: ESLint + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18] + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Run ESLint + run: npx eslint . --ext .ts