Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2023 update #1

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from
19 changes: 17 additions & 2 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
module.exports = {
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-runtime'],
presets: [
[
"@babel/preset-env",
{
targets: {
node: "16",
},
},
],
],
// Not needed globally, only in specific tests
/*
plugins: [
"@babel/plugin-transform-react-jsx",
["@babel/plugin-proposal-decorators", { legacy: true }],
],
*/
};
7 changes: 3 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
module.exports = {
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module"
sourceType: "module",
},
env: {
mocha: true,
node: true,
es6: true,
}
es2018: true,
},
};
28 changes: 14 additions & 14 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Node CI

on:
push:
branches:
- !master
on: push

jobs:
build:
test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Checkout
uses: actions/checkout@v1

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test

- name: Install dependencies
run: npm install

- name: Test
run: npm test
6 changes: 5 additions & 1 deletion .tav.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

eslint:
versions: ^7.0.0 || ^8.0.0
commands: mocha test/index.js

graphql:
versions: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0
versions: ^14.2.0 || ^15.0.0 || ^16.0.0
commands: mocha test/index.js
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
language: node_js
node_js:
- "10"
- "12"
- "16"
- "18"
- "20"
install:
- npm install

Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# eslint-plugin-graphql
[![npm version](https://badge.fury.io/js/eslint-plugin-graphql.svg)](https://badge.fury.io/js/eslint-plugin-graphql)
[![Build Status](https://travis-ci.org/apollographql/eslint-plugin-graphql.svg?branch=master)](https://travis-ci.org/apollographql/eslint-plugin-graphql)
[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollostack.com/#slack)

---

> **[2022-01-25] Note - Upcoming Deprecation Plans:** We (Apollo) are working towards fully deprecating this repository. We suggest migrating to the community-supported [graphql-eslint](https://github.com/dotansimha/graphql-eslint). We'll share detailed migration documentation when everything here is ready to be officially deprecated, but just a heads up in case you're planning on adopting anything here for a new project (which you still can of course if this project works for you - support for this project will be minimal however).
[![npm version](https://badge.fury.io/js/eslint-plugin-graphql.svg)](https://badge.fury.io/js/eslint-plugin-graphql)

---

Expand Down
Loading