Skip to content

Commit b3b6aa4

Browse files
committed
remove relay config
1 parent a6fc17f commit b3b6aa4

File tree

6 files changed

+4
-40
lines changed

6 files changed

+4
-40
lines changed

bin/eslint-github-init.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const path = require('path')
77
const defaults = {
88
project: 'lib',
99
env: 'browser',
10-
typeSystem: 'none',
11-
relay: true
10+
typeSystem: 'none'
1211
}
1312

1413
const packagePath = path.resolve(process.cwd(), 'package.json')
@@ -19,8 +18,6 @@ if (fs.existsSync(packagePath)) {
1918
const dependencies = Object.keys(packageJSON.dependencies || {})
2019
const devDependencies = Object.keys(packageJSON.devDependencies || {})
2120

22-
defaults.relay = dependencies.includes('relay') || devDependencies.includes('relay')
23-
2421
if (dependencies.includes('flow-bin') || devDependencies.includes('flow-bin')) {
2522
defaults.typeSystem = 'flow'
2623
}
@@ -50,12 +47,6 @@ const questions = [
5047
message: 'What type system are you using?',
5148
choices: ['flow', 'typescript', 'none'],
5249
default: defaults.typeSystem
53-
},
54-
{
55-
type: 'confirm',
56-
name: 'relay',
57-
message: 'Are you using Relay?',
58-
default: defaults.relay
5950
}
6051
]
6152

@@ -91,8 +82,6 @@ inquirer.prompt(questions).then(answers => {
9182
}
9283
}
9384

94-
if (answers.relay) eslintrc.extends.push('plugin:github/relay')
95-
9685
fs.writeFileSync(path.resolve(process.cwd(), '.eslintrc.json'), JSON.stringify(eslintrc, null, ' '), 'utf8')
9786

9887
const prettierConfig = []

docs/configs.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ Recommended rules when using Babel to transpile features from ES2015+.
3030

3131
Recommended rules for projects using the [Flow type checker](https://flow.org/).
3232

33-
### `plugin:github/relay`
34-
35-
Recommended rules for projects using [Relay](http://facebook.github.io/relay/) (and React).
36-
3733
### `plugin:github/app`
3834

3935
Recommended rules when writing a browser application.

lib/configs/relay.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module.exports = {
2727
flow: require('./configs/flow'),
2828
node: require('./configs/node'),
2929
recommended: require('./configs/recommended'),
30-
relay: require('./configs/relay'),
3130
typescript: require('./configs/typescript')
3231
}
3332
}

package-lock.json

Lines changed: 3 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"eslint-plugin-import": ">=2.18.2",
4444
"eslint-plugin-jsdoc": ">=15.5.2",
4545
"eslint-plugin-prettier": ">=2.6.0",
46-
"eslint-plugin-relay": ">=1.0.0",
4746
"eslint-rule-documentation": ">=1.0.0",
4847
"inquirer": ">=6.0.0",
4948
"prettier": ">=1.12.0",

0 commit comments

Comments
 (0)