Skip to content

Commit

Permalink
Merge pull request #127 from hildjj/lint
Browse files Browse the repository at this point in the history
Update to latest eslint
  • Loading branch information
hildjj authored Oct 4, 2024
2 parents 977caeb + 87ad054 commit 5c720b4
Show file tree
Hide file tree
Showing 12 changed files with 2,553 additions and 3,562 deletions.
212 changes: 0 additions & 212 deletions .eslintrc.js

This file was deleted.

14 changes: 8 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,31 @@ on:
branches:
- main
pull_request:
branches: ['*']
branches:
- main

jobs:
build:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache: pnpm
- name: Install dependencies
run: npm install
run: pnpm install
- name: Check coding standards
if: matrix.node-version == '20.x' && matrix.os == 'ubuntu-latest'
run: npm run lint
Expand Down
12 changes: 6 additions & 6 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use strict";
'use strict';

module.exports = {
"spec": "lib/**/*.test.js",
diff: true,
"full-trace": true,
recursive: true,
reporter: "progress",
'spec': 'lib/**/*.test.js',
'diff': true,
'full-trace': true,
'recursive': true,
'reporter': 'progress',
};
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To perform the test, run `cmake .` at the root of the project tree followed
# by `ctest .`

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

# Do not check any compiler
project(editorconfig-core-js NONE)
Expand Down
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import base from '@cto.af/eslint-config';
import ts from '@cto.af/eslint-config/ts.js';

export default [
{
ignores: [
'lib/**',
'**/*.d.ts',
],
},
...base,
...ts,
];
Loading

0 comments on commit 5c720b4

Please sign in to comment.